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.

Extension keeps building code, never finishing

See original GitHub issue

I’m trying to use the vscode-java extension in VSCode, but it keeps on building the same source code (it seems) again and again, hogging 100% CPU.

I see lines like this in the Task - Java Build Status Terminal: 1e7bf092 Building: 72% Compiling foo/src/test/java/fi/bar/xyzzy/controller [720/1000]. After it completes, it starts again.

I set the “Trace” setting in Settings to “messages”, and saw this in the logs multiple times: [Trace - 9:47:08 AM] Sending notification 'workspace/didChangeWatchedFiles'., followed by a bunch of [Trace - 9:47:08 AM] Received notification 'language/progressReport'.

My guess is that it somehow thinks that some of the watched files have changed. How can I find out which files are causing the build to re-trigger?

Environment
  • Operating System: macOS Catalina 10.15.3
  • JDK version: jdk1.8.0_161
  • Visual Studio Code version: 1.43.2
  • Java extension version: 0.58.0
Steps To Reproduce

Unfortunately it only happens in our fairly large proprietary project.

Current Result

Keeps rebuilding the code forever.

Expected Result

Should stop building after a reasonable time.

Additional Informations

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
ianmarxentcommented, Dec 6, 2021

I had a similar issue; stuck building and would never finish. I checked out the troubleshooting guide here and found that cleaning out my workspace directory solved the problem for me (steps from link pasted below):

  • Open the command palette
  • select Java: Clean the Java Language Server Workspace
  • select Restart and delete from the confirmation prompt
Read more comments on GitHub >

github_iconTop Results From Across the Web

VSC Java Build Status stop - visual studio code - Stack Overflow
1 Answer 1 · I went to Extensions tab, clicked ellipsis, and "Install from VSIX". The 0.80.2 fixed the "68%" issue. · @Terry....
Read more >
Java running is taking forever to load. : r/vscode - Reddit
I'm new to vs code (and coding and programming too in general) and I have been having this problem while trying to run...
Read more >
redhat-developer/vscode-java - Gitter
I'm running vscode 1.71.1 with redhat-java (installed by Extension Pack for Java v0.25.2022090600) extension. I found my vscode won't formatt any java source ......
Read more >
August 2021 (version 1.60) - Visual Studio Code
You cannot publish an extension that uses a proposed API. There may be breaking changes in the next release and we never want...
Read more >
Visual Studio IntelliCode - Microsoft
Integrate our build task into your pipeline to keep your team ... Keep your code consistent easily with Visual Studio IntelliCode, ...
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