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.

Bug 143819 - Can't run
Summary: Can't run
Status: RESOLVED WORKSFORME
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 21:45 UTC by timbray
Modified: 2008-08-27 13:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timbray 2008-08-13 21:45:19 UTC
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.
Comment 1 Martin Krauskopf 2008-08-14 12:23:15 UTC
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).
Comment 2 Martin Krauskopf 2008-08-27 13:30:57 UTC
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.