redhat-developer / redhat-developer/vscode-java
Annotation Processor works strange
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 2.3k
- Forks
- 546
- Merge moyen
- 20 h 1 min
- PR mergées (30 j)
- 11
Description
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
- change maven pom.xml with annotaton processing support
- save the change
- change some code
- 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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le problème signalé : le Maven pom.xml dans la branche asm et le Logger.java du processeur d’annotations à la ligne 19, puis suivez le point d’entrée du traitement des annotations de l’extension Java de VS Code. Reproduisez les étapes 1–4 avec JDK 11 et VS Code 1.64.2 ; c’est terminé lorsque le processeur s’exécute et journalise des messages après des modifications du code, et pas uniquement après des modifications de pom.xml.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java, vscode
- Domaine
- developer-experience, devtools
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100