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

The LanguageServerWrapper has a memory leak bug #279

Open
QG-Fly opened this issue Dec 2, 2022 · 0 comments
Open

The LanguageServerWrapper has a memory leak bug #279

QG-Fly opened this issue Dec 2, 2022 · 0 comments
Labels

Comments

@QG-Fly
Copy link

QG-Fly commented Dec 2, 2022

Description:

When the last file editor is closed, the widget in the small right corner will not turn red, but still green,
which means that the lsp4Intellij client does not call the lsp server shutdown and exit.

Steps to reproduce:
Step 1: Open IDEA (no file is opened at this time)

Step 2: Open a file. The widget in the right corner of IDEA will change from red to green

Step 3 Move the file to another directory

Step 4: Close the file editor. The widget on the right corner of the IDEA does not change from green to red. It is still green, which means that the lsp4Intellij client does not call the lsp server shutdown and exit.

The cause of the bug is that the field uriToEditorManagers/uriToLanguageServerWrapper/urisUnderLspControl in LanguageServerWrapper is not updated when the file editor path changes and the method "org. wso2. lsp4intellij. client. languageserver. wrapper. LanguageServerWrapper # forEditor (com. intellij. openapi. editor. editor)" returns null
Affected Versions:
All
OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

@QG-Fly QG-Fly added the Type/Bug label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant