mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
1.08k stars 62 forks source link

Annotations not recognized by lsp (WSL2) #671

Closed led93 closed 3 months ago

led93 commented 3 months ago

LSP client configuration

Hello! I'm setting up neovim to work with java. I have a maven project that uses spring boot and Lombok.

I have managed to setup the plugin and the lsp. Everything works fine apparently, beside annotations.

I keep getting "cannot resolve object/method" whenever some lombok related annotations are present, like RequiredArgsConstructor (the same issue appears when Slf4j is used, i.e. cannot resolve log object)

I'm trying to do all of this on a Windows 11 machine running WSL2 with the following distro:

Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

I have a fresh neovim installation with a base config taken from the neovim kickstart

Neovim info:

NVIM v0.11.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Java info:

openjdk version "21.0.3" 2024-04-16
OpenJDK Runtime Environment (build 21.0.3+9-Ubuntu-1ubuntu122.04.1)
OpenJDK 64-Bit Server VM (build 21.0.3+9-Ubuntu-1ubuntu122.04.1, mixed mode, sharing)

Lombok info:

<dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.30</version>
      <scope>provided</scope>
</dependency>

my configuration file is the following:

local config = {
  cmd = {
    'java',
    '-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',
    '-Xmx1g',
    '--add-modules=ALL-SYSTEM',
    '--add-opens',
    'java.base/java.util=ALL-UNNAMED',
    '--add-opens',
    'java.base/java.lang=ALL-UNNAMED',
    '-javaagent:' .. home .. '/.local/share/nvim/mason/packages/jdtls/lombok.jar',
    '-jar',
    vim.fn.glob(home .. '/.local/share/nvim/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_*.jar'),
    '-configuration',
    home .. '/.local/share/nvim/mason/packages/jdtls/config_linux',
    '-data',
    workspace_dir,
  },
  root_dir = require('jdtls.setup').find_root { '.git', 'mvnw', 'gradlew', 'pom.xml', 'build.gradle' },

  settings = {
    java = {
      signatureHelp = { enabled = true },
      extendedClientCapabilities = extendedClientCapabilities,
      maven = {
        downloadSources = true,
      },
      referencesCodeLens = {
        enabled = true,
      },
      references = {
        includeDecompiledSources = true,
      },
      inlayHints = {
        parameterNames = {
          enabled = 'all', -- literals, all, none
        },
      },
      format = {
        enabled = false,
      },
    },
  },

  init_options = {
    bundles = {},
  },
}

Eclipse.jdt.ls version

org.eclipse.jdt.ls.core_1.35.0.202404251256.jar

Steps to Reproduce

  1. Installed jdtls through Mason
  2. Added nvim-jdtls in the init.lua plugins section
  3. Created a file .config/nvim/ftplugins/java.lua where there is the configuration
  4. Open a java project containing annotations

Expected Result

Lsp is able to resolve annotations

Actual Result

image

This is the outpupt ofr :JdtShowLog:

[START][2024-07-07 02:20:58] LSP logging initiated
[ERROR][2024-07-07 02:20:58] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:20:58] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:20:58] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:20:58 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:20:58] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:20:58 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:20:58] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:20:58 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:20:58] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:20:58 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[WARN][2024-07-07 02:21:02] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2024-07-07 02:21:04] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2024-07-07 02:21:05] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:21:05 AM Command _java.reloadBundles.command not supported on client"
[ERROR][2024-07-07 02:21:06] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:21:06 AM Error occured while building workspace. Details: \n message: The blank final field postService may not have been initialized; code: 33554513; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/controller/PostController.java; line: 21\n message: The method getId() is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/entity/PostEntity.java; line: 48\n message: The method getId() is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/entity/PostEntity.java; line: 48\n message: The method getId() is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/entity/PostEntity.java; line: 48\n message: No implementation was created for PostMapper due to having a problem in the erroneous element java.util.ArrayList. Hint: this often means that some other annotation processor was supposed to process the erroneous element. You can also enable MapStruct verbose mode by setting -Amapstruct.verbose=true as a compilation argument.; code: 0; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/mapper/PostMapper.java; line: 8\n message: The blank final field postRepository may not have been initialized; code: 33554513; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 30\n message: log cannot be resolved; code: 570425394; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 39\n message: log cannot be resolved; code: 570425394; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 52\n message: The method setTitle(String) is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 54\n message: The method setContent(String) is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 55\n message: The method setAuthor(String) is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 56\n message: log cannot be resolved; code: 570425394; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 58\n message: log cannot be resolved; code: 570425394; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 60\n message: The method builder() is undefined for the type PostEntity; code: 67108964; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 61\n message: log cannot be resolved; code: 570425394; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 68\n message: log cannot be resolved; code: 570425394; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostResourceProcessorService.java; line: 113\n message: The blank final field postMapper may not have been initialized; code: 33554513; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostService.java; line: 17\n message: The blank final field postRepository may not have been initialized; code: 33554513; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/service/PostService.java; line: 16"
[ERROR][2024-07-07 02:22:38] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:22:38 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation\nWARNING: Unmatched cancel notification for request id 38\n"
[ERROR][2024-07-07 02:22:41] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:22:41 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError\nSEVERE: Internal error: java.lang.IllegalStateException: Invalid completion proposal\njava.util.concurrent.CompletionException: java.lang.IllegalStateException: Invalid completion proposal\n\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)\n\tat java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:747)\n\tat java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)\n\tat java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2214)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:290)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:201)\n\tat org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:144)\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)\n\tat org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\nCaused by: java.lang.IllegalStateException: Invalid completion proposal\n\tat org.eclipse.jdt.ls.core.internal.handlers.CompletionResolveHandler.resolve(CompletionResolveHandler.java:106)\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.resolveCompletionItem(JDTLanguageServer.java:652)\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:580)\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:65)\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:272)\n\t... 10 more\n\n"
[ERROR][2024-07-07 02:22:41] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:22:41 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation\nWARNING: Unmatched cancel notification for request id 42\n"
[ERROR][2024-07-07 02:22:57] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:22:57 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError\nSEVERE: Internal error: java.lang.IllegalStateException: Invalid completion proposal\njava.util.concurrent.CompletionException: java.lang.IllegalStateException: Invalid completion proposal\n\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)\n\tat java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:747)\n\tat java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)\n\tat java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2214)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:290)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:201)\n\tat org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:144)\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)\n\tat org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)\n\tat org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\nCaused by: java.lang.IllegalStateException: Invalid completion proposal\n\tat org.eclipse.jdt.ls.core.internal.handlers.CompletionResolveHandler.resolve(CompletionResolveHandler.java:106)\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.resolveCompletionItem(JDTLanguageServer.java:652)\n\tat java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:580)\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$recursiveFindRpcMethods$0(GenericEndpoint.java:65)\n\tat org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)\n\tat org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:272)\n\t... 10 more\n\n"
[ERROR][2024-07-07 02:24:40] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/lua-language-server" "stderr"    "NMD, WSM `endLine > #rows` ?\nstack traceback:\n\tscript/text-merger.lua:72: in upvalue 'mergeRows'\n\tscript/text-merger.lua:106: in function 'text-merger'\n\tscript/provider/provider.lua:305: in function <script/provider/provider.lua:294>\n\t[C]: in function 'xpcall'\n\tscript/proto/proto.lua:200: in function <script/proto/proto.lua:175>\n"
[START][2024-07-07 02:28:20] LSP logging initiated
[ERROR][2024-07-07 02:28:20] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:28:20] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:28:21] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:28:21 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:28:21] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:28:21 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:28:21] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 2:28:21 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:28:21] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 2:28:21 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[WARN][2024-07-07 02:28:24] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2024-07-07 02:28:27] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2024-07-07 02:28:28] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:28:28 AM Command _java.reloadBundles.command not supported on client"
[ERROR][2024-07-07 02:28:29] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:28:29 AM Error occured while building workspace. Details: \n message: No implementation was created for PostMapper due to having a problem in the erroneous element java.util.ArrayList. Hint: this often means that some other annotation processor was supposed to process the erroneous element. You can also enable MapStruct verbose mode by setting -Amapstruct.verbose=true as a compilation argument.; code: 0; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/mapper/PostMapper.java; line: 8"
[START][2024-07-07 02:35:26] LSP logging initiated
[ERROR][2024-07-07 02:35:26] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:35:26] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:35:26] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:35:26 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:35:26] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:35:26 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:35:26] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 2:35:26 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:35:26] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 2:35:26 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[WARN][2024-07-07 02:35:29] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2024-07-07 02:35:30] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2024-07-07 02:35:31] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:35:31 AM Command _java.reloadBundles.command not supported on client"
[START][2024-07-07 02:51:33] LSP logging initiated
[ERROR][2024-07-07 02:51:33] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:51:33] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 02:51:33] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:51:33 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:51:33] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 2:51:33 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:51:33] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 2:51:33 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 02:51:33] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 2:51:33 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[WARN][2024-07-07 02:51:37] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2024-07-07 02:51:37] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2024-07-07 02:51:38] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:51:38 AM Command _java.reloadBundles.command not supported on client"
[ERROR][2024-07-07 02:51:39] ...lsp/handlers.lua:624    "Jul 7, 2024, 2:51:39 AM Error occured while building workspace. Details: \n message: No implementation was created for PostMapper due to having a problem in the erroneous element java.util.ArrayList. Hint: this often means that some other annotation processor was supposed to process the erroneous element. You can also enable MapStruct verbose mode by setting -Amapstruct.verbose=true as a compilation argument.; code: 0; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/mapper/PostMapper.java; line: 8"
[START][2024-07-07 03:30:16] LSP logging initiated
[ERROR][2024-07-07 03:30:16] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 03:30:16] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "WARNING: Using incubator modules: jdk.incubator.vector\n"
[ERROR][2024-07-07 03:30:17] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 3:30:17 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 03:30:17] .../vim/lsp/rpc.lua:772    "rpc"   "/home/led/.local/share/nvim/mason/bin/jdtls"   "stderr"    "Jul 07, 2024 3:30:17 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 03:30:17] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 3:30:17 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
[ERROR][2024-07-07 03:30:17] .../vim/lsp/rpc.lua:772    "rpc"   "java"  "stderr"    "Jul 07, 2024 3:30:17 AM org.apache.aries.spifly.BaseActivator log\nINFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
[WARN][2024-07-07 03:30:20] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2024-07-07 03:30:21] ...lsp/handlers.lua:136 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[ERROR][2024-07-07 03:30:21] ...lsp/handlers.lua:624    "Jul 7, 2024, 3:30:21 AM Command _java.reloadBundles.command not supported on client"
[ERROR][2024-07-07 03:30:22] ...lsp/handlers.lua:624    "Jul 7, 2024, 3:30:22 AM Error occured while building workspace. Details: \n message: No implementation was created for PostMapper due to having a problem in the erroneous element java.util.ArrayList. Hint: this often means that some other annotation processor was supposed to process the erroneous element. You can also enable MapStruct verbose mode by setting -Amapstruct.verbose=true as a compilation argument.; code: 0; resource: /home/led/dev/personal-website/blog/src/main/java/com/[REDACTED]/blog/mapper/PostMapper.java; line: 8"
acheong08 commented 2 days ago

Why was this closed? Did you resolve the issue?