redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.07k stars 429 forks source link

The package java.util.concurrent is accessible from more than one module: <unnamed>, java.base #3505

Open huige007 opened 6 months ago

huige007 commented 6 months ago

[provide a description of the issue]

Environment
Steps To Reproduce
  1. [step 1] there are .classpath and .project file in my project, just open this project.
  2. [step 2] then I get following issues The package java.net is accessible from more than one module: , java.base The package java.util is accessible from more than one module: , java.base The package java.io is accessible from more than one module: , java.base

Since this project code is confidential, so I can not provide any logs or source code. [Please attach a sample project reproducing the error] Please attach logs

Current Result
Expected Result
Additional Informations

if I set java.jdt.ls.java.home to jdk8, the issue disappeared. I have already searched other similar issues in jdt.ls github web site, it seems that this issue has been fixed, but on myside issue still exist. Also I get another issue "The declared package "com.android.car.camera.dvr" does not match the expected package "src.com.android.car.camera.dvr", is there any way to disable this notification?

If I use andriod stutio, all above issues disappeared. I want to use vscode,remote-ssh,redhat.java stronglly because it's very convenience for me.

snjeza commented 6 months ago

@huige007 Could you attach your .classpath and pom.xml/build.gradle if exist?

huige007 commented 6 months ago

Hi @snjeza , currently I only can provide content of .classpath, I don't find pom.xml or build.gradle. This .classpath file is generated by command "aidegen -i e -n -s -l j packages/services/Car" in AOSP. <?xml version="1.0" encoding="UTF-8"?>