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

Stuck at "Building: 0% [0/1000]" in "Task - Java Build Status" #1739

Open
GaZaTu opened this issue Dec 11, 2020 · 8 comments
Open

Stuck at "Building: 0% [0/1000]" in "Task - Java Build Status" #1739

GaZaTu opened this issue Dec 11, 2020 · 8 comments

Comments

@GaZaTu
Copy link

GaZaTu commented Dec 11, 2020

I wrote a Maven plugin to generate .class files and a .jar from OpenOffice .idl files.
When i open the workspace which uses said plugin the project compiles fine and auto completion works. But when i edit one of these .idl files autocompletion stops working and i'm getting stuck at "Building: 0% [0/1000]" in "Task - Java Build Status". The goal of my Maven plugin will still finish tho, so the issue seems to occur after my plugin finishes execution.
My Maven plugin uses the "META-INF/m2e/lifecycle-mapping-metadata.xml" file to make the plugin compatible with eclipse.
I also made sure that there's no compilation if nothing actually changed. I can run mvn install as often as i want and it won't change the modification dates of any of my generated files.

It would be nice if someone could show me how to debug the task "Java Build Status" so i can figure out what's wrong.

I'll try to somehow create 2 sample projects to reproduce if there is no way to debug it myself.

Environment
  • Operating System: openSUSE Leap 42.2
  • JDK version: 11.0.8, 2020-07-14
  • Visual Studio Code version: 1.50.0, 2020-10-07
  • Java extension version: 0.72.0, [2020-12-02]

Screenshot_20201211_110403

@testforstephen
Copy link
Collaborator

The task "Java Build Status" is just using a pseudo terminal to present the job status running in the Java language server. You could take a loot at how to debug the Java extension itself, see https://github.com/redhat-developer/vscode-java/blob/master/CONTRIBUTING.md

@prithvisharma
Copy link

@GaZaTu
if you found any solution for this please let me know, its happening with one of my projects for some reason... :(

@GaZaTu
Copy link
Author

GaZaTu commented Dec 22, 2021

@prithvisharma i don't think i ever fixed that, sry 😥

@prithvisharma
Copy link

@GaZaTu this happened to me a few hours back
i was coding and suddenly save didnt happen, auto complete stuck loading...
😞

@fabgilson
Copy link

fabgilson commented Jan 3, 2022

Had a similar issues (terminal stayed empty, building and auto complete stuck). I ended up removing all extensions and reinstalling Redhat and gradle only, then import a project (successfully that time) and reinstalled my other extensions. I did not reinstall the extension pack for Java from Microsoft yet. Also, make sure you have the Lombok extension, it seems Redhat's Java extension needs it somehow.

Was using vscode over WSL (ubuntu 20.04).

@youssifessam2323
Copy link

I am having the same issue as the IntelliSense, and the build process is very slow

@jgriffin1
Copy link

I'm having this issue, or at least a similar issue. Building is stuck constantly spinning and the "Java build Status" terminal stays blank.

@efica
Copy link

efica commented Jan 21, 2025

Hi everyone,

I found a solution for the "Building: 0% [0/1000]" issue in "Task - Java Build Status". The problem seems to be related to the Red Hat plugin. Make sure you are using the release version and not the prerelease version of the plugin. If that doesn't work, try uninstalling and reinstalling the plugin. This worked for me.

I hope this helps others facing the same issue.

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

No branches or pull requests

7 participants