Extension keeps building code, never finishing
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:5
- Comments:21 (3 by maintainers)
Top GitHub Comments
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):
@cammarb Could you check https://github.com/redhat-developer/vscode-java/issues/2020#issuecomment-880272712