Gradle compiles but vscode-java is getting compilation errors
See original GitHub issueI’ve pushed related code on https://github.com/jeusdi/gradle-vscode.git
gradle compileJava
runs correctly, but vscode-java is getting me compilation errors.
Environment
- Operating System: Ubuntu 18.04
- JDK version: JDK 11
- Visual Studio Code version: 1.31.0
- Java extension version: 0.38.0
Steps To Reproduce
- git clone https://github.com/jeusdi/gradle-vscode.git
- Open vscode
[attach a sample project reproducing the error] attach logs
Current Result
Expected Result
gradle command ends succesfully:
Additional Informations
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Errors when I try to build my Java project in VS Code
I imported time4j lib into my project and when I try to compile the project the errors occur: Executing task: gradlew build -Dorg.gradle.java....
Read more >Gradle Java Plugin Issue - Gives compilation error but works ...
I'm facing weird issue with Gradle 4.1, JDK 1.8.291 and Eclipse IDE. I created demo class to explain my problem. Please note that...
Read more >Language Support for Java(TM) by Red Hat
Recognizes projects with Maven or Gradle build files in the directory hierarchy. Features. screencast. Supports code from Java 1.5 to Java 19; Maven...
Read more >redhat-developer/vscode-java - Gitter
Isn't vscode-java capable of reporting gradle issues? ... methodParameters' to get the compiler to do this, but I'm not sure how to pass...
Read more >VS Code Java September 2021 Update | Foojay.io Today
Error reporting. The Gradle language server will use Groovy compile engine to analyze the Gradle build file and report syntax errors if exist....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same issue and this solved the issue. If the files are already in the correct directory, press F1 and type in “Clean the Java Language Server Workspace”
@snjeza Thanks for the quick response. That worked, thanks!