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 112056 - Cannot run other that Rakefile.rb
Summary: Cannot run other that Rakefile.rb
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-06 14:19 UTC by Jiri Skrivanek
Modified: 2007-09-04 09:22 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 Jiri Skrivanek 2007-08-06 14:19:52 UTC
It is not possible to run other than Rakefile.rb. To reproduce:

- create Ruby Application
- open new file wizard
- select Ruby|Rakefile
- finish the wizard
- try to run it (Shift+F6) but it prints error message:

:-1: no such file to load -- rake (LoadError)

Build 200708060257, 1.6.0_02-b05.
Comment 1 Martin Krauskopf 2007-08-27 18:41:56 UTC
This is because NetBeans detect just standard Rake files (Rake::Application::DEFAULT_RAKEFILES). If the user creates one
with other name it is not automatically detected. But the wizard offers such one (new_rakefile.rb) by default. So I've
change that it support one of standard names (rakefile.rb).

projects/src/org/netbeans/modules/ruby/rubyproject/ui/resources/layer.xml;
new revision: 1.9; previous revision: 1.8

If you want to run the one with custom name, put "require 'rubygems'" before other requires and then probably use "load
'rake'" at the end.

Thanks for the catch.
Comment 2 Jiri Skrivanek 2007-09-04 09:22:07 UTC
Verified.