microsoft / microsoft/vscode-java-pack

Bug

Offen
#276 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@testforstephen arbeitet bereits daran.

Seit 13.12.2019.

ai-triaged bug
Vorherrschende Sprache
TypeScript
Sterne
352
Forks
166
Ø Merge
17 Std. 47 Min.
Gemergte PRs (30 T.)
32

Beschreibung

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:

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.