Skip to content
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

[question] vim and language server inside a container #160

Closed
miquecg opened this issue Mar 23, 2020 · 8 comments
Closed

[question] vim and language server inside a container #160

miquecg opened this issue Mar 23, 2020 · 8 comments

Comments

@miquecg
Copy link

miquecg commented Mar 23, 2020

Hi,

This is a question rather than an issue. I'm using a container as development environment with vim and elixir-ls inside. No init system, just /usr/bin/zsh -l as entrypoint. ALE is the LSP client but linting doesn't occur. However on the host (Debian), same setup works and I can check with ALEInfo that server has been properly initialized:

(executable check - success) /home/devel/elixir-ls/rel/language_server.sh
(started) ['zsh', '-c', '/home/devel/elixir-ls/rel/language_server.sh']

Probably this means the language server is not able to spawn its own instances when there is no init process. Is this correct?

@axelson
Copy link
Member

axelson commented Mar 23, 2020

I am not sure what would happen in that case, are you getting specific error messages?

@miquecg
Copy link
Author

miquecg commented Mar 23, 2020

No errors whatsoever to my knowledge, just the absence of the (started) ... line when running inside the container.

@miquecg
Copy link
Author

miquecg commented Mar 23, 2020

Oh, I've just remembered something. I checked executing the very same command (zsh -c ...) from container shell and server started fine. So the problem cannot be the lack of an init process.

Since this is just a question I will close the issue and open a new one with the exact problem when I test it again.

@sanjibukai
Copy link

sanjibukai commented Apr 5, 2020

Hello,
I had also an issue with this version when working with containers.
And in my case I wasn't using the bash shell within the container while it's somehow a dependency for the launching script.
And since you mentioned zsh, your problem might be related.
Take a look here.

@axelson
Copy link
Member

axelson commented Apr 6, 2020

@miquecg specifically it appears that if you do not have bash installed on the container then ElixirLS will fail to start. Another workaround is removing asdf from the the container.

@axelson
Copy link
Member

axelson commented Apr 8, 2020

@miquecg Are you able to test #190 to see if if works for your setup? That would be very helpful if so!

@miquecg
Copy link
Author

miquecg commented Apr 9, 2020

@axelson It works fine on my Debian box, running vim on a Zsh shell and using asdf to manage Erlang/Elixir installations. Bash is also installed on the system.

I don't have yet a fully configured image for development so I mostly give up on using containers by now.

@axelson
Copy link
Member

axelson commented Apr 9, 2020

Thanks for trying out the change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants