[Plugin] UV Toolkit
-
@sepo said:
Hi Thomas
I am trying to install your plugin on my Imac and it is posting this error.
Plugins/TT_UV_Toolkit/loader.rb > can't convert nil into StringError Loading File tt_uv_toolkit_2.rb > can't convert nil into String
Did you also get and install the separate Lib as directed? Keeping the files inside the subfolder etc...
-
@sepo said:
Hi Thomas
I am trying to install your plugin on my Imac and it is posting this error.
Plugins/TT_UV_Toolkit/loader.rb > can't convert nil into StringError Loading File tt_uv_toolkit_2.rb > can't convert nil into String
Can you open the Ruby Console and type:
load 'tt_uv_toolkit_2.rb'
and report the full error message? -
Guess what Ruby Console does not appear in the tools menu. I googled and I got this explanation.
When I started SU on my Macbook, the expected "Ruby Console" menu item
did not appear at all in the Tools menu.I figured out why, and I thought I'd share it here in case it saves
others from
similar frustration."The problem is that the installed resources and ruby files have
capitalization
that is different from what the installed ruby scripts use. For
example,
sketchup.rb looks for "gettingstarted.strings", but units.rb (and
others)
look for "GettingStarted.strings". If you chose, as I did, to install
OS X
on a case-sensitive filesystem, this won't work.A workaround is to patch up all of these ruby files to use the names
with the correct capitalization. Change those and the Ruby Console
will work again."
I am not sure what does patch means in this instance. -
To be honest I did not choose anything as the system came with preinstalled OS... I even do not know where to look to see if the system is installed as a case sensitive.
-
Using a 'case-sensitive' file-system on a MAC [aka 'Unix'] is a great recipe for disaster.
You could have two quite different files named "File.txt" and "file.txt" coexisting in the same folder.
Unlike on a PC or a correctly configured MAC OS, where those names are regarded as exact equivalents and therefore there is only ever one file and no issue with 'capitalization' in some Ruby paths etc as the file is always 'found' by the OS...
Can you reconfigure your system rather than try to botch up various scripts, which will never be fully successful...This MAC OS case-sensitive 'disaster' has been discussed in threads before...
http://forums.sketchucation.com/viewtopic.php?f=79&t=47428&p=424306&hilit=sensitive#p424306
http://forums.sketchucation.com/viewtopic.php?f=79&t=46148&p=412811&hilit=case+sensitive#p412811
and
https://discussions.apple.com/thread/3463082?start=0&tstart=0
http://help.bombich.com/discussions/questions/5807-how-to-restore-the-backup-image-with-keeping-the-destination-file-system-formatPlease avoid it in the first place.
Incidentally the Ruby Console is under Windows menu on a PC... is it really under Tools on a MAC ?
-
yes it is under tools... unfortunately for me it would mean reinstalling the root partition . I have dual boot system and I do not really wish to reinstall everything from the scratch. Is there any other way to repair this. That patch that was mentioned ...what does that mean? Also I do not understand is why Thea is gone after updating to trimble sketchup...
Your mirror plugin works fine and some other fredo's tools work fine bit your extrude tools , some fredo's tools and Thomas's UV tools do not work. -
Hmmm ... I tried to create folder with same name but change capitalisation and it would not let me ....does it mean it is not case sensitive system?
confirmed ... same file names with different capitalisation would not stand. OK so the problem is elsewhere. -
Assuming you do have a case-sensitive OS...
A 'patch' means writing a [Ruby] tool that searches through all of the .rb files in the Plugins and Tools folders [and all subfolders] and finding if there is any capitalization of 'required/loaded' files - for example 'Sketchup.rb' and making it 'sketchup.rb' as the file is actually named. That's a lot of work... AND you can't redo any .rbs files as they are compiled and any capitalization issues are thereby 'hardcoded'.
Alternatively find what the problem files are and make suitably capitalized versions in the same folders, so for example if a script says 'Sketchup.rb' make a duplicate copy of the Tools folder's 'sketchup.rb' named in the alternative way with a capital 'S', in the same folder - your OS being case-sensitive will allow this.
This means duplicating a relatively few .rb files [most of these are Sketchup's installed system ones]. The downside of this is when you next install a Sketchup update some of its system files might be updated and then your 'capitalized' one are them out of date, and might cause other unexpected issues - this is unlikely within a version, but beyond a simple Maintenance release might change some files subtly... If you do this then keep a record of what you've duplicated with different capitalization and after an update check for changes and repeat as necessary...
Examples might be:
sketchup.rb >> Sketchup.rb
gettingstarted.strings >> GettingStarted.strings
etc
The folders to look in are Tools, and perhaps Plugins...
Any remaining error messages should give clues...I'm unsure what's 'broken' in my Extrusion tools perhaps post the errors in the tools thread to keep this under control...
IF you don't have a case-sensitive OS - be thankful!
Post screen-shots showing what's in the Plugins folder etc - I still suspect you haven't got some files inside the right folders - this can throw out the loading of other scripts too... so let's address each error as it arises, because it might fix other 'innocent' things... -
OK I will post the error from the extrude tools in the right thread.
-
load 'tt_uv_toolkit_2.rb'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_uv_toolkit_2.rb:46: warning: already initialized constant VERSION
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_uv_toolkit_2.rb:47: warning: already initialized constant PREF_KEY
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/tt_uv_toolkit_2.rb:48: warning: already initialized constant TITLE
true -
This suggests to me that you have some duplicate files loading...
One file where it ought to be and one already inside Plugins - where you have messed up an install earlier on...
Please refer to the original tools' pages about 'what goes where'...
Also check that nothing inside one of these tool's subfolders is also now inside the Plugins folder, e.g. if [on the of chance ] you have mis-installed files in the incorrect places earlier and you have failed to think about trying to rectifying your balls-up before restarting ! -
@tig said:
This suggests to me that you have some duplicate files loading...
No - I asked him to do that after SU had started. Those warning are there because the constants where defined when SU started. I was hoping that manually reloading would give me a full call stack trace... alas...
-
Alack!
I'm sure there's a simple explanation to how he's balls-up this all up...
I'm sure its PEBKAC... -
If I remove UV tools and lib.. I do not have problem.
-
I have reinstalled the tools and lib....and same error appears.
-
@sepo said:
I have reinstalled the tools and lib....and same error appears.
If you install it via this utility?
http://forums.sketchucation.com/viewtopic.php?t=42315#p375454 -
@sepo said:
Hi Thomas
I am trying to install your plugin on my Imac and it is posting this error.
Plugins/TT_UV_Toolkit/loader.rb > can't convert nil into StringError Loading File tt_uv_toolkit_2.rb > can't convert nil into String
The error message actually included this string
"Plugins/TT_UV_Toolkit/loader.rb"
?What if you type in the Ruby Console:
load 'TT_UV_Toolkit/loader.rb'
- what messages do you get then?Can we see a screenshot of your Plugins folder? (Please include the whole Finder window)
-
you can see plugin folder and SU folder here
http://forums.sketchucation.com/viewtopic.php?f=323&t=25362&start=300
I will try the ruby console when I get back home.
thanks for looking into this. -
> load 'TT_UV_Toolkit/loader.rb' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;27; warning; already initialized constant BB_LEFT_FRONT_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;28; warning; already initialized constant BB_RIGHT_FRONT_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;29; warning; already initialized constant BB_LEFT_BACK_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;30; warning; already initialized constant BB_RIGHT_BACK_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;31; warning; already initialized constant BB_LEFT_FRONT_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;32; warning; already initialized constant BB_RIGHT_FRONT_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;33; warning; already initialized constant BB_LEFT_BACK_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;34; warning; already initialized constant BB_RIGHT_BACK_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;36; warning; already initialized constant BB_CENTER_FRONT_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;37; warning; already initialized constant BB_CENTER_BACK_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;38; warning; already initialized constant BB_CENTER_FRONT_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;39; warning; already initialized constant BB_CENTER_BACK_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;41; warning; already initialized constant BB_LEFT_CENTER_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;42; warning; already initialized constant BB_LEFT_CENTER_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;43; warning; already initialized constant BB_RIGHT_CENTER_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;44; warning; already initialized constant BB_RIGHT_CENTER_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;46; warning; already initialized constant BB_LEFT_FRONT_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;47; warning; already initialized constant BB_RIGHT_FRONT_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;48; warning; already initialized constant BB_LEFT_BACK_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;49; warning; already initialized constant BB_RIGHT_BACK_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;51; warning; already initialized constant BB_LEFT_CENTER_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;52; warning; already initialized constant BB_RIGHT_CENTER_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;53; warning; already initialized constant BB_CENTER_FRONT_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;54; warning; already initialized constant BB_CENTER_BACK_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;55; warning; already initialized constant BB_CENTER_CENTER_TOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;56; warning; already initialized constant BB_CENTER_CENTER_BOTTOM /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;58; warning; already initialized constant BB_CENTER_CENTER_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;59; warning; already initialized constant BB_CENTER /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;64; warning; already initialized constant MB_ICONHAND /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;65; warning; already initialized constant MB_ICONSTOP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;66; warning; already initialized constant MB_ICONERROR /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;67; warning; already initialized constant MB_ICONQUESTION /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;68; warning; already initialized constant MB_ICONEXCLAMATION /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;69; warning; already initialized constant MB_ICONWARNING /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;70; warning; already initialized constant MB_ICONASTERISK /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;71; warning; already initialized constant MB_ICONINFORMATION /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;72; warning; already initialized constant MB_ICON_NONE /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;74; warning; already initialized constant MB_DEFBUTTON1 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;75; warning; already initialized constant MB_DEFBUTTON2 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;76; warning; already initialized constant MB_DEFBUTTON3 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;77; warning; already initialized constant MB_DEFBUTTON4 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;82; warning; already initialized constant MESH_SHARP /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;83; warning; already initialized constant MESH_SOFT /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;84; warning; already initialized constant MESH_SMOOTH /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;85; warning; already initialized constant MESH_SOFT_SMOOTH /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;90; warning; already initialized constant POINT_OPEN_SQUARE /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;91; warning; already initialized constant POINT_FILLED_SQUARE /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;92; warning; already initialized constant POINT_CROSS /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;93; warning; already initialized constant POINT_X /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;94; warning; already initialized constant POINT_STAR /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;95; warning; already initialized constant POINT_OPEN_TRIANGLE /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;96; warning; already initialized constant POINT_FILLED_TRIANGLE /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;108; warning; already initialized constant VERSION /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;112; warning; already initialized constant PREF_KEY /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/system.rb;16; warning; already initialized constant PLATFORM_IS_OSX /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/system.rb;19; warning; already initialized constant PLATFORM_IS_WINDOWS Error; #<TypeError; /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/system.rb;22;in `expand_path'; can't convert nil into String> /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_UV_Toolkit/loader.rb;34 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/system.rb;22 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/win32.rb;9;in `require' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/win32.rb;9 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/debug.rb;9;in `require' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/debug.rb;9 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;400;in `require' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;400 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;399;in `each' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_Lib2/core.rb;399 /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_UV_Toolkit/loader.rb;34;in `require' /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_UV_Toolkit/loader.rb;34 (eval);155;in `load' (eval);155
-
@thomthom said:
@sepo said:
I have reinstalled the tools and lib....and same error appears.
If you install it via this utility?
http://forums.sketchucation.com/viewtopic.php?t=42315#p375454after installing in this way it posts same error
Error Loading File /Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_UV_Toolkit/loader.rb can't convert nil into StringError Loading File tt_uv_toolkit_2.rb can't convert nil into String
Advertisement