Is there any way to see the data within the bug splat report on Mac OS X? I saw the "application has unexpectedly quit" dialog instead a few times, and that shows the call stack in the details section which was useful. Can we see something like that from a bug splat dialog? Does it store the report anywhere?
Posts
-
Can we see the bugsplat data?
-
RE: Register_extension error
@tig said:
If the RB is going to be encrypted use this:
ext = SketchupExtension.new(extensionName, "greenspaceLive_gModeller/LiveEnergy-Classes/main")
SketchUp automatically finds a matching file RB or RBS...You never mentioned that as a possible scenario...
If you have other RB files encrypting in the subfolder[s], then also ensure you use:
Sketchup::require(name_without_filetype_suffix)
rather than 'load()
'...
This way the RB files load during testing AND the RBS files still work after the encryption...You have to plan ahead. :
Thanks, that should be the only change I need. I was already using encryption but forgot that main.rb was excluded from the encryption on my local copy.
-
RE: Register_extension error
@tig said:
What's wrong with some simpler coding e.g.
require("extensions.rb")
and later on...
` ext = SketchupExtension.new(extensionName, "greenspaceLive_gModeller/LiveEnergy-Classes/main.rb")ext.name = extensionName`
Otherwise I see no immediate cause for errors...
Yes, I should change that.
I've re-downloaded the submitted installer, it includes a 'main.rbs' instead of a 'main.rb' file like we had before, so I think that is the problem. It's probably just not finding that file.
-
Register_extension error
Hi,
I've submitted an update to an extension but I'm getting an exception back from the review. This seems to be within Sketchup::require call but I can't reproduce this. I don't see what the "Error: #" at the top means, normally there would be more information. This was previously working and the files involved haven't changed. Maybe there's something new in Sketchup 2016. Anyone see what could be causing this?
Error; # C;/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb;197;in `require' C;/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb;197;in `load' C;/Users/tthomas2/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/greenspaceLive_gModeller.rb;24;in `register_extension' C;/Users/tthomas2/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/greenspaceLive_gModeller.rb;24;in `' C;/Program Files/SketchUp/SketchUp 2016/Tools/sketchup.rb;85;in `require' C;/Program Files/SketchUp/SketchUp 2016/Tools/sketchup.rb;85;in `block in require_all' C;/Program Files/SketchUp/SketchUp 2016/Tools/sketchup.rb;85;in `each' C;/Program Files/SketchUp/SketchUp 2016/Tools/sketchup.rb;85;in `require_all' ;in ` '
# gModeller Plugin from Greenspace Research require 'sketchup.rb' Sketchup;;require 'extensions.rb' #Import the SketchUp extension class # Work around SketchUp2014 bug where opening a file from a different drive results in the wrong drive letters in the load path. if Sketchup.version =~ /^14\.0/ toolsPath = $LOAD_PATH.find { |x| x =~ /Tools$/ } if toolsPath and not $LOAD_PATH.include?(toolsPath + '/RubyStdLib') $LOAD_PATH << toolsPath + '/RubyStdLib' $LOAD_PATH << toolsPath + '/RubyStdLib/platform_specific' end end extensionName = "GreenspaceLive gModeller" ext = SketchupExtension.new(extensionName, Sketchup.find_support_file('main.rb', 'Plugins/greenspaceLive_gModeller/LiveEnergy-Classes/')) ext.name = "GreenspaceLive gModeller" ext.description = "GreenspaceLive's gModeller tool for Trimble SketchUp" ext.version = "1.12" ext.creator = "GreenspaceLive" ext.copyright = "2016, GreenspaceLive" Sketchup.register_extension(ext, true)