redhat-developer / redhat-developer/vscode-java
annotationProcessorPaths not firing during compile
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il progetto Maven di esempio e i log allegati, quindi confronta la compilazione Maven standard con le build automatiche, complete e incrementali di VS Code. Analizza come vengono gestiti annotationProcessorPaths da pom.xml e se viene generato .factorypath. Il lavoro è completato quando la build di VS Code produce le classi Micronaut generate previste.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- build-system, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100