Skip to content
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

Problem markers suddenly stops updating. #261

Closed
norru opened this issue Jul 5, 2019 · 10 comments
Closed

Problem markers suddenly stops updating. #261

norru opened this issue Jul 5, 2019 · 10 comments

Comments

@norru
Copy link
Contributor

norru commented Jul 5, 2019

After some time of continuous editing/building, the "Problem" windows stops updating and refreshing with new errors/warnings.

RLS appears to be running and responding to requests.

Workaround is to restart the IDE periodically or force kill the rls processes spawned by Eclipse from the OS (see below).

UPDATE: killing the processes is not a viable workaround. After doing that the IDE gets stuck in a continuos "Building" loop.

@mickaelistria
Copy link
Contributor

Is the view content the only issue? Ie are problem markers still properly shown and updated in the editor and project explorer when this happen?

@norru
Copy link
Contributor Author

norru commented Jul 15, 2019

All the markers are "stuck" too.

@mickaelistria mickaelistria changed the title "Problems" view suddenly stops updating. Problem markers suddenly stops updating. Jul 15, 2019
@norru
Copy link
Contributor Author

norru commented Jul 16, 2019

More information, just got this again:

  • pkill rls from terminal causes the following error to appear in the Error Log. Afterwards, the markers resume proper updating.
java.io.IOException: Stream closed
	at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
	at java.io.OutputStream.write(OutputStream.java:116)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
	at java.io.FilterOutputStream.flush(FilterOutputStream.java:140)
	at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
	at org.eclipse.lsp4e.LoggingStreamConnectionProviderProxy.stop(LoggingStreamConnectionProviderProxy.java:210)
	at org.eclipse.lsp4e.LanguageServerWrapper.lambda$5(LanguageServerWrapper.java:362)
	at org.eclipse.lsp4e.LanguageServerWrapper.lambda$6(LanguageServerWrapper.java:369)
	at java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:870)
	at java.util.concurrent.CompletableFuture.uniExceptionallyStage(CompletableFuture.java:884)
	at java.util.concurrent.CompletableFuture.exceptionally(CompletableFuture.java:2196)
	at org.eclipse.lsp4e.LanguageServerWrapper.stop(LanguageServerWrapper.java:368)
	at org.eclipse.lsp4e.LanguageServerWrapper.start(LanguageServerWrapper.java:185)
	at org.eclipse.lsp4e.LanguageServerWrapper.getInitializedServer(LanguageServerWrapper.java:582)
	at org.eclipse.lsp4e.LanguageServiceAccessor.getLanguageServers(LanguageServiceAccessor.java:506)
	at org.eclipse.lsp4e.operations.highlight.HighlightReconcilingStrategy.collectHighlights(HighlightReconcilingStrategy.java:197)
	at org.eclipse.lsp4e.operations.highlight.HighlightReconcilingStrategy.lambda$0(HighlightReconcilingStrategy.java:124)
	at org.eclipse.core.runtime.jobs.Job$2.run(Job.java:185)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
	Suppressed: java.io.IOException: Stream closed
		at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
		at java.io.OutputStream.write(OutputStream.java:116)
		at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
		at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
		at java.io.FilterOutputStream.close(FilterOutputStream.java:158)
		at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
		... 14 more

@mickaelistria
Copy link
Contributor

Were you still seeing the publishDiagnostics notifications in the log when this happens? Do they seem correct (especially the uri)? If yes to both, then LSP4E is most likely the one to blame; otherwise it's RLS.

@norru
Copy link
Contributor Author

norru commented Jul 16, 2019

Just found that killing the processes is not a viable workaround. After doing that the IDE gets stuck in an endless "Building" loop.

@norru
Copy link
Contributor Author

norru commented Jul 16, 2019

Yes, publishDiagnostics messages are being generated in the logs with correct URLs.

@norru
Copy link
Contributor Author

norru commented Jul 16, 2019

I don't know exactly what triggers this behaviour but I think it always see it happen while I edit and save during a background build (which is, almost always).

@norru
Copy link
Contributor Author

norru commented Jul 23, 2019

Additional information: this is often triggered by repeatedly hitting Ctrl+Shift+F (formatting), which is often necessary as a workaround of #243.

@akurtakov
Copy link
Member

Now that corrosion uses rust-analyzer is this one fixed for you/

@akurtakov
Copy link
Member

Closing due to lack of interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants