Rails on Netbeans: Uncaught Exception: No Such File to Load - Script/Server or Script/Console

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

I have found the solution! This post gave me some 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

Netbeans and rails error: bin/ruby: No such file or directory -- script/rails (LoadError)

Create a symbolic link as below on terminal:

ln -s ./bin ./script

This is because in Rails 4 script directory has been moved to bin.

netbeans 6.9.1 + rails 3 + ruby 1.9.2p0 debugging

I have found the solution! This post gave me some 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

How to fix rails 3.0.1 on Netbeans 6.9.1 for Ruby 1.9.2

I had the same problem. Here is what you can try:

  1. Go to the folder where the gem ruby-debug-ide-0.4.6 (or whatever your version is) is installed.
  2. In the lib folder, edit the file ruby-debug.rb
  3. Locate the method def debug_program(options).
  4. Look for the line bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)
  5. Just before that line, add Debugger.const_set('PROG_SCRIPT', './rails server')
  6. Save file and restart Netbeans.
    You may see a warning that constant is being set or something when NetBeans starts the debugger, just ignore that.

Also, you should upgrade to using Rails 3.0.3

cannot load such file -- sassc running gem rails_admin with rails 7.0.4

I have solution, it looks like we must have already installed 'bootstrap'.
So, if I create new rails 7 project with rails new someproject -j esbuild --css bootstrap and after that add the rails_admin gem and install it regularly.

My rails_admin 3.1 is accessible on /admin path and looks okay.

cannot load such file -- script/rails : Getting this error while remote debugging through RubyMine

You are using some weird debug gems, only the following are needed:

  • ruby-debug-base19x
  • ruby-debug-ide

First, remove all the ruby-debug* gems, then install the required gems using the following commands:

gem install ruby-debug-base19x --pre
gem install ruby-debug-ide --pre

You should get the following (or newer) versions:

ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta9)

Adjust your Gemfile to include only these two gems (except the app specific gems).

If you are getting linecache19 related errors, install it as follows:

curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem

@Anjan has contributed the complete Gemfile changes for debugging:

gem 'linecache19', '>= 0.5.13', :git => 'https://github.com/robmathews/linecache19-0.5.13.git'
gem 'ruby-debug-base19x', '>= 0.11.30.pre10'
gem 'ruby-debug-ide', '>= 0.4.17.beta14'

Don't forget to update the bundle.

Debugging Rails in Netbeans 6.9 suddenly stopped working

Well, uninstalling and reinstalling fast-debug-ide gem solved the problem.



Related Topics



Leave a reply



Submit