-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Description
Hey their,
thank you a lot for your work!!
I am using the kotlin language server and love to use neovim for further coding. But somehow the language server does not detect generated java files from openapi
It works just fine in intellij, so the linking in maven seems correct. But somehow the language server cannot resolve the java file/package.
It just doesnt find it.
The java files are located in
target/generated-sources/src/java
Is it possible to recognize these?
Thank you for your support
Metadata
Metadata
Assignees
Labels
No labels
Activity
AlexandrosAlexiou commentedon Nov 25, 2024
I would like this feature as well, can we maybe have some pointers on how to implement this?
I would be available to create an MR, but I need some info to understand where to start from.
Pinging @fwcd, in case you have some time to give some pointers it would be great!
Thanks for you work!
AlexandrosAlexiou commentedon Nov 25, 2024
@auryn31 I took a look and seems it was easier that I thought.
I opened a pull request in a fork of this project that seems to be more active than this one here
ikezedev commentedon Nov 28, 2024
The LSP ignores everything listed here https://github.com/kotlin-community-tools/kotlin-language-server/blob/main/shared/src/main/kotlin/org/javacs/kt/SourceExclusions.kt#L16-L20.
To work around this, set this in gradle.properties
Rebuild and restart the lsp/extension host for the changes to be picked up
auryn31 commentedon Nov 29, 2024
Nice, thank you a lot. Will give it a try and see if i get it running :D