yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
458 stars 49 forks source link

Error with args when connecting to a server running on a container. #467

Open ubaldot opened 6 months ago

ubaldot commented 6 months ago

I have a clangdserver running on a docker. I registered the LSP server as it follows:

     {
        name: 'foo',
        filetype: ['c', 'cpp'],
        path: '/home/yt75534/avap_example/enter_container.sh',
        args: [ '--background-index', '--clang-tidy',
        '-header-insertion=never'],
        debug: true,
    },

but theLSP server exited with status 0. Inspection oflsp-foo.err gives:

/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- -
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- b
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- a
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- c
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- k
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- g
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- r
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- o
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- u
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- -
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- c
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- l
/home/yt75534/avap_example/avap-util/scripts/enter_container_uba.sh: illegal option -- a