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

Add Windows Terminal ports

Open VincentBrodin opened this issue 7 months ago • 0 comments
trafficstars

This PR adds three Windows Terminal themes—Bamboo, Bamboo Light, and Bamboo Multiplex.

VincentBrodin avatar Apr 04 '25 13:04 VincentBrodin

This would not scan the system to find the available JDKs. So you have to have JDK registered manually as follows. You will get such errors when JDK version defined in gradle not found in the config.

https://github.com/nvim-java/nvim-java?tab=readme-ov-file#clamp-how-to-use-jdk-xx-version

For maven, you might need some modifications:

https://github.com/nvim-java/nvim-java/wiki/Troubleshooting#no_entry-lsp-doesnt-work-on-maven-projects

s1n7ax avatar Dec 03 '24 03:12 s1n7ax

I added this to my config:

lspconfig.jdtls.setup({
        settings = {
          java = {
            configuration = {
              runtimes = {
                {
                  name = "Java-17",
                  path = "/usr/bin/java",
                  default = true,
                },
              },
            },
          },
        },
      })

I also tried this path "/usr/lib/jvm/java-17-openjdk-amd64/bin/java", but the result is the same.

AchoVasilev avatar Dec 03 '24 15:12 AchoVasilev

have the same issue. i have 2 jdk (8 and 17) but seem like only 8 is loading up. - would still love some help on this @s1n7ax

Regarding you config one thing I have to say is you should point to the jdk path and not the java executable. i.e. /usr/lib/jvm/java-17-openjdk-amd64/

Also check the LspLog, I am able to solve a lot of my issue from the ERROR log message @AchoVasilev

obarbier avatar Dec 03 '24 16:12 obarbier

This is the LspLog errors.zip It is a pretty long file with errors during build. Also had to change the name to "JavaSE-17". There is a bit of autocompletion and intelli-sense, but I still get the "Import cannot be resolved".

AchoVasilev avatar Dec 03 '24 17:12 AchoVasilev

given that it log say Failed to build workspace. I would delete workspace folder and retry. it is usually under ~/.cache/nvim/jdtls/workspaces/

obarbier avatar Dec 03 '24 17:12 obarbier

Tried it, but still the same error in the logs.

AchoVasilev avatar Dec 03 '24 19:12 AchoVasilev

I added

annotationProcessing = {
                enabled = true
              }

and the error log is now different errors.zip

this is an example project structure:

(module) ├── service1 (module) │ ├── src │ │ │ └── build.gradle ├── service2 (module) │ ├── src │ │ │ └── build.gradle │
└── build.gradle └── settings.gradle

AchoVasilev avatar Dec 04 '24 11:12 AchoVasilev

I do get similar error i just learn to disregard them. I am not familiar with gradle as i mostly use maven. not if some of the issue you are facing are related to this.

Also one thing to note is that you are using multi-module, I haven't found a good flow that work for me. i sort of fix this by using vim.lsp.buf.add_workspace_folder to add all the module folder and that usually work better

obarbier avatar Dec 04 '24 15:12 obarbier

From the nvim-java-core.log I get

[INFO Thu 05 Dec 2024 15:54:12 EET] ...share/nvim/lazy/nvim-java-dap/lua/java-dap/api/setup.lua:80: creating dap configuration for java [DEBUG Thu 05 Dec 2024 15:54:12 EET] ...nvim-java-core/lua/java-core/ls/clients/jdtls-client.lua:62: sending LSP request: workspace/executeCommand [DEBUG Thu 05 Dec 2024 15:54:20 EET] ...nvim-java-core/lua/java-core/ls/clients/jdtls-client.lua:69: workspace/executeCommand success!

So I am guessing that it finds the module correctly? I also cloned this repo https://github.com/jghoman/gradle-subprojects/tree/master and it worked out of the box, without any errors.

AchoVasilev avatar Dec 05 '24 14:12 AchoVasilev

Wait but what should i do when i dont use build tools like maven or gradle? Packages seem to not work for me... since libraries can be found

Image

mv-stns avatar Jan 20 '25 16:01 mv-stns

@mv-stns https://stackoverflow.com/a/54535301/6202210 Try this. You could use neoconf to have project local jdtls settings. If this works you could add it to tips and tricks in wiki

s1n7ax avatar Jan 20 '25 18:01 s1n7ax

What about packages? im not using any dep managers. unfortunately still not working.

mv-stns avatar Feb 05 '25 20:02 mv-stns

Ive clean installed into a empty nvim project and i get this error, i cant find ANY related issues anywhere

Image

mv-stns avatar Feb 05 '25 21:02 mv-stns