-
Notifications
You must be signed in to change notification settings - Fork 431
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
Extension keeps building code, never finishing #1341
Comments
@fo-fo if you change the java trace setting to "verbose", you will see the full logs about "workspace/didChangeWatchedFiles" notification. |
@testforstephen Thanks, I was able to narrow down the cause. It seems that RAML code generation is the culprit, as didChangeWatchedFiles refers to the generated files and I can see the generated files' time stamps changing every few minutes. So, it seems like the build changes the files, which then triggers didChangeWatchedFiles and a rebuild, which again changes the files, and so on. I'm not sure how to fix it though. We're using Any ideas where I should start looking? |
The built-in builder won't support ant, and it's an incremental builder, which is supposed to not regenerate the files. Do you have other building jobs running in the background? |
@testforstephen Nope, no other build jobs running. And as soon as I turn off auto build I can see from the RAML file timestamps that the files are no longer being regenerated. Moreover, if I disable We also have |
OK. By default, Intellij IDEA doesn't compile classes automatically, that's probably the reason why you didn't get the issue there. |
This causes problems if you try to run maven commands. Edit: see #1381 |
I've been experiencing a similar issue. When opening a java project, the java build status is stuck at 68% Refreshing. Also, the extension Java Project and Spring Boot Dashboard never load. I have googled and I haven't found a solution. Enviroment:
|
@cammarb Could you check #2020 (comment) |
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):
|
Has anyone been able to solve this? I am running since adding WSDL code gen though maven plugin cxf-codegen-plugin, VSCode won stop iterating over "Building" -> "Refreshing Workspace" in the Java Build Status Console. Very high temperatures and CPU usage. |
@SlappyAUS so, what @snjeza posted actually solves it. It just sucks that, until today, I still need to do it. I wish this was just fixed already. |
@ianmarxent bless you, this has saved me so much work, i've been blowing away these things by hand for months |
@fo-fo or @testforstephen I have the same problem (code keeps recompiling). Following your suggestion, I found the configuration to set to "verbose", but didn't find where the logs are logged. Where can I see them? |
After some time having these issues, I've noticed that the problem went away. I'm mostly sure that I haven't changed anything. Maybe this is solved? What are your experiences these days? |
@henry2man I agree, I haven't seen this issue crop up recently. This may have been resolved in an update. |
This issue has been fixed with eclipse-jdtls/eclipse.jdt.ls#1816 |
i also face the same problem |
@Dhruv1233 could you, please, provide a project example reproducing the error? |
I get the error with win10, version 1.70.2 |
This problem may be because java process extension may be killed by another extension, my problem was seeing java extension doing its thing starting the projects normally and seconds later just stopped and getting stuck in an infinite loop trying to run. Hope it works if you're having that problem |
I tried the F1 "Java clean ..." action but the issue is still occurring. I make no changes to the Java code or to any file, just browsing the project. I think the issue is still happening. |
me too, I just open https://github.com/apache/pulsar on wsl using vscode server, and "Java Build Status" is repeating in a loop |
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
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
The text was updated successfully, but these errors were encountered: