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
.
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
RubyMine 7 Remote Debug No such file or directory error
I figured out the problem.
You need to add a mapping for your local project root -> remote project root. You can add that in debug configurations.
It solved problem for me.
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.
Related Topics
Converting Ruby Array to Array of Consecutive Pairs
How to Set Sslcontext Options in Ruby
403 Forbidden on Rails App W/ Nginx, Passenger
Nokogiri Will Not Install - Error: Failed to Build Gem Native Extension
Converting an Integer to a Hexadecimal String in Ruby
Rails - Best-Practice: How to Create Dependent Has_One Relations
What's the 'Ruby Way' to Iterate Over Two Arrays at Once
Is the Server Running on Host "Localhost" (::1) and Accepting Tcp/Ip Connections on Port 5432
Test If Variable Matches Any of Several Strings W/O Long If-Elsif Chain, or Case-When
Undefined Symbol: Sslv2_Method When Running Bundle Install
What Other Languages Have Features And/Or Libraries Similar to Perl's Format
How to Turn a String into a Method Call
Why Would One Use the Unary Operator on a Property in Ruby? I.E &:First
How to Have Class.Property = X Return Something Other Than X