Setting up RubyMine IDE

This happens for every project I've tried: If I use terminal and say the install or rake db: migrate package, it works fine, can see my site, works completely fine.

But if I open a project in RubyMine and want to do the same tasks, it gives me all kinds or errors. I am just copying some of them as an example.

I'm sure there is a small project setting that needs to be installed somewhere. But I don't know what and where

Note. There is an "edit configuration" that is always set on Rails 1.8, and although I change it to Rails 1.9, it still doesn't matter.

I am running the latest RubyMine on Mac.

/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /usr/bin/rake db:migrate
/Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/spec_set.rb:90:in `materialize': Could not find i18n-0.6.1 in any of the sources (Bundler::GemNotFound)
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/spec_set.rb:83:in `map!'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/spec_set.rb:83:in `materialize'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/definition.rb:113:in `specs'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/definition.rb:158:in `specs_for'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/definition.rb:147:in `requested_specs'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/environment.rb:23:in `requested_specs'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/runtime.rb:11:in `setup'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler.rb:116:in `setup'
    from /Users/JonyIve/.gem/ruby/1.8/gems/bundler-1.2.3/lib/bundler/setup.rb:17

      

EDIT: After starting the package installation, from the IDE:

/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/JonyIve/.gem/ruby/1.8/bin/bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
sudo: no tty present and no askpass program specified

Gem::Exception: Cannot load gem at [/Library/Ruby/Gems/1.8/cache/rake-10.0.3.gem] in /Users/JonyIve/Downloads/code-1/rails32/depot_c
An error occurred while installing rake (10.0.3), and Bundler cannot continue.
Make sure that `gem install rake -v '10.0.3'` succeeds before bundling.

      

+3


source to share


4 answers


I asked the author, here is his answer:



http://devnet.jetbrains.net/message/5476810#5476810

+6


source


I was getting the same error when using RubyMine. I solved the "no tty present ...." error by adding:

Defaults    visiblepw

      

to



/etc/sudoers

      

file.

+13


source


Have you tried Tools-> Run Bundler from the IDE menu? You need to run Bundler from Rubyine in addition to the console to update your copy of the gems IDE.

+2


source


ok i had this same problem. this was because the ruby โ€‹โ€‹that the ruby โ€‹โ€‹sdk was pointing to was a ruby โ€‹โ€‹system, / usr / bin / ruby โ€‹โ€‹is an alias in the library and not in ln -svf / usr / local / Cellar / ruby โ€‹โ€‹/ 2.0 0 .0-P247 / bin / ruby

replacing the link with something that points to the local version solved the problem.

+1


source







All Articles