Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode could not veirfy lombok word in latest version #80

Open
bobogavin opened this issue Jul 2, 2022 · 14 comments
Open

vscode could not veirfy lombok word in latest version #80

bobogavin opened this issue Jul 2, 2022 · 14 comments

Comments

@bobogavin
Copy link

vscode could not veirfy lombok word in latest version

@bobogavin
Copy link
Author

vscode stable version and insider version both have the problem

@bobogavin
Copy link
Author

vscode version 1.68.1

@bobogavin
Copy link
Author

Version: 1.68.1 (user setup)
Commit: 30d9c6cd9483b2cc586687151bcbcd635f373630
Date: 2022-06-14T12:48:58.283Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.19044

@bobogavin
Copy link
Author

image

@pinkli
Copy link

pinkli commented Jul 4, 2022

yes I have the same issue.

1 similar comment
@zmwxiaoming
Copy link

yes I have the same issue.

@zmwxiaoming
Copy link

yes I have the same issue.

me too

@zmwxiaoming
Copy link

版本: 1.68.1
提交: 30d9c6cd9483b2cc586687151bcbcd635f373630
日期: 2022-06-14T12:52:13.188Z (2 周前)
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin x64 20.3.0

@leegohi
Copy link

leegohi commented Jul 5, 2022

I solved the problem that costs one day!!!
First ,show the project lombok version:
mvn help:effective-pom | grep lombok -A5 -B5
I find it is 1.18.2
but when I look vscode lombok version which version is 1.18.12
so,I change my project lombok version in pom.xml to 1.18.12. it's solved.
<dependency> <groupId>org.projectlombok</groupId><artifactId>lombok</artifactId> <version>1.18.12</version> </dependency>

@Arisaematis
Copy link

yes I have the same issue.

@zmwxiaoming
Copy link

I solved the problem that costs one day!!! First ,show the project lombok version: mvn help:effective-pom | grep lombok -A5 -B5 I find it is 1.18.2 but when I look vscode lombok version which version is 1.18.12 so,I change my project lombok version in pom.xml to 1.18.12. it's solved. <dependency> <groupId>org.projectlombok</groupId><artifactId>lombok</artifactId> <version>1.18.12</version> </dependency>

very good !

@pinkli
Copy link

pinkli commented Jul 6, 2022

I solved the problem that costs one day!!! First ,show the project lombok version: mvn help:effective-pom | grep lombok -A5 -B5 I find it is 1.18.2 but when I look vscode lombok version which version is 1.18.12 so,I change my project lombok version in pom.xml to 1.18.12. it's solved. <dependency> <groupId>org.projectlombok</groupId><artifactId>lombok</artifactId> <version>1.18.12</version> </dependency>

Yes, after updating the lombok version to 1.18.12 in pom.xml file, vscode works.

@zmwxiaoming
Copy link

you also can see
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-lombok
Requirements
VS Code (version 1.21.0 or later)
Lombok added as a dependency in your Java Project (Make sure you're using the latest version to avoid issues!) Add with Maven or Add with Gradle

@testforstephen
Copy link
Contributor

Language Support for Java(TM) by RedHat extension 1.8.0 will automatically use the lombok.jar from your project classpath for lombok support in VS Code. Based on testing, it seems the lombok version compatible with RedHat Java extension is 1.18.4 and higher.

If the lombok dependency in your project pom.xml is lower than 1.18.4, the lombok annotations may not work in VS Code. You need to update lombok version to a newer one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants