microsoft / microsoft/vscode-java-pack

Bug

Đang mở
#276 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@testforstephen đang làm issue này rồi.

Từ ngày 13/12/2019.

ai-triaged bug
Ngôn ngữ chính
TypeScript
Star
352
Fork
166
Merge trung bình
17 giờ 47 phút
Pull request đã merge (30 ngày)
32

Mô tả

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:

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.