Closed ItsHoff closed 5 years ago
Check if ccls-executable
(default: "ccls"
) is absolute or can be found in your $PATH
.
I'm using an absolute path and I'm pretty sure emacs is able to find the ccls executable, since with an invalid path lsp-mode throws an error Command "C:/invalid/path/to/ccls.exe" is not present on the path.
Same error code, same behavior. The path is absolute, which didn't resolve this problem.
Btw, if I use the ccls compiled by Visual Studio, the error code was 116. If it is compiled by msys2-64, the error code was 53.
I saw this comment and gave it a try. In cmd.exe, I just ran ccls -h
. Then the program prompted 4 errors, saying missing the following dll
s:
I found all of them in the msys64\mingw64\bin
, and copied them all to the Release\ccls.exe
folder. Now the ccls can work normally.
And interestingly, I could not reproduce the exit code 116 anymore after I applied these changes. Notice that I didn't modify the ccls folder compiled by the Visual Studio. No idea why.
When I try to open a c++ file with lsp-mode enabled I get:
and only
Process ccls stderr finished
is printed to *ccls::stderr*. However, ccls does index the project when run from the command line../ccls/build/ccls.exe -index=.
System Information: