lsp-java icon indicating copy to clipboard operation
lsp-java copied to clipboard

lsp-java reports class in the same package as unresolved

Open xqliu opened this issue 5 years ago • 2 comments

Describe the bug

  1. lsp-java reports class in the same package as unresolved, and

  2. when invoke lsp-execute-code-action, it promotes user to import the class, but since the two class is in the same package, so no import statement will be inserted,

  3. and then lsp keeps shown the type as unresolved.

Expect: since the two class is in the same package, so no explicit import statement is needed and also lsp-java should not report the class definition as not found.

Actual: as described above.

Versions:

  • Emacs: 27.0.90
  • Lsp-mode: 6.2.1
  • OS: Ubuntu 18.04

Thanks :)

xqliu avatar Apr 07 '20 00:04 xqliu

Please provide a sample project to reproduce the issue with.

yyoncho avatar Apr 07 '20 04:04 yyoncho

Ok, I will provide a sample profile soon and try to reproduce the issue.

Thanks

xqliu avatar Apr 09 '20 06:04 xqliu