Lombok `copyableAnnotations` (lombok.config) no longer applied to @RequiredArgsConstructor constructors in v1.55.0 (regression vs v1.54.0)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 52/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- java, vscode
- Domaine
- developer-experience, devtools
Piste de recherche
Reproduisez la régression dans l’intégration redhat.java v1.55.0 jdt.ls en utilisant le lombok.config et l’exemple @RequiredArgsConstructor présentés. Comparez les annotations des paramètres du constructeur généré avec javac, la configuration batch ECJ/Lombok incluse et l’extension v1.54.0 ; le travail est considéré comme terminé lorsque @Lazy est présente lors de la compilation via le language server en cours d’exécution.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
Since updating from redhat.java v1.54.0 to v1.55.0 (picked up via extension auto-update around 2026-07-10, alongside a VS Code update to 1.129.1), the embedded Java Language Server no longer applies lombok.config's copyableAnnotations setting when Lombok generates a constructor via @RequiredArgsConstructor.
With a lombok.config:
config.stopBubbling = true
lombok.copyableAnnotations += org.springframework.context.annotation.Lazy
and a class:
@RequiredArgsConstructor
public class FooCustomImpl implements FooCustom {
@Lazy private final FooRepo baseRepo;
...
}
the generated constructor parameter is expected to carry @Lazy (this is a standard Spring pattern to break a circular bean dependency between a Spring Data repository interface and its *CustomImpl fragment, by injecting a lazy proxy).
Confirmed via bytecode inspection (javap -v Foo.class | grep -A4 RuntimeVisibleParameterAnnotations):
- Compiling the same source file via the project's Maven build (
javac) →@Lazyis present on the constructor parameter. - Compiling the same file standalone, in batch mode, using the extension's own bundled ECJ (
org.eclipse.jdt.core.compiler.batch) + the extension's own bundled Lombok agent (lombok-1.18.39-4050.jar, extracted straight from the extension'slombok/folder) →@Lazyis present. - Compiling via the running jdt.ls inside VS Code with the extension at v1.55.0 →
@Lazyis missing, reproducible across multipleJava: Clean Java Language Server Workspaceresets. - Downgrading only the extension to v1.54.0 (
code --install-extension [email protected] --force), same project, samelombok.config, same steps →@Lazyis present again.
Also tried disabling the built-in Lombok support and pointing java.jdt.ls.vmargs at an explicit -javaagent:.../lombok-1.18.46.jar (project's own Lombok version) with java.jdt.ls.lombokSupport.enabled: false — same failure on v1.55.0, which rules out the specific Lombok jar/version as the cause and points at v1.55.0's jdt.ls integration itself.
Impact
Spring Boot fails to start with:
APPLICATION FAILED TO START
The dependencies of some of the beans in the application context form a cycle: ...
only when the app is run/debugged from inside VS Code. Running the identical code via mvn spring-boot:run on the command line always works, since that always compiles with javac.
To Reproduce
- Project with a
lombok.configcontaininglombok.copyableAnnotations += org.springframework.context.annotation.Lazy(or any non-default copyable annotation). - A class with
@RequiredArgsConstructorand a@Lazy-annotatedfinalfield. - Open/run the project in VS Code with
redhat.javav1.55.0. - Inspect the compiled class's constructor parameter annotations, or observe the Spring circular-dependency startup failure.
Expected behavior
The generated constructor parameter should carry the @Lazy annotation, matching javac/Maven output and the extension's own bundled Lombok agent when run standalone.
Versions
- VS Code: 1.129.1 (macOS, auto-updated ~2026-07-10)
redhat.java(Language Support for Java): regression present in 1.55.0; confirmed absent in 1.54.0- Bundled Lombok agent in extension:
lombok-1.18.39-4050.jar - Project's own Lombok version: 1.18.46 (ruled out as the cause, see above)
- OS: macOS, darwin arm64
- JDK: Temurin 21
Workaround
Pin the extension to v1.54.0 and set "extensions.autoUpdate": false to avoid silently regressing again.
- Langage dominant
- TypeScript
- Étoiles
- 2.3k
- Forks
- 548
- Merge moyen
- 8 h 20 min
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire 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.
Autres issues de redhat-developer/vscode-java
-
JDK_HOME can be sorted after lower-priority auto-detected JDK sourcesPeut-être pris @shblue21 l’a pris il y a 114 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
redhat-developer/vscode-java#4426 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
redhat-developer/vscode-java#4537 ·
Les mainteneurs répondent en général sous 1 jour
-
bug Lombok
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
redhat-developer/vscode-java#4521 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
bug need info
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
redhat-developer/vscode-java#4520 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
redhat-developer/vscode-java#4517 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de redhat-developer/vscode-java
Issues similaires
-
refactor
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
tomnewport/memprot-topo#55 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
WalletConnect/walletconnect-monorepo#7368 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
BU-Spark/se-chem-apll#47 ·
-
embed: handleTurboSignMessage header comment says the signing page posts to '*' (it never does)Ouvertedocumentation
Difficulté 2/5 Moins d'une heure Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 70/100
udistrital/paginaweb_root#23 ·