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:
- Go to the folder where the gem
ruby-debug-ide-0.4.6
(or whatever your version is) is installed. - In the
lib
folder, edit the fileruby-debug.rb
- Locate the method
def debug_program(options)
. - Look for the line
bt = debug_load(Debugger::PROG_SCRIPT, options.stop, options.load_mode)
- Just before that line, add
Debugger.const_set('PROG_SCRIPT', './rails server')
- 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.
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
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
Why Does The Ruby Module Kernel Exist
How to Get Source and Variable Values in Ruby Tracebacks
Obtaining Number of Block Parameters
How to Change "3 Errors Prohibited This Foobar from Being Saved" Validation Message in Rails
Include Module in All Minitest Tests Like in Rspec
Statically Compile Pdftk for Heroku. Need to Split PDF into Single Page Files
How to Get Records Created at The Current Month
Rails - Understanding Application.Js and Application.CSS
Is The Assignment Operator Really "Just" an Operator
Algorithm to Render a Horizontal Binary-Ish Tree in Text/Ascii Form
Error Installing Ruby in Yosemite
Giving an Example of a Cycle in a Directed Graph
How Can Multiple Trailing Slashes Can Be Removed from a Url in Ruby
Convert Durations in Ruby - Hh:Mm:Ss.Sss to Milliseconds and Vice Versa
Error Installing Rdoc Documentation: Incompatible Encoding Regexp Match
Warning While Installing The Rails Plugin
Why Slicing The Params Hash Poses a Security Issue on Mass-Assignment