2016-09-07 15 views
1

私はWindows上の迷惑メールプラグインのためにlaunch.jsonを設定しようとしています。私の現在のバージョンは次のようになります:迷惑メールプラグインのVSCode launch.json

{ 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "name": "Launch Vagrant", 
      "type": "Ruby", 
      "request": "launch", 
      "cwd": "${workspaceRoot}", 
      "program": "${workspaceRoot}/bin/vagrant", 
      "args": ["up"], 
      "env": { 
       "VAGRANT_CWD": "${workspaceRoot}/development" 
      } 
     } 
    ] 
} 

今やプラグインを起動すると、外来は外部依存関係を失います。だから私はエラーを取得する:

The executable 'curl' Vagrant is trying to run was not 
found in the %PATH% variable. This is an error. Please verify 
this software is installed and on the path. 

は、トラブルのように私のパス音(cp.exedir.exe、...)に必要な依存関係を追加します。

私が試した:

 "env": { 
      "PATH": "/HashiCorp/Vagrant/embedded/bin;${PATH}", 
      "VAGRANT_CWD": "${workspaceRoot}/development" 
     } 

をしかし、その後、私はDebugger terminal error: Process failed: spawn rdebug-ide.bat ENOENTを取得します。

launch.jsonにPATH環境変数を使用する方法はありますか?

答えて

0

@sschoof WindowsホストマシンからVSコードを実行しようとしている場合は、これを読むことをお勧めします。post

私は現在、Mac OSXホストを使用してnodejs、VS Code、Azureで使用するための開発ワークスペースの設定を開始しました。私の解決策は動作していますが、私はWindowsの実装を完了していないので、現在はより多くの経験アドバイスを提供することができません。私は、多くの場合、ビジュアルで私launch.jsonでのRubyアプリケーションのためにこれを使用する例http://code.visualstudio.com/docs/editor/tasks#_variable-substitution

:で

You can also reference environment variables through ${env.Name} (e.g. ${env.PATH}). Be sure to match the environment variable name's casing, for example env.Path on Windows.

:ドキュメントから

Is there a way the expend the PATH environment Variable in the launch.json?

:の質問については

0

スタジオコード:

... 
"pathToBundler": "${env.HOME}/.rvm/gems/ruby-2.3.0/wrappers/bundle", 
... 
関連する問題