-
Notifications
You must be signed in to change notification settings - Fork 455
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
The method builder() is undefined for the type xxx #3733
Comments
There seem to be several issues related (or unrelated) to the Javadoc comments of the The version of Lombok bundled in this extension is from Temporary solutions I discovered:
Steps to overwriteWindows PowerShell environment: # Get and extract vscode-java v1.32.0 binary
curl.exe -LO "https://github.com/redhat-developer/vscode-java/releases/download/v1.32.0/vscode-java-1.32.0-220.vsix"
Rename-Item "vscode-java-1.32.0-220.vsix" "vscode-java-1.32.0-220.vsix.zip"
Expand-Archive -Path ".\vscode-java-1.32.0-220.vsix.zip" -DestinationPath ".\temp_ext"
# Copy .jar file
Copy-Item "temp_ext/extension/lombok/lombok-1.18.33.jar" "$env:userprofile/.vscode/extensions/redhat.java-1.33.0-win32-x64/lombok/lombok-1.18.33.jar"
# Remove downloaded files
Remove-Item -Recurse -Path "temp_ext","vscode-java-1.32.0-220.vsix.zip" Linux-like environment: # Get and extract vscode-java v1.32.0 binary
curl -LO https://github.com/redhat-developer/vscode-java/releases/download/v1.32.0/vscode-java-1.32.0-220.vsix
# or wget:
# wget https://github.com/redhat-developer/vscode-java/releases/download/v1.32.0/vscode-java-1.32.0-220.vsix
unzip -d temp_ext/ vscode-java-1.32.0-220.vsix
# Copy .jar file
# Replace .vscode with .vscode-server if you're in remote environment (like wsl, docker or ssh)
cp temp_ext/extension/lombok/lombok-1.18.33.jar /home/$(whoami)/.vscode/extensions/redhat.java-1.33.0*/lombok/lombok-1.18.33.jar
# Remove downloaded files
rm -rf /tmp/temp_ext vscode-java-1.32.0-220.vsix |
@heguro |
Is it fixed in the latest version |
Which version are you referring? I have the Language Support for Java(TM) by Red Hat v1.35.202408 and the bug is still there. |
when this will be fixed |
Lombok has merged a fix as of a few days ago (see projectlombok/lombok#3726), but they have not done a release yet. So I assume that will have to happen first so that an updated version of Lombok can be bundled with the extension. |
#3561 (comment) woke me up. Could someone try the vscode-java pre-release and see if the problem is resolved ? According to Line 132 in 0f89a67
|
With the currently used Lombok v1.18.34 this is still an issue. Updating to v1.18.36 should fix it (relevant commit: projectlombok/lombok@1ac3950). At least it did so for the Eclipse IDE. |
demo
env
C:\Program Files\Java\jdk1.8.0_202
setting.json
about java and gradle:C:\\Program Files\\Java\\jdk1.8.0_202
(Oracle jdk8 for code project)C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.12+7
(for vscode language server)problem
Extension: Language Support for Java(TM) by Red Hat
tov1.33.0
. Got error:Extension: Language Support for Java(TM) by Red Hat
tov1.32.0
. It's OK.Extension: Language Support for Java(TM) by Red Hat
withv1.33.0
.Data1.java
toData2.java
and delete comments.Data2.builder().build()
is okThe text was updated successfully, but these errors were encountered: