redhat-developer / redhat-developer/vscode-java

Annotation Processor works strange

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

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

annotation-processing Maven
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ả

I am writing an anotation processor, add test the vscode support. In idea it works fine.
I write some log logic (write log information to a file with absolute path, and in the init method and static method, log something too) in the apt to promise I can judge whether it runs.
The pom setting works fine, because the maven clean install works fine with the log print out.
However my apt not runs in vscode. No log file is generated. (It will be created if non-exist).
On the other hand, If I write some space in the pom.xml and save. The log file generated, and show some initialized information. It seems my apt run when the vscode find pom.xml changed.
But when I change some code and run the changed code , no log out, it seems that my apt not run at all.

Environment
  • Operating System: windows
  • JDK version: 11
  • Visual Studio Code version: 1.64.2
  • Java extension version: 1.3.0
Steps To Reproduce
  1. change maven pom.xml with annotaton processing support
  2. save the change
  3. change some code
  4. run

The apt projcet
Please use the asm branch
The log file path define here, I have changed it to ~/jasync.log for device independent.
The test project

Current Result

After step 2, my apt runs.
After step 4, my apt not runs.

Expected Result

After step 2, my apt runs.
After step 4, my apt runs.

Additional Informations

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

Bắt đầu với việc tái hiện được báo cáo: Maven pom.xml trong nhánh asm và Logger.java của annotation processor ở dòng 19, sau đó lần theo entry point xử lý annotation của tiện ích mở rộng Java của VS Code. Tái hiện các bước 1–4 với JDK 11 và VS Code 1.64.2; được xem là hoàn tất khi processor chạy và ghi log sau các thay đổi mã, không chỉ sau các thay đổi pom.xml.

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
developer-experience, devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 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.