-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intro to Sketchup tutorial fails on first step? #43
Comments
I decided to try to debug this and i see now in the ruby console this stack trace which reads: Error: #<TypeError: wrong argument type (expected Sketchup::Model)> This stacktrace is produced repeatedly on the console |
Ok, I disabled the Fredo Guides plugin and tried again, and now I get this stack trace which reads Error: #<TypeError: wrong argument type (expected Sketchup::Model)> |
Ok, I found the problem. I added a few print statements to feature_wrap_in_undo.rb and it revealed this Initialize_console: command: I guess the ThomThom Bezier Surface tool is somehow interfering with this. Maybe a namespace conflict of some kind? Disabling the Bezier Surface tool seems to clear it up |
Bezier Surface adds an instance attribute to the model in order to track the editor instance associated with it. (There was some issue with using model as a key in a hash if I recall correctly. So I ended up with that kludge.) But I don't see how that should cause a TypeError in this extension. The debug output in that last comment is hard to decipher, not sure what I'm looking at there. But did you find where the TypeError is thrown? |
Well, here is a video that will show how the error happens https://drive.google.com/file/d/1lY1q0WirPnZg5TAgWzEYvkBXVY-hMBja/view?usp=drive_link Basically, go to tutorials, choose Introduction: Finding your way through sketchup, step 1, start Then it asks you to type in Sketchup.active_model and when you do, it gives the error about how how the argument didn't match the expected input because it has that decoration #<Sketchup::Model:0x007f95d018b038\n @tt_bezier_surface_editor=\n #TT::Plugins::BezierSurfaceTools::BezierSurfaceEditor:0x7f95d7c33d08 I added some debugging strings and here are the backtraces I could access.
|
Hello, I really like your console
I am trying to use the tutorial 'Introduction: Finding your way through SketchUp, Step 1
It says: "Type Sketchup.active_model'
When I do so, it presents an error
wrong argument type (expected Sketchup::Model)
If I type
Sketchup::Model
wrong argument type (Expected Sketchup::Model)
it says the same thing...
I am using Sketchup Make 2017 on Mac OS
If I type either of these into the actual ruby console, I get the expected object reference
#Sketchup::Model:0x007f85588eaa28
thank you for any clues
The text was updated successfully, but these errors were encountered: