-
Notifications
You must be signed in to change notification settings - Fork 26
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
IOException when closing files on Linux #400
Comments
@Jonathan-Maciel how often does this occur? Is it on every file being closed? Certain types of files? Intermittent? |
@TrevCraw I have noticed it with closing java and server.xml files. It happens frequently, but the same file can close without error and then this happens just a moment later. I haven't been able to determine a pattern. The ide logs have some more info about what was happening just before the error:
|
Say you open five Java files and then close them one by one. Does the exception happen for all of them or only for the fifth one? |
I suspect that it is again a problem of start/stop language server. I aligned this feature with LSP4E and fix a lot of problems in redhat-developer/intellij-quarkus#849 it is a draft for the moment. |
Looking at the logs, an exception is also happening when opening each new file. It's just not being alerted to the ui as an error.
|
@Jonathan-Maciel could you please try out this scenario suggested by @turkeylurkey ?
|
@TrevCraw Sorry, I meant my last comment to be in response to that suggestion. I saw the above exception by monitoring the logs when opening multiple files. No error alerts were triggered in the ui for this and I didn't see it when closing any of the files. |
I was able to recreate the bug on Linux, but not on Mac. |
Please wait for I finish redhat-developer/intellij-quarkus#849 and you integrate it. I suspect it is a problem with stop of language server. |
Tested using the latest lsp4ij feature branch (version - 0.0.2) . I was not able to reproduce the error. No error message appears when closing a file in the IDE. I tried with closing java and server.xml files. Screen.Recording.2024-07-09.at.4.27.17.PM.mov |
Hi @anusreelakshmi934 thank you for sharing your results. Could you please search through the logs after testing this scenario just to confirm there are no hidden/suppressed exceptions? |
@TrevCraw I looked into the logs as well. Did not find any IOExceptions. |
Hi @anusreelakshmi934 , could you please try recreating this issue using a Linux machine? |
Hi @TrevCraw . Tested on a Linux machine and could not reproduce the issue. The exception appears to originate from |
Liberty Tools Version: 0.0.9-SNAPSHOT
IntelliJ Version: 2023.1.1
OS: Ubuntu 22.04.2 LTS
Observed with several different SDKs and language level combinations.
This error message appears when closing a file in the IDE.
The text was updated successfully, but these errors were encountered: