redhat-developer / redhat-developer/vscode-java

annotationProcessorPaths not firing during compile

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

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

codegen
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
  1. create a maven project using micronaut (or use the attached pom.xml) mn create-app -b maven test-vscode
  2. create a class test.vscode.Bean as
package test.vscode;

import javax.inject.Singleton;

@Singleton
public class Bean {


}
  1. 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

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 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

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.