This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have a fairly-ordinary ruby project. I'm editing a ruby file called "meta.rb" that begins like this: load 'ape.rb' class Driver ... I try to run this file Run/Run File, and I get /Users/twbray/dev/ape/trunk/lib/meta.rb:1:in `load': no such file to load -- ape.rb (LoadError) from /Users/twbray/dev/ape/trunk/lib/meta.rb:1 But... ~/dev/ape/trunk/lib/ 506> pwd /Users/twbray/dev/ape/trunk/lib ~/dev/ape/trunk/lib/ 507> ls ape ape.rb meta.rb rbug.rb So why can't it load ape.rb? So, I go into project properties, and set the starting directory to ~/dev/ape/trunk/lib/ and then it works... but if there's no directory set, why shouldn't it assume the current directory of the file you're running, then everything will just work.
Strange this should work of course (IDE would be unusable then). > but if there's no directory set, why shouldn't it assume the current > directory of the file you're running That's exactly the case. You should not need to tweak current directory, just in special cases. What version of NetBeans are you running? I've just double-check by: 1) creating a new Ruby project 2) creating mata.rb and ape.rb in source directory (I've also tried another source root) and it works. How did you set-up your project? Could you turn on logging: http://wiki.netbeans.org/FaqRubyNBLogging (for 6.5) http://wiki.netbeans.org/FaqRubyNBLogging61 (for 6.1) and attach it here (to see what exactly the IDE runs).
Not feedback for longer time, and not any duplicate of this seemingly major issue. Reopen with more info (see previous comment), if you are still able to reproduce, thanks.