coc-solargraph icon indicating copy to clipboard operation
coc-solargraph copied to clipboard

Dispatch commandPath to a docker-container

Open waiting-for-dev opened this issue 4 years ago • 3 comments

First of all, thanks for maintaining this integration of solargraph with vim :heart:

I'm trying to dispatch solargraph command to a docker container, but it seems not to be possible:

"solargraph.commandPath": "docker-compose exec app bundle exec solargraph",
"solargraph.useBundler": false

I do have solargraph in the Gemfile and the command docker-compose exec app bundle exec solargraph works without problems in the console.

Thanks for any help.

waiting-for-dev avatar Mar 15 '21 10:03 waiting-for-dev

I don't think that could work since solargraph in your docker can't read your files.

chemzqm avatar Mar 15 '21 10:03 chemzqm

Thanks for your answer.

It should be possible, as the files are accessible through a shared volume. They are accessible from the command line.

It seems more a problem about how the executable is resolved, as coc.nvim doesn't seem to recognize it and it prompts me to install the solargraph gem.

waiting-for-dev avatar Mar 15 '21 10:03 waiting-for-dev