ruby - Rails on Netbeans: Uncaught exception: no such file to load -- script/server or script/console -


i'm trying initiate rails 3 console netbeans 6.9.1 (just upgraded) , fail

uncaught exception: no such file load -- script/console 

the debugger fails on similar error (... -- script/server).

the project i'm trying run on rails 2.3.8 app upgraded, , netbeans still tries old ruby script/console command rather rails c.

i tried install the patch described here, didn't work. gem list returns:

*** local gems ***  abstract (1.0.0) actionmailer (3.0.1, 3.0.0.rc2) actionpack (3.0.1, 3.0.0.rc2) activemodel (3.0.1, 3.0.0.rc2) activerecord (3.0.1, 3.0.0.rc2) activeresource (3.0.1, 3.0.0.rc2) activesupport (3.0.1, 3.0.0.rc2) archive-tar-minitar (0.5.2) arel (2.0.2, 1.0.1, 1.0.0.rc1) builder (2.1.2) bundler (1.0.5, 1.0.0.rc.6) columnize (0.3.2) crack (0.1.8) erubis (2.6.6) httparty (0.6.1) i18n (0.4.2) jrails (0.6.0) linecache19 (0.5.11) mail (2.2.9) mime-types (1.16) minitest (2.0.0, 1.6.0) mysql (2.8.1 x86-mingw32) mysql2 (0.2.6 x86-mingw32) nokogiri (1.4.3.1 x86-mingw32) pik (0.2.8) polyglot (0.3.1) rack (1.2.1) rack-mount (0.6.13) rack-test (0.5.6) rails (3.0.1, 3.0.0.rc2) railties (3.0.1, 3.0.0.rc2) rake (0.8.7) rdoc (2.5.11, 2.5.8) ruby-debug-base19 (0.11.24) ruby-debug-ide (0.4.9) ruby-debug19 (0.11.6) ruby_core_source (0.1.4) sqlite3-ruby (1.3.1 x86-mingw32) thor (0.14.4) treetop (1.4.8) tzinfo (0.3.23) uuidtools (2.1.1) 

i'm using ruby 1.9.2 on windows 7 pik rvm alternative. path has c:\ruby192\bin directory default, , other 1.8.7 ruby version has rails 3 installed. project on netbeans configured work 1.9.2 ruby platform, , "gem manager" platform shows rails 3 gem in list.

any thoughts on how make work?

many thanks! amit

i have found solution! post gave me hints.

my platform: ruby 1.9.2-p136, rails 3.0.3, netbeans 7.0 beta

file: ruby-1.9.2-p136/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:79

script = argv.shift debugger::prog_script = (script =~ /script([\\\/])rails/ ? dir.pwd + $1 : '') + script puts debugger::prog_script #debugger::prog_script = argv.shift 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -