Skip to content

Support running bash-language-server in Docker for Windows #121

Closed
@deimi

Description

@deimi

It would be neat to run the linux version of bash-language-server in Docker for Windows, instead of having to install it on the Windows host PC with all it dependencies.

I have tried to do it already, but I failed. I don't have that much experience with Javascript and VSCode extensions. (See https://github.com/deimi/bash-language-server-docker for my docker image where bash-language-server can be executed)
At the beginning I was not able to execute the docker container ("docker run -i --rm bash-language-server:latest") via the vscode client. The reason was that the client is using child_process_1.execFile. I temporary changed it to child_process_1.exec and the client can execute the server inside docker.
But then I got into the next problem. The client tries to check the version of the server, but the result is always "0.0.0". I think there is something wrong with stdout from docker to client, but I'm not sure and after much trying I got stuck.

Maybe someone else has some good ideas to get this running? At the moment I'm not even near to test the real LSP stuff....

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions