RubyMine(2017.3 RC) WSL remote SDK does not run bundle exec
Hi there! I found wsl support in 2017.3RC version, but if I set setting in Run -> Configuration -> Bundler bundle exec option, it does not appears in WSL run command. There is command:
C:\Users\haufau\AppData\Local\Microsoft\WindowsApps\ubuntu.exe run "export TEAMCITY_RAKE_RUNNER_MODE=idea && export \"RUBYOPT=-rdebug_preloader.rb -rbundler/setup\" && export LOGNAME=haufau && export PWD=/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/bin && export HOME=/home/haufau && export SHELL=/bin/bash && export LANG=en_US.UTF-8 && export \"PATH=\$PATH:/home/haufau/.rbenv/versions/2.4.0/bin:/home/haufau/.gem/ruby/2.4.0/bin:/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/ProgramData/Oracle/Java/javapath_target_4366421:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/haufau/AppData/Local/Microsoft/WindowsApps\" && export BUNDLE_GEMFILE=/mnt/d/elp/orders_api/Gemfile && export BUNDLE_BIN_PATH=/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/bin && export TERM=xterm-256color && export SHLVL=1 && export _=/usr/bin/env && export HOSTTYPE=x86_64 && export TEAMCITY_RAKE_TU_TESTRUNNERMADIATOR_PATH=/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/test-unit-3.2.3/lib/test/unit/ui/testrunnermediator.rb && export RUBYMINE_TESTUNIT_REPORTER=/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/rb/testing/patch/testunit && export USER=haufau && export TEAMCIY_RAKE_TU_AUTORUNNER_PATH=/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/test-unit-3.2.3/lib/test/unit/autorunner.rb && export ANSICON= && export \"TEAMCITY_RAKE_RUNNER_USED_FRAMEWORKS=:test_unit :shoulda \" && export NAME=DESKTOP-K8T8M4G && export RUBYLIB=/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/rb/gems:/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib:/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/rb/testing/patch/common:/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/rb/testing/patch/testunit:/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/rb/testing/patch/common:/mnt/c/Users/haufau/AppData/Local/JetBrains/Toolbox/apps/RubyMine/ch-0/173.3727.35/rb/testing/patch/bdd:/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/debase-0.2.2.beta11/lib:/home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ruby-debug-ide-0.6.1.beta10/lib && export RM_INFO=RM-173.3727.35 && cd /mnt/d/elp/orders_api && /home/haufau/.rbenv/versions/2.4.0/bin/ruby -e 'at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ruby-debug-ide-0.6.1.beta10/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 60073 --host 0.0.0.0 --dispatcher-port 60074 -- /mnt/d/elp/orders_api/bin/rails server -b 0.0.0.0 -p 3000 -e development"
So as you can see there is no bundle exec in run string:
cd /mnt/d/elp/orders_api && /home/haufau/.rbenv/versions/2.4.0/bin/ruby -e 'at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/haufau/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ruby-debug-ide-0.6.1.beta10/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --evaluation-control --time-limit 100 --memory-limit 0 --rubymine-protocol-extensions --port 60073 --host 0.0.0.0 --dispatcher-port 60074 -- /mnt/d/elp/orders_api/bin/rails server -b 0.0.0.0 -p 3000 -e development"
Sorry if I misunderstand how it would work. In that case can you explain it?
Please sign in to leave a comment.
Hello,
at the moment only system Ruby SDK is supported. Please vote and follow the corresponding issue for rbenv support for WSL:
https://youtrack.jetbrains.com/issue/RUBY-20303