Closed suvasanket closed 9 months ago
Can't help you without error messages / logs or reproduction steps. I assure you dap works fine with java if setup correctly.
Error: Could not find or load main class filename Caused by: java.lang.ClassNotFoundException: filename
by disabling dapui
LSP client configuration
local jdtls = require("jdtls") local cmp_nvim_lsp = require("cmp_nvim_lsp")
-- Change jdtls_path to wherever you have your Eclipse Java development tools (JDT) Language Server downloaded to. local jdtls_path = vim.fn.stdpath("data") .. "/language-servers/jdt-language-server" local launcher_jar = vim.fn.glob(jdtlspath .. "/plugins/org.eclipse.equinox.launcher*.jar") local workspace_dir = vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t")
-- for completions local client_capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = cmp_nvim_lsp.default_capabilities(client_capabilities)
local function get_config_dir() -- Unlike some other programming languages (e.g. JavaScript) -- lua considers 0 truthy! if vim.fn.has("linux") == 1 then return "config_linux" elseif vim.fn.has("mac") == 1 then return "config_mac" else return "config_win" end end
-- See
:help vim.lsp.start_client
for an overview of the supportedconfig
options. local config = { capabilities = capabilities,}
jdtls.start_or_attach(config)
Eclipse.jdt.ls version
No response
Steps to Reproduce
running debug on any java file
Expected Result
run the debug properly
Actual Result
dapui starts and then close within a split second (i think its not a dapui issue)