redhat-developer / redhat-developer/vscode-java
annotationProcessorPaths not firing during compile
Chưa có ai nhận issue này.
- 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 have a pom.xml that uses annotationProcessorPaths on the maven-compiler-plugin to process annotations. During a standard maven compile the annotations are properly processed, but not during a vs-code build (auto, or forced full/incremental)
Environment
- Operating System: MacOS Mojave
- JDK version: openjdk 12 2019-03-19
- Visual Studio Code version: 1.39.2
- Java extension version: 0.52.0
Steps To Reproduce
- create a maven project using micronaut (or use the attached pom.xml)
mn create-app -b maven test-vscode - create a class
test.vscode.Beanas
package test.vscode;
import javax.inject.Singleton;
@Singleton
public class Bean {
}
- Force a build
[attach a sample project reproducing the error]
attach logs
Current Result
$ ll target/classes/test/vscode
total 16
-rw-r--r-- 1 bangroot staff 600B Oct 24 13:19 Application.class
-rw-r--r-- 1 bangroot staff 328B Oct 24 13:19 Bean.class
Expected Result
$ ll target/classes/test/vscode
total 40
-rw-r--r-- 1 bangroot staff 1.9K Oct 24 13:20 $BeanDefinition.class
-rw-r--r-- 1 bangroot staff 743B Oct 24 13:20 $BeanDefinitionClass$$AnnotationMetadata.class
-rw-r--r-- 1 bangroot staff 862B Oct 24 13:20 $BeanDefinitionClass.class
-rw-r--r-- 1 bangroot staff 600B Oct 24 13:20 Application.class
-rw-r--r-- 1 bangroot staff 328B Oct 24 13:20 Bean.class
Additional Informations
I did notice that there is no .factorypath file getting generated like happens on my spring-boot projects.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với dự án Maven mẫu và các log đính kèm, sau đó so sánh quá trình biên dịch Maven tiêu chuẩn với các bản build tự động, đầy đủ và tăng dần của VS Code. Điều tra cách annotationProcessorPaths trong pom.xml được xử lý và liệu .factorypath có được tạo hay không. Hoàn tất khi bản build của VS Code tạo ra các lớp Micronaut được sinh như mong đợi.
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
- build-system, tooling
- 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
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100