question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle compiles but vscode-java is getting compilation errors

See original GitHub issue

I’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
  1. git clone https://github.com/jeusdi/gradle-vscode.git
  2. Open vscode

[attach a sample project reproducing the error] attach logs

Current Result

imagen

Expected Result

gradle command ends succesfully:

imagen

Additional Informations

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
IndikaMaligaspecommented, Jul 7, 2021

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”

0reactions
RLashofRegascommented, Nov 14, 2022

@snjeza Thanks for the quick response. That worked, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found