Skip to content

Conversation

@FlorianKroiss
Copy link
Contributor

@FlorianKroiss FlorianKroiss commented Dec 2, 2025

Fixes #1446

I was unable to reliably reproduce the error, so I am not 100 percent sure that this fix will work, but to me it seems logical that it should work
Using breakpoints in the Plugin Shutdown and the ResourceChangeListener, I was able to confirm that the patch works as expected.

Copy link
Contributor

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@rubenporras
Copy link
Contributor

How do you think this can happen? A race condition when the server is stop? Maybe when org.eclipse.lsp4e.LanguageServerPlugin.stop(BundleContext) is called?

@FlorianKroiss
Copy link
Contributor Author

FlorianKroiss commented Dec 2, 2025

Yes, org.eclipse.lsp4e.LanguageServerPlugin.stop(BundleContext) has been called but the ResourceChangeListener is still registered. And the context in the LanguageServerWrapper has not been stopped yet. A better solution can probably be achieved if we address #681 some day

@rubenporras rubenporras merged commit 680b71f into eclipse-lsp4e:main Dec 3, 2025
16 of 17 checks passed
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

Successfully merging this pull request may close these issues.

ResourceChangeListener is sometimes still registered after LSP4E Plugin was stopped

2 participants