vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

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

Open GaZaTu opened this issue 5 years ago • 8 comments

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

GaZaTu avatar Dec 11 '20 10:12 GaZaTu

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

testforstephen avatar Dec 14 '20 11:12 testforstephen

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

prithvisharma avatar Dec 22 '21 12:12 prithvisharma

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

GaZaTu avatar Dec 22 '21 12:12 GaZaTu

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

prithvisharma avatar Dec 22 '21 12:12 prithvisharma

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).

fabgilson avatar Jan 03 '22 20:01 fabgilson

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

youssifessam2323 avatar Jun 04 '22 20:06 youssifessam2323

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

jgriffin1 avatar Aug 10 '22 17:08 jgriffin1