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