Remote Rake (Vagrant) get available tasks, bundle: no such file or directory

Hello,

I setup Vagrant with rbenv and installed ruby 2.2.4 and rails 4.2.5.1

The vagrant box is trusty64.

I configured the remote interpreter by selecting the ruby executable inside the versions folder (as suggested on this page: https://www.jetbrains.com/ruby/help/configuring-remote-ruby-interpreters.html) and it works fine. I can run the rails server and it also works in debug mode.

The only problem is when I reload the rake task list from Tools > Run Rake Task, as I get the following error message:

Error: [rake --tasks] env: /path/to/rails/app/bin/bundle: No such file or directory

But the file is actually there, and if I run rake --tasks from the virtual machine (vagrant ssh) it works fine.

 

Any idea? Thanks.

2 comments
Comment actions Permalink

Same here.

The logs are look like below:

2016-02-22 10:09:53,007 [1071652]   INFO - esdk.transport.JschExecProcess - Executing ssh command: cd /path/to/remote/rails/app; env "BUNDLE_GEMFILE"="/path/to/remote/rails/app/Gemfile" "ANSICON"="" "JETBRAINS_REMOTE_RUN"="1" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "RUBYMINE_TESTUNIT_REPORTER"="/home/vagrant/.rubymine_helpers/rb/testing/patch/testunit" "PATH"="/opt/rbenv/versions/2.2.2/bin:/home/vagrant/.gem/ruby/2.2.0/bin:/usr/local/bin:$PATH" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":test_unit :shoulda " "BUNDLE_BIN_PATH"="/opt/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/bin" "RUBYLIB"="/opt/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib:/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/testunit:/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "LANG"="ja_JP.UTF-8" "RM_INFO"="IU-143.1821" /path/to/local/rails/app/bin/bundle exec /path/to/remote/rails/app/bin/rake --tasks --trace for vagrant@127.0.0.1:2222
1317:2016-02-22 10:09:53,045 [1071690]   INFO - esdk.transport.JschExecProcess - Executing ssh command: cd /path/to/remote/rails/app; env "BUNDLE_GEMFILE"="/path/to/remote/rails/app/Gemfile" "ANSICON"="" "JETBRAINS_REMOTE_RUN"="1" "TEAMCITY_RAKE_RUNNER_MODE"="idea" "RUBYMINE_TESTUNIT_REPORTER"="/home/vagrant/.rubymine_helpers/rb/testing/patch/testunit" "PATH"="/opt/rbenv/versions/2.2.2/bin:/home/vagrant/.gem/ruby/2.2.0/bin:/usr/local/bin:$PATH" "TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS"=":test_unit :shoulda " "BUNDLE_BIN_PATH"="/opt/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/bin" "RUBYLIB"="/opt/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib:/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/testunit:/home/vagrant/.rubymine_helpers/rb/testing/patch/common:/home/vagrant/.rubymine_helpers/rb/testing/patch/bdd" "LANG"="ja_JP.UTF-8" "RM_INFO"="IU-143.1821" /path/to/local/rails/app/bin/bundle exec /path/to/remote/rails/app/bin/rake --prereqs --trace for vagrant@127.0.0.1:2222

I tried the ssh command replacing /path/to/local/rails/app/bin/bundle to /path/to/remote/rails/app/bin/bundle and it worked fine.

How can I fix this problem? Thanks.

0
Comment actions Permalink

This problem seems to be fixed after updating 2016.1. Thanks!

0

Please sign in to leave a comment.