javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

fails to find dependency jar with certain naming

Open robaho opened this issue 1 year ago • 4 comments

Using the latest extension v1.0.1

We have a jar, solPackage-2.9.0.1.jar and it is not found, leading to missing class errors in the editor.

If I change the jar name to sol_package-2.9.0.1.jar it works.

The language server fails to recognize a jar in the /lib that is marked in Gradle as a dependency. All of the other jars in the directory appear. I detect this by looking at Projects > Configurations > Implementation > Local Files and the jar is not listed.

Gradle compiles and runs the project fine. The only issue is that the editor marks the classes as not found.

If I change to the netbeans extension, it finds and uses that jar fine, same with the redhat extension.

Is there a debug option I can enable to trace into why this is happening? I have to assume there is some sort of regex verification that is failing.

robaho avatar Feb 22 '24 20:02 robaho

Curiously, sol-package-2.9.0.1.jar does not work either.

robaho avatar Feb 22 '24 20:02 robaho

I have encountered this with another set of jars. the prometheus client jars are

simpleclient_common-0.16.0.jar simpleclient_hotspot-0.16.0.jar simpleclient_httpserver-0.16.0.jar simpleclient_pushgateway-0.16.0.jar

none of these jars will be added to the project dependencies. Other jars are added as expected.

robaho avatar Mar 21 '24 12:03 robaho

Okay will try to reproduce this

Achal1607 avatar Mar 22 '24 10:03 Achal1607

Hey @robaho, I tried reproducing this but in my case prometheus client jars are rightly detected by the extension. So, can you once try to clean the cache of the extension for this workspace and then again try, maybe it can be some cache issue. For clearing cache pls refer to troubleshooting guide.

Achal1607 avatar May 08 '24 07:05 Achal1607

Please feel free to reopen this issue, if you face this issue again. For now closing this issue due to inactivity.

Achal1607 avatar Jun 05 '24 07:06 Achal1607