-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Issue:
:checkhealth vim.lsp command never shows spring-boot LS and suggestions do not work in application.yml/application.properties.
Description:
My setup:
vscode-spring-boot-toolsandjdtlsinstalled with Mason.nvim-jdtlssetup withftplugin.lazy.nvimconfiguration fornvim-jdtlsandspring-boot.nvim:
{
"mfussenegger/nvim-jdtls",
dependencies = { "mfussenegger/nvim-dap" }
},
{
"JavaHello/spring-boot.nvim",
dependencies = { "mfussenegger/nvim-jdtls" },
lazy = true,
opts = {}
}- My
ftpluginconfig for java and yaml:
local data_path = "..." -- path to constructed data directory for the project
local jdtls_bin = "..." -- path to JDTLS binary
local lombok_jar = "..." -- path to Lombok jar
local bundles = {}
vim.list_extend(bundles, require("spring_boot").java_extensions())
vim.list_extend(bundles, vim.split(vim.fn.glob(".../vscode-java-test/server/*.jar"), "\n"))
vim.list_extend(bundles, vim.split(vim.fn.glob(".../java-debug/com.microsoft.java.debug.plugin/target/*.jar"), "\n"))
jdtls.start_or_attach({
cmd = {
jdtls_bin,
"--jvm-arg=-javaagent:" .. lombok_jar,
"-data", data_path
},
root_dir = vim.fs.dirname(vim.fs.find({ "gradlew", ".git", "mvnw" }, { upward = true })[1]),
init_options = { bundles = bundles }
})- The
jdtlsLS works well, completion in java files is present, no issues. The:checkhealth vim.lspcommand always show it properly.java-testsetup and debugging also work fine.
The problem:
- The
spring-bootLS never shows up in:checkhealth vim.lsporlsp.log. - Sometimes when I open java or yaml file I get the message
Spring Boot LS is not installed.
(I can fix this one by manually providingls_pathto the opts inspring-boot.nvimconfiguration, but it looks like something else is wrong)
Metadata
Metadata
Assignees
Labels
No labels