Closed Netwyn closed 2 years ago
It also happens upon saving a file with :w
; forgot to add that in the main post.
I see the same error "received end msg with no correponding begin" (including same lsp.log output) with the same eclipse version. Latest version of nvim-jdtls (via :PackerSync). Neovim 0.7.2 with LuaJIT 2.1.0-beta3. Oracle JDK 18.0.2.1.
Happens every time I open a new Java file. Doesn't appear to affect LSP behaviour. Don't see the error on file save though.
There were log files in $HOME/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jarstall_location/config_linux/ that contained errors like this:
!SESSION 2022-09-20 21:51:16.695 -----------------------------------------------
eclipse.buildId=unknown
java.version=18.0.2.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_AU
Command-line arguments: -data /home/work/workspace/simple-springboot
!ENTRY org.eclipse.osgi 4 0 2022-09-20 21:51:16.981
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:81)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
And the jdtls config I'm using is pretty much identical to the nvim-jdtls reference config, and it's in the ftplugin
folder.
Do you disable progressReportProvider
? I only get the errors if I do (after https://github.com/eclipse/eclipse.jdt.ls/pull/2030) which is why I haven't changed the default setting yet. I haven't had time yet to take a closer look
I haven't - I see it's set to true in $HOME/.local/share/nvim/site/pack/packer/start/nvim-jdtls/lua/jdtls/setup.lua
.
The lsp.log file looks like this upon launching neovim to open a java source file:
[START][2022-09-22 22:04:55] LSP logging initiated
[INFO][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:261 "Starting RPC client" { args = { "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product", "-Dlog.protocol=true", "-Dlog.level=ALL", "-Xms1g", "--add-modules=ALL-SYSTEM", "--add-opens", "java.base/java.util=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-jar", "/home/work/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar", "-configuration", "/home/work/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jarstall_location/config_linux", "-data", "/home/work/workspace/simple-springboot" }, cmd = "java", extra = {}}
[DEBUG][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:347 "rpc.send" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, clientInfo = { name = "Neovim", version = "0.7.2" }, initializationOptions = { bundles = {}, extendedClientCapabilities = { advancedExtractRefactoringSupport = true, advancedOrganizeImportsSupport = true, classFileContentsSupport = true, generateConstructorsPromptSupport = true, generateDelegateMethodsPromptSupport = true, generateToStringPromptSupport = true, hashCodeEqualsPromptSupport = true, inferSelectionSupport = { "extractMethod", "extractVariable", "extractConstant" }, moveRefactoringSupport = true, overrideMethodsPromptSupport = true, progressReportProvider = true } }, processId = 2263718, rootPath = "/home/work/projects/simple-springboot", rootUri = "file:///home/work/projects/simple-springboot", trace = "off", workspaceFolders = { { name = "/home/work/projects/simple-springboot", uri = "file:///home/work/projects/simple-springboot" } } }}
[INFO][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:261 "Starting RPC client" { args = { "-configuration", "/home/work/.cache/jdtls/config", "-data", "/home/work/.cache/jdtls/workspace", "--jvm-arg=-javaagent:/home/work/.m2/repository/org/projectlombok/lombok/1.18.24/lombok-1.18.24.jar" }, cmd = "jdtls", extra = { cwd = "/home/work/projects/simple-springboot" }}
[DEBUG][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:347 "rpc.send" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, clientInfo = { name = "Neovim", version = "0.7.2" }, initializationOptions = { jvm_args = {}, workspace = "/home/work/.cache/jdtls/workspace" }, processId = 2263718, rootPath = "/home/work/projects/simple-springboot", rootUri = "file:///home/work/projects/simple-springboot", trace = "off", workspaceFolders = { { name = "/home/work/projects/simple-springboot", uri = "file:///home/work/projects/simple-springboot" } } }}
[ERROR][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:420 "rpc" "jdtls" "stderr" "Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.\n"
[ERROR][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:420 "rpc" "java" "stderr" "WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign\n"
[ERROR][2022-09-22 22:04:55] .../vim/lsp/rpc.lua:420 "rpc" "jdtls" "stderr" "WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign\n"
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "Init...", type = "Starting" }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "0% Starting Java Language Server", type = "Starting" }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "00d7e85b-e94e-4a64-a863-0c5c9fcac4e6", value = { kind = "begin", message = "Initialize Workspace", title = "Initialize Workspace" } }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:454 "rpc.receive" { id = 1, jsonrpc = "2.0", result = { capabilities = { callHierarchyProvider = true, codeActionProvider = { resolveProvider = true }, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ".", "@", "#", "*", " " } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = ";", moreTriggerCharacter = { "\n", "}" } }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "java.edit.organizeImports", "java.project.refreshDiagnostics", "java.project.import", "java.navigate.openTypeHierarchy", "java.project.removeFromSourcePath", "java.project.listSourcePaths", "java.project.resolveStackTraceLocation", "java.project.getAll", "java.project.isTestFile", "java.project.getClasspaths", "java.navigate.resolveTypeHierarchy", "java.edit.stringFormatting", "java.project.getSettings", "java.project.updateSourceAttachment", "java.project.resolveWorkspaceSymbol", "java.project.upgradeGradle", "java.protobuf.generateSources", "java.project.resolveSourceAttachment", "java.project.addToSourcePath" } }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { documentSelector = { { language = "java", scheme = "file" }, { language = "java", scheme = "jdt" } }, full = { delta = false }, legend = { tokenModifiers = { "abstract", "static", "readonly", "deprecated", "declaration", "documentation", "public", "private", "protected", "native", "generic", "typeArgument", "importDeclaration", "constructor" }, tokenTypes = { "namespace", "class", "interface", "enum", "enumMember", "type", "typeParameter", "method", "property", "variable", "parameter", "modifier", "keyword", "annotation", "annotationMember", "record", "recordComponent" } }, range = false }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = { includeText = true } }, typeDefinitionProvider = true, workspace = { workspaceFolders = { changeNotifications = true, supported = true } }, workspaceSymbolProvider = true } }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:347 "rpc.send" { jsonrpc = "2.0", method = "initialized", params = vim.empty_dict()}
[DEBUG][2022-09-22 22:04:56] .../lua/vim/lsp.lua:982 "LSP[jdtls]" "server_capabilities" { callHierarchyProvider = true, codeActionProvider = { resolveProvider = true }, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ".", "@", "#", "*", " " } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = ";", moreTriggerCharacter = { "\n", "}" } }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "java.edit.organizeImports", "java.project.refreshDiagnostics", "java.project.import", "java.navigate.openTypeHierarchy", "java.project.removeFromSourcePath", "java.project.listSourcePaths", "java.project.resolveStackTraceLocation", "java.project.getAll", "java.project.isTestFile", "java.project.getClasspaths", "java.navigate.resolveTypeHierarchy", "java.edit.stringFormatting", "java.project.getSettings", "java.project.updateSourceAttachment", "java.project.resolveWorkspaceSymbol", "java.project.upgradeGradle", "java.protobuf.generateSources", "java.project.resolveSourceAttachment", "java.project.addToSourcePath" } }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { documentSelector = { { language = "java", scheme = "file" }, { language = "java", scheme = "jdt" } }, full = { delta = false }, legend = { tokenModifiers = { "abstract", "static", "readonly", "deprecated", "declaration", "documentation", "public", "private", "protected", "native", "generic", "typeArgument", "importDeclaration", "constructor" }, tokenTypes = { "namespace", "class", "interface", "enum", "enumMember", "type", "typeParameter", "method", "property", "variable", "parameter", "modifier", "keyword", "annotation", "annotationMember", "record", "recordComponent" } }, range = false }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = { includeText = true } }, typeDefinitionProvider = true, workspace = { workspaceFolders = { changeNotifications = true, supported = true } }, workspaceSymbolProvider = true}
[INFO][2022-09-22 22:04:56] .../lua/vim/lsp.lua:983 "LSP[jdtls]" "initialized" { resolved_capabilities = { call_hierarchy = true, code_action = { resolveProvider = true }, code_lens = true, code_lens_resolve = true, completion = true, declaration = false, document_formatting = true, document_highlight = true, document_range_formatting = true, document_symbol = true, execute_command = true, find_references = true, goto_definition = true, hover = true, implementation = true, rename = true, signature_help = true, signature_help_trigger_characters = { "(", "," }, text_document_did_change = 2, text_document_open_close = true, text_document_save = { includeText = true }, text_document_save_include_text = true, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = true, workspace_folder_properties = { changeNotifications = true, supported = true }, workspace_symbol = true }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:347 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "java", text = 'package com.example.mynewproject;\n\nimport java.util.Date;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport lombok.extern.slf4j.Slf4j;\n\n@SpringBootApplication\n@Slf4j\npublic class DemoApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(DemoApplication.class, args);\n sayHello();\n }\n\n static void sayHello() {\n System.out.println("Hello");\n log.info("Simple log statement with inputs {}, {} and {}", 1, 2, 3);\n }\n}\n', uri = "file:///home/work/projects/simple-springboot/src/main/java/com/example/mynewproject/DemoApplication.java", version = 0 } }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "30% Starting Java Language Server", type = "Starting" }}
[DEBUG][2022-09-22 22:04:56] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "00d7e85b-e94e-4a64-a863-0c5c9fcac4e6", value = { kind = "report", message = "Initialize Workspace", percentage = 30 } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "34% Starting Java Language Server", type = "Starting" }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "00d7e85b-e94e-4a64-a863-0c5c9fcac4e6", value = { kind = "report", message = "Importing Maven project(s)", percentage = 33 } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "OK", type = "ProjectStatus" }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "100% Starting Java Language Server - Refreshing '/my-new-project'.", type = "Starting" }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "00d7e85b-e94e-4a64-a863-0c5c9fcac4e6", value = { kind = "end", message = "Importing Maven project(s)" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "Ready", type = "Started" }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "2a39842e-4808-4d76-9e22-fdb918184808", value = { kind = "begin", message = "Synchronizing projects", title = "Synchronizing projects" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "6b2901b3-eaca-4442-86cb-77f6628f6576", value = { kind = "begin", message = "Synchronizing projects", title = "Synchronizing projects" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "100% Starting Java Language Server - Refreshing '/my-new-project'.", type = "Starting" }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "00d7e85b-e94e-4a64-a863-0c5c9fcac4e6", value = { kind = "end", message = "Importing Maven project(s)" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "2a39842e-4808-4d76-9e22-fdb918184808", value = { kind = "end", message = "Synchronizing projects" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "6b2901b3-eaca-4442-86cb-77f6628f6576", value = { kind = "end", message = "Synchronizing projects" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "2a39842e-4808-4d76-9e22-fdb918184808", value = { kind = "end", message = "Synchronizing projects" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "6b2901b3-eaca-4442-86cb-77f6628f6576", value = { kind = "end", message = "Synchronizing projects" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "71fe10ec-d5fa-4ea0-aacc-23c8792c13e1", value = { kind = "end", message = "Repository registry initialization" } }}
[DEBUG][2022-09-22 22:04:57] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "49203d30-be85-449e-8f8b-98b05623b3fd", value = { kind = "begin", message = "Building", title = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "49203d30-be85-449e-8f8b-98b05623b3fd", value = { kind = "report", message = "Building", percentage = 75 } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "49203d30-be85-449e-8f8b-98b05623b3fd", value = { kind = "end", message = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "49203d30-be85-449e-8f8b-98b05623b3fd", value = { kind = "end", message = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "49203d30-be85-449e-8f8b-98b05623b3fd", value = { kind = "end", message = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "34a0b37f-b0e4-470d-a0f9-b29851b2c399", value = { kind = "begin", message = "Validate documents", title = "Validate documents" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "34a0b37f-b0e4-470d-a0f9-b29851b2c399", value = { kind = "end", message = "Validate documents" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "5fa35c10-75d7-42c7-9abb-32bc1acf6023", value = { kind = "begin", message = "Publish Diagnostics", title = "Publish Diagnostics" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "5fa35c10-75d7-42c7-9abb-32bc1acf6023", value = { kind = "report", message = "Publish Diagnostics", percentage = 25 } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "268435844", message = "The import java.util.Date is never used", range = { end = { character = 21, line = 2 }, start = { character = 7, line = 2 } }, severity = 2, source = "Java", tags = { 1 } } }, uri = "file:///home/work/projects/simple-springboot/src/main/java/com/example/mynewproject/DemoApplication.java" }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "5fa35c10-75d7-42c7-9abb-32bc1acf6023", value = { kind = "end", message = "Publish Diagnostics" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "e087cbc7-7c15-41e5-b50b-5332cfbe2bd3", value = { kind = "begin", message = "Building", title = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "e087cbc7-7c15-41e5-b50b-5332cfbe2bd3", value = { kind = "end", message = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "e087cbc7-7c15-41e5-b50b-5332cfbe2bd3", value = { kind = "end", message = "Building" } }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { code = "0", message = "Build path specifies execution environment JavaSE-17. There are no JREs installed in the workspace that are strictly compatible with this environment. ", range = { end = { character = 0, line = 0 }, start = { character = 0, line = 0 } }, severity = 2, source = "Java" }, { code = "0", message = "The compiler compliance specified is 17 but a JRE 18 is used", range = { end = { character = 0, line = 0 }, start = { character = 0, line = 0 } }, severity = 2, source = "Java" } }, uri = "file:///home/work/projects/simple-springboot" }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///home/work/projects/simple-springboot/pom.xml" }}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { id = "1", jsonrpc = "2.0", method = "client/registerCapability", params = { registrations = { { id = "d92a2a12-6455-4cc3-b292-e76ccec21c24", method = "workspace/didChangeWorkspaceFolders" } } }}
[WARN][2022-09-22 22:04:58] ...lsp/handlers.lua:110 "The language server jdtls triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:464 "server_request: callback result" { result = vim.NIL, status = true}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:347 "rpc.send" { id = "1", jsonrpc = "2.0", result = vim.NIL}
[DEBUG][2022-09-22 22:04:58] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "language/status", params = { message = "ServiceReady", type = "ServiceReady" }}
[INFO][2022-09-22 22:05:44] .../lua/vim/lsp.lua:1392 "exit_handler" { [2] = { _on_attach = <function 1>, attached_buffers = { true }, cancel_request = <function 2>, commands = {}, config = { autostart = true, capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = false, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, willSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, symbol = { dynamicRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, cmd = { "jdtls", "-configuration", "/home/work/.cache/jdtls/config", "-data", "/home/work/.cache/jdtls/workspace", "--jvm-arg=-javaagent:/home/work/.m2/repository/org/projectlombok/lombok/1.18.24/lombok-1.18.24.jar" }, cmd_cwd = "/home/work/projects/simple-springboot", filetypes = { "java" }, flags = {}, get_language_id = <function 3>, handlers = <1>{ ["language/status"] = <function 4>, ["textDocument/codeAction"] = <function 5>, ["textDocument/rename"] = <function 6>, ["workspace/applyEdit"] = <function 7> }, init_options = { jvm_args = {}, workspace = "/home/work/.cache/jdtls/workspace" }, log_level = 2, message_level = 2, name = "jdtls", on_attach = <function 8>, on_exit = <function 9>, on_init = <function 10>, root_dir = "/home/work/projects/simple-springboot", settings = vim.empty_dict(), single_file_support = true, workspace_folders = <2>{ { name = "/home/work/projects/simple-springboot", uri = "file:///home/work/projects/simple-springboot" } }, <metatable> = <3>{ __tostring = <function 11> } }, handlers = <table 1>, id = 2, initialized = true, is_stopped = <function 12>, messages = { messages = {}, name = "jdtls", progress = { ["00d7e85b-e94e-4a64-a863-0c5c9fcac4e6"] = { done = true, message = "Importing Maven project(s)", percentage = 33, title = "Initialize Workspace" }, ["2a39842e-4808-4d76-9e22-fdb918184808"] = { done = true, message = "Synchronizing projects", title = "Synchronizing projects" }, ["34a0b37f-b0e4-470d-a0f9-b29851b2c399"] = { done = true, message = "Validate documents", title = "Validate documents" }, ["49203d30-be85-449e-8f8b-98b05623b3fd"] = { done = true, message = "Building", percentage = 75, title = "Building" }, ["5fa35c10-75d7-42c7-9abb-32bc1acf6023"] = { done = true, message = "Publish Diagnostics", percentage = 25, title = "Publish Diagnostics" }, ["6b2901b3-eaca-4442-86cb-77f6628f6576"] = { done = true, message = "Synchronizing projects", title = "Synchronizing projects" }, ["e087cbc7-7c15-41e5-b50b-5332cfbe2bd3"] = { done = true, message = "Building", title = "Building" } }, status = {} }, name = "jdtls", notify = <function 13>, offset_encoding = "utf-16", request = <function 14>, request_sync = <function 15>, requests = {}, resolved_capabilities = { call_hierarchy = true, code_action = <4>{ resolveProvider = true }, code_lens = true, code_lens_resolve = true, completion = true, declaration = false, document_formatting = true, document_highlight = true, document_range_formatting = true, document_symbol = true, execute_command = true, find_references = true, goto_definition = true, hover = true, implementation = true, rename = true, signature_help = true, signature_help_trigger_characters = <5>{ "(", "," }, text_document_did_change = 2, text_document_open_close = true, text_document_save = <6>{ includeText = true }, text_document_save_include_text = true, text_document_will_save = false, text_document_will_save_wait_until = false, type_definition = true, workspace_folder_properties = { changeNotifications = true, supported = true }, workspace_symbol = true }, rpc = { handle = <userdata 1>, notify = <function 16>, pid = 2263724, request = <function 17> }, server_capabilities = { callHierarchyProvider = true, codeActionProvider = <table 4>, codeLensProvider = { resolveProvider = true }, completionProvider = { resolveProvider = true, triggerCharacters = { ".", "@", "#", "*", " " } }, definitionProvider = true, documentFormattingProvider = true, documentHighlightProvider = true, documentOnTypeFormattingProvider = { firstTriggerCharacter = ";", moreTriggerCharacter = { "\n", "}" } }, documentRangeFormattingProvider = true, documentSymbolProvider = true, executeCommandProvider = { commands = { "java.edit.organizeImports", "java.project.refreshDiagnostics", "java.project.import", "java.navigate.openTypeHierarchy", "java.project.removeFromSourcePath", "java.project.listSourcePaths", "java.project.resolveStackTraceLocation", "java.project.getAll", "java.project.isTestFile", "java.project.getClasspaths", "java.navigate.resolveTypeHierarchy", "java.edit.stringFormatting", "java.project.getSettings", "java.project.updateSourceAttachment", "java.project.resolveWorkspaceSymbol", "java.project.upgradeGradle", "java.protobuf.generateSources", "java.project.resolveSourceAttachment", "java.project.addToSourcePath" } }, foldingRangeProvider = true, hoverProvider = true, implementationProvider = true, referencesProvider = true, renameProvider = { prepareProvider = true }, selectionRangeProvider = true, semanticTokensProvider = { documentSelector = { { language = "java", scheme = "file" }, { language = "java", scheme = "jdt" } }, full = { delta = false }, legend = { tokenModifiers = { "abstract", "static", "readonly", "deprecated", "declaration", "documentation", "public", "private", "protected", "native", "generic", "typeArgument", "importDeclaration", "constructor" }, tokenTypes = { "namespace", "class", "interface", "enum", "enumMember", "type", "typeParameter", "method", "property", "variable", "parameter", "modifier", "keyword", "annotation", "annotationMember", "record", "recordComponent" } }, range = false }, signatureHelpProvider = { triggerCharacters = <table 5> }, textDocumentSync = { change = 2, openClose = true, save = <table 6> }, typeDefinitionProvider = true, workspace = { workspaceFolders = { changeNotifications = true, supported = true } }, workspaceSymbolProvider = true }, stop = <function 18>, supports_method = <function 19>, workspaceFolders = <table 2>, workspace_did_change_configuration = <function 20>, workspace_folders = <table 2> }}
[DEBUG][2022-09-22 22:05:44] .../vim/lsp/rpc.lua:347 "rpc.send" { id = 2, jsonrpc = "2.0", method = "shutdown"}
[DEBUG][2022-09-22 22:05:44] .../vim/lsp/rpc.lua:454 "rpc.receive" { id = 2, jsonrpc = "2.0", result = vim.empty_dict()}
[DEBUG][2022-09-22 22:05:44] .../vim/lsp/rpc.lua:347 "rpc.send" { jsonrpc = "2.0", method = "exit"}
[DEBUG][2022-09-22 22:05:44] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "5721fb99-6e5d-4b59-91b4-4cc09c3debf1", value = { kind = "begin", message = "Shutdown...", title = "Shutdown..." } }}
[DEBUG][2022-09-22 22:05:44] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "5721fb99-6e5d-4b59-91b4-4cc09c3debf1", value = { kind = "end", message = "Saving workspace." } }}
[DEBUG][2022-09-22 22:05:44] .../vim/lsp/rpc.lua:454 "rpc.receive" { jsonrpc = "2.0", method = "$/progress", params = { token = "5721fb99-6e5d-4b59-91b4-4cc09c3debf1", value = { kind = "end", message = "Saving workspace." } }}
I am getting the same error even without nvim-jdtls (on raw nvim-lspconfig), so this is likely a problem with jdtls itself.
Opened a PR upstream: https://github.com/eclipse/eclipse.jdt.ls/pull/2258
If progressReportProvider
is set to true (the default of nvim-jdtls), this error shouldn't happen even without that PR
If
progressReportProvider
is set to true (the default of nvim-jdtls), this error shouldn't happen even without that PR
FWIW, I reviewed my lsp.log files with debug enabled and it is defintely set to true.
[DEBUG][2022-09-24 19:58:33] .../vim/lsp/rpc.lua:347 "rpc.send" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { callHierarchy = { dynamicRegistration = fal se }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "Re factorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = false, deprecatedSupport = false, documentationFormat = { "markdown", "plaintext" }, preselectSupport = false, snippetSupport = false }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, contextSupport = fals e, dynamicRegistration = false }, declaration = { linkSupport = true }, definition = { linkSupport = true }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistrati on = false }, implementation = { linkSupport = true }, publishDiagnostics = { relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = false, prepareSupport = true }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformatio n = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = false, wil lSaveWaitUntil = false }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = false }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, symbol = { dynam icRegistration = false, hierarchicalWorkspaceSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 2 4, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, clientInfo = { name = "Ne ovim", version = "0.7.2" }, initializationOptions = { bundles = {}, extendedClientCapabilities = { advancedExtractRefactoringSupport = true, advancedOrganizeImportsSupport = true, classFileContentsSupport = true, generateConstructorsPromptSupport = true, generateDelegateMethodsPromptSupport = true, generateToStringPromptSupport = true, hashCode EqualsPromptSupport = true, inferSelectionSupport = { "extractMethod", "extractVariable", "extractConstant" }, moveRefactoringSupport = true, overrideMethodsPromptSupport = true, p rogressReportProvider = true } }, processId = 2859097, rootPath = "/home/craig/Work/simple-springboot", rootUri = "file:///home/craig/Work/simple-springboot", trace = "off", workspaceFo lders = { { name = "/home/craig/Work/simple-springboot", uri = "file:///home/craig/Work/simple-springboot" } } }}
In the earlier logs you posted there are 2 clients starting, one with and one without progressReportProvider
. Maybe you still have a lspconfig.jdtls.setup()
somewhere in addition to using nvim-jdtls.
LSP client configuration
Honestly, unsure. I just used Astronvim's
:LspInstall jdlts
command, which installed jdlts version 1.15.0.Eclipse.jdt.ls version
1.15.0
Steps to Reproduce
On opening a Java file, I get the message 'LSP[jdtls] received
end
message with no correspondingbegin
"Expected Result
The file should just be loading, but these errors pop up and I believe they prevent the plugin from working.
Actual Result
Relevant portion of
lsp.log