Skip to content

Conversation

@asmodeus812
Copy link

This is integrating the original implementation of coc and native lsp to allow neotest-java to build workspace and projects based on the current context, this PR allows us to also resolve the correct runtime and java kit location, when running the build and tests as well. The runtime is first resolved from the project settings, or from the build file (gradle support still flaky).

The gist of this is to provide an abstract bridge between the lsp client and the underlying api - native nvim/coc. The build is either for the entire workspace, or per project, the current project is resolved based on the module base_dir

The configuration of the plugin is extended to allow users to provide manually their jdk version home location, in case they are not located on the path or in the usual locations. Those can be either provided as env variables or in the plugin config map.

Some minor fixes and formatting has been applied. @rcasia would be nice to get this finally in i have been working with my fork for more than a year and has been working just fine, however there are still issues unrelated to the build process, but related to the module resolve logic, having a multi-level nested multi module project is not working fine where the root actually contains multiple multi module projects like that:

  • root monorepo
  • .git
  • multi-mod-1
  • multi-mod-2

@asmodeus812 asmodeus812 changed the title Feat/integrate lsp workspace project build Feat/integrate lsp workspace project build with coc and native lsp Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant