neoconf.nvim icon indicating copy to clipboard operation
neoconf.nvim copied to clipboard

bug: jdtls runtime settings are not populated

Open jeusdi opened this issue 2 years ago • 0 comments

Did you check docs and existing issues?

  • [X] I have read all the neoconf.nvim docs
  • [X] I have searched the existing issues of neoconf.nvim
  • [X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.5

Operating system/version

archlinux

Describe the bug

Here my .neoconf.json file:

{
  "lspconfig": {
    "jdtls": {
      "java.configuration.runtimes": [
        {
          "name": "JavaSE-17",
          "path": "/home/jcabre/.sdkman/candidates/java/17.0.10-tem",
        },
        {
          "name": "JavaSE-11",
          "path": "/home/jcabre/.sdkman/candidates/java/11.0.22-tem",
          "default": true
        }
      ]
    }
  }
}

I'm trying to change jdt runtime using JdtSetRuntime command, see here.

As you can see, I', getting this message:

No runtimes found in 'config.settings.java.configuration.runtimes'. You need to add runtime paths to change runtimes.

I'd also like get what are current jdtls settings. How could I get jdtls settings?

Any ideas?

Steps To Reproduce

  1. I only have a local neoconf.json file seems to be ignored...

Expected Behavior

new jdtls settings are populated.

jeusdi avatar Jan 25 '24 20:01 jeusdi