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

It always asks if I want to download Java-debug

Open JjersaR opened this issue 2 years ago • 7 comments

Recently I reinstalled plugins again, one of these was yours: use "artur-shaik/jc.nvim", I entered a Java project, and every time I open a file for the first time it asks me if I want to download Java-debub because I don't have it, I press 1 "finish" and it asks me again.

image

I tried deleting the folder it creates in ~/.local/share/jc.nvim, but the same thing keeps happening.

The plugin configuration is this: require('jc').setup{}

Information from :checkhealt: OK: javac: javac 17.0.5 OK: java: openjdk version "17.0.5" 2022-10-18

My system is Fedora 37 Workstation and the version of Neovim is: NVIM v0.8.1 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3

all plugins are up to date.

JjersaR avatar Jan 10 '23 17:01 JjersaR

It's weird, can you run this command: tree ~/.m2/repository/com/microsoft/java/com.microsoft.java.debug.plugin/ ?

artur-shaik avatar Jan 12 '23 04:01 artur-shaik

Here's what it shows me:

image

JjersaR avatar Jan 12 '23 15:01 JjersaR

Can you try to delete one of the versions, please?

artur-shaik avatar Jan 13 '23 04:01 artur-shaik

You could also try to delete the .m2 folder and the plugin folder?

JjersaR avatar Jan 13 '23 04:01 JjersaR

I guess this issue occur because of two versions of plugin, that's why I want you to delete one of this, to check if I'm right.

artur-shaik avatar Jan 13 '23 05:01 artur-shaik

If that was it, I deleted version 0.39.0, entered a Java project and it didn't ask me anything anymore, thank you very much for the help.

JjersaR avatar Jan 13 '23 13:01 JjersaR

Thanks. Will fix that.

artur-shaik avatar Jan 15 '23 15:01 artur-shaik