-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Solargraph execution is wrapped in a login shell, messing up the path #62
Comments
The server is started by https://www.npmjs.com/package/solargraph-utils module. |
|
Facing similar issue with homebrew on m1 mac |
After 5934c42, this fixes the problem: call coc#config('solargraph.shell', $SHELL) In my case, my |
Here is the story..
I tried to use bundler with coc-solargraph, but it failed to start with the following error message:
I couldn't figure it out for a while until I noticed that the message is coming from the system ruby, while I'm using
asdf
version in my setup:So I figured out it must be a problem with path.
so I wrote a simple bash script to print path to STDERR and set it as my
solargraph.bundlerPath
My shell PATH starts with
/Users/vitaly/.asdf/shims:/Users/vitaly/.asdf/bin:
and then the usual directories. This is standard setup by asdf.But what I got from my "Solargraph" is this:
So it looked like something messed up the path, adding all the standard directories at the beginning.
On a whim I decideed to see if there's any kind of wrapper process, so I added
pstree -p $$ >&2
to my dump script.And this is what I ggt:
My SHELL is
/usr/local/bin/zsh
. For some reason executiuon is being wrappedin a login invocation (
-l
) of it, which, of course, resets thePATH
If I change it to
export SHELL=/bin/bash
, then I get this:I also tried to set my script as a language server in
coc
. There was no problem, path was intact, and no wrapper:I tried to look through
coc-solargraph
andcoc.nvim
sources, but I couldn't find anything..Any ideas what might be the problem?
The text was updated successfully, but these errors were encountered: