-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "Docker executable not found." #1
Comments
Thanks for your reporting! Could you show me the result of |
And could you try {
"ruby-lsc.commandWithArgs": [
"/usr/local/bin/docker", "run", "--rm", "-i", "mtsmfm/language_server-ruby"
]
} |
Yes that and it does work. The path is:
Only thing I can think of is that vscode isn't loading the shell path. |
Hmm, could you try restarting (not reloading) vscode and macOS? I'll investigate how vscode detect PATH 🤔 |
@mtsmfm VSCode loads env successfully if it's launched from command line, otherwise vscode has no idea about the shell path. To mitigate this problem, we can load the shell path manually when the extension gets activated. Here is how we handle this issue in VSCode Ruby extension https://github.com/rubyide/vscode-ruby/blob/master/src/utils.ts#L25 , we can use the same technique here. |
@rebornix Thank you for your information! I can't reproduce "Docker executable not found" problem by double-click vscode icon. Could you tell me how can I reproduce? I noticed that vscode-ruby-lsc/src/extension.ts Line 22 in 175b6cc
|
I have docker installed on OSX as well as the docker-sync gem. But I am still getting this error.
docker
anddocker-compose
commands are available in/usr/local/bin
and that is in/etc/paths
and available via the terminal.The exact error is:
The text was updated successfully, but these errors were encountered: