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

Enforce that PsiFile is fetched with a slow/background data provider #493

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

jansorg
Copy link
Collaborator

@jansorg jansorg commented Nov 6, 2023

Closes #490

Fixes exceptions on newer SDKs. It seems like the slow data provider is only queried if the fast provider does not provide a result.
This PR is always returning null when PsiFile is requested to enforce this.

I've tested this manually with 2021.3 and 2023.2.

@jansorg jansorg changed the title fix: reject that PsiFile is fetched on the EDT thread Enforce that PsiFile is fetched with a slow/background data provider Nov 6, 2023
@jansorg jansorg requested a review from ahtrotta November 6, 2023 12:25
Copy link

github-actions bot commented Nov 6, 2023

AppMap runtime code review

Summary Status
Failed tests ✅ All tests passed
API changes 0️⃣ No API changes
Security flaws ✅ None detected
Performance problems ✅ None detected
Code anti-patterns ✅ None detected
New AppMaps 0️⃣ No new AppMaps

Copy link
Contributor

@ahtrotta ahtrotta left a comment

Choose a reason for hiding this comment

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

I was able to reproduce the error on develop and I was able to verify that this fixes it. Thanks!

@ahtrotta ahtrotta merged commit a61a9ee into develop Nov 10, 2023
5 checks passed
@ahtrotta ahtrotta deleted the jansorg/exceptions branch November 10, 2023 15:04
@appland-release
Copy link
Contributor

🎉 This PR is included in version 0.53.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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