redhat-developer / redhat-developer/vscode-java

"IllegalArgumentException: Path must include project and resource name" when unloadable .project file is present

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

Chưa có ai nhận issue này.

ls-error/crash ux
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

Java extension is not working when opening some folders (it works for soem others).
For instance when opening the folder examples of https://github.com/apache/camel-k/tree/master/examples

there is this error in output:

[Error - 3:33:47 PM] May 13, 2020 3:33:47 PM An internal error occurred during: "Initialize workspace".
Path must include project and resource name: /examples
java.lang.IllegalArgumentException: Path must include project and resource name: /examples
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:66)
	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2122)
	at org.eclipse.core.internal.resources.Container.getFolder(Container.java:205)
	at org.eclipse.jdt.ls.core.internal.managers.StandardProjectsManager.registerWatchers(StandardProjectsManager.java:311)
	at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer$1.run(JDTLanguageServer.java:277)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Environment
  • Operating System: Fedora 31
  • JDK version: Java 8
  • Visual Studio Code version: 1.45.0
  • Java extension version: 0.61.0
Steps To Reproduce
  1. clone locally https://github.com/apache/camel-k/
  2. in VS Code, File -> Open Folder...
  3. select the examples folder inside the cloned repository
  4. Open one of the Java files
    --> stack trace in output log
    --> several errors reported in files

[Please attach a sample project reproducing the error]

full log with trace activated:
https://gist.github.com/apupier/ca016099587a7730745d1841b094f7e6

Current Result
Expected Result
Additional Informations

it was working few weeks/months ago seems not, i tried with VS Code 1.42.1 and extension 0.55.1 and there was already the issue.

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

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Tái hiện lỗi bằng cách mở thư mục examples của apache/camel-k trong VS Code và xem lại nhật ký đầy đủ được liên kết. Bắt đầu tại StandardProjectsManager.java:311 và JDTLanguageServer.java:277 trong stack trace; hoàn tất khi việc mở thư mục không còn tạo ra IllegalArgumentException hoặc các lỗi tệp liên quan.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, vscode
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.