final0pro
V2EX  ›  问与答

intellij ruby 如何使用 vagrant 里的环境

  •  
  •   final0pro · Oct 8, 2015 · 2647 views
    This topic created in 3899 days ago, the information mentioned may be changed or developed.

    intellij 安装了 ruby plugin ,并且正确配置了 vagrant 和 vboxmanager 的 path 。

    现在 intellij 可以使用 vagrant 里 ruby 了( remote ruby sdk )

    但是通过 intellij debug 或者 run rspec 的时候,提示我 missing gems ,并且给我选项 install all missing gems 。尝试了下,发现

    /home/vagrant/.rvm/rubies/jruby-1.7.19/bin/jruby --1.9 /Users/T800/work/ACT_API/bin/bundle install
    bash: line 0: cd: /Users/T800/work/ACT_API: No such file or directory
    Error opening script file: /Users/T800/work/ACT_API/bin/bundle (No such file or directory)
    

    给我的感觉是 intellij 并没有在 vm 的环境下执行,并且并没有配置正确的 project path 。

    有人碰到同样的问题嘛?

    谢谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4543 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:06 · PVG 12:06 · LAX 21:06 · JFK 00:06
    ♥ Do have faith in what you're doing.