Thread title says the problem. I received a support email and it seems as though this code is returning nil on his system. Has anyone experienced this and figured out why?
Thanks.
File.dirname(__FILE__) returns nil?
5 posts
• Page 1 of 1
File.dirname(__FILE__) returns nil?Thread title says the problem. I received a support email and it seems as though this code is returning nil on his system. Has anyone experienced this and figured out why?
Thanks.
Re: File.dirname(__FILE__) returns nil?Is it inside a compiled rbs file or a rb file.
If it's used inside a rbs it might refer to the wrong 'variable', as its not then specific to that loading file. What is the exact context ? TIG
Re: File.dirname(__FILE__) returns nil?
It's in an RB file (I believe you have it The code inside the file is:
and the user is getting this error when SketchUp loads: Error Loading File sketchuv_load.rb (eval):3076:in `join': can't convert nil into String I have since found out that the user is using SU8.1 and OSX 10 (not too helpful info)
Re: File.dirname(__FILE__) returns nil?I don't think that is the line with the error.
Check in "sketchuv.rbs", around line 3075 (give or take a few lines,) for a join statement. You need to note the line number, in the file that loads "sketchuv_load.rb" add 1 (for the 1 line in "sketchuv_load.rb",) then subtract that number of lines from the 3076 reported in the Sketchup.load error. That will give you a better idea of the number of lines into the rbs file, where the error should be.
Re: File.dirname(__FILE__) returns nil?Weird, now the user says the problem is not occurring anymore without any explanation. Lovely!
Sorry for wasting your time Dan,TiG. Thanks for the help!
SketchUcation One-Liner AdvertsArtisan Organic Toolset - a set of powerful organic modeling tools.
Premium Members get 20% discount!
5 posts
• Page 1 of 1
|