-
Notifications
You must be signed in to change notification settings - Fork 28
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
Exception in unrelated file: Read access is allowed from inside read-action only
#708
Comments
So bad -( @SCWells72 we need to do a fix. |
Is there any chance that you could provide a PR for that? |
@angelozerr I'm sorry, but I currently don't have the capacity to do that. |
No problem. I have discussed about that with @fbricon and we fear that it will polluate github repo with a lot of issues. I am very busy for now with Quarkus support and DAP support that I am doing in my free time (to have the capability to debug typescript, swift, etc) so it is not in my priority. |
@jansorg, I've started a PR for a prospective fix that wraps the offending code in a read action. I say "prospective" because unfortunately I'm unable to reproduce the actual error locally having tried both 2023.2 and 2024.3 versions of IntelliJ IDEA Community Edition. Can you provide a specific environment in which you're able to reproduce the problem so I can try to reproduce it again locally in a matching environment and confirm the fix? |
It should be fixed with #712 @jansorg once https://github.com/redhat-developer/lsp4ij/actions/runs/12380125102 will be finished (in 2 minutes), please install https://github.com/redhat-developer/lsp4ij?tab=readme-ov-file#testing-nightly-builds and give us feedback if it fixes your issue. Thanks. |
@angelozerr Unfortunately, I'm still seeing this (or another?) exception with the latest nightly (0.9.1-20241217-193530). This happens frequently whenever I press ctrl+b (Navigate > Declarations or Usages). There was running LSP server.
|
I have plugin SumnekoLua installed, which uses LSP4IJ 0.9.0.
Navigating in a Kotlin file causes this error, even though there's no LSP server running or even associated with *.kt or any other Kotlin file.
I'm not sure why LSP4IJ is activated in this case. Would it be possible to skip this when there's no server at all?
An errorReporter build into the LSP4IJ plugin would help to report issues like this more automatically.
Thanks!
The text was updated successfully, but these errors were encountered: