@unknownuser said:
I suspect this is a Mountain Lion problem. Chris added to an issue over on the github site.
https://github.com/SketchUp/sketchup-developer-tools/issues/1
I'll buy a beer (or cookie) for whoever figures it out first.
Well, maybe I can claim the beer !
There is a javascript bug in testup.html, at least on the Mac. The statement
TESTUP_elements.gui.insertBefore(divNav, TESTUP_elements.gui.childNodes(0));
throws an exception that causes createGUI to abort before it is finished, which is why the tabs never appear!
At least on the Mac, childNodes is an array, not a function, and the correct syntax is:
TESTUP_elements.gui.insertBefore(divNav, TESTUP_elements.gui.childNodes[0]);
I still have the issue that John mentioned, the window is blank until the first time I right click. But all else is ok.
I don't grok github yet, so if someone who does can post this as a suggested change, I'd be grateful.
Steve
P.S. I don't think it is relevant, but I also rewired SketchUp to use Ruby 1.8.7, per a note I posted on another thread.
Also, out of sheer fussiness, I changed the test for @is_mac in testup.rb to
@is_mac = (Object::RUBY_PLATFORM =~ /darwin/)!=nil
since the original code returns 5 (the index of darwin in RUBY_PLATFORM) whereas @is_mac should be boolean.
PPS - Oh, it seems the discussion moved to github and this issue has already been resolved there.
But that leaves me puzzled. If the fix has been known for a month or so, how come the code I got from GitHub still had all the old errors?