microsoft / microsoft/vscode-java-pack
Bug
@testforstephen is already working on this.
Since Dec 13, 2019.
- Dominant language
- TypeScript
- Stars
- 352
- Forks
- 166
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 32
Description
Environment:
- VS Code Version: 1.40.0
- Extension Version: 0.8.1
- JDK Type & Version: OpenJDK 11.0.2
- OS Type & Version: Mac OS Catalina 10.15.1
Step to Reproduce:
Import the Java Gradle project without any module-info.java file in it.
Expected Behavior:
The project should build.
Actual Behavior:
The project doesn't build.
It shows the error: The package is accessible from more than one module problem
The project builds fine on the command line with Gradle and also in the IntelliJ IDE.
Only in VSCode does it give: The package javax.crypto is accessible from more than one module
The are no module-info.java file in the entire project.
The command java --list-modules gives:
java.*
jdk.*
The VSCode home setting for the JDK is:
"java.home": ".sdkman/candidates/java/current"
The version:
.sdkman/candidates/java/current/bin/java -version (master)pid2
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Is there a setting to disable the checking of conflicts between the noname module containing the packages of the CLASSPATH and the packages in the modules of the MODULEPATH ?
It is an issue with the JDK still opened in 13 https://bugs.openjdk.java.net/browse/JDK-8215739
as seen at https://stackoverflow.com/questions/51094274/eclipse-cant-find-xml-related-classes-after-switching-build-path-to-jdk-10/53824670#53824670
Related Issues:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.