Closed zsxh closed 8 months ago
I believe, it is not jdt.ls specific. Have the same issue with clangd. Also found relevant discussion in corfu
Ok. Then please make a recipe for clangd that I can follow EXACTLY like @zsxh did. I can certainly follow that and come to a conclusion (@zsxh 's much harder to follow because it needs Java, which I don't want to be install)
@joaotavora
Versions:
Emacs 29.1
eglot 1.16
company 20240107
Test file:
#include <vector>
int main(int argc, char *argv[])
{
std::vector<int> v;
v.push_back(5);
return 0;
}
Steps:
emacs -Q -f package-initialize main.cc -f global-company-mode -f eglot
Thanks. Confirmed. Doesn't always happen though, have to debug.
Should be fixed in the latest master Emacs and also in the upcoming Eglot 1.17, which should be in GNU ELPA tomorrow
That was fast! Thank you @joaotavora !
file /tmp/demo/SingleFile.java
jdt.ls
LSP server is installed and available in pathemacs -Q -f package-initialize /tmp/demo/SingleFile.java -f global-company-mode -f eglot
Array
, selectArrays
RETpublic class SingleFile { public static void main(String[] args) { Arraysray } }
eglot-jdtls.log