-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Use PsiReference list to determine if "missing" inspections apply #2256
Use PsiReference list to determine if "missing" inspections apply #2256
Conversation
…ssing" inspections apply
👍 |
Thank you! |
@Haehnchen Looks like this patch is causing a "too many element types registered" issue, as you've also discovered per your revert. Do you have any insight as to why my approach resulted in superfluous registration of |
thank for reaching out, but i would better leave it as it was:
i dont think its directly related, to this changes. but i still need to check, as i also had problems on daily basis on a project. for now guessing that it was called too often, too frequently for "bigger files". I hade problems writting queryies in repo classes and exception came from template checking. :) Maybe there were changes in PhpStorm itself on lexer / ast node, in which maybe a route name is resolved to an object and cached, but i found no reproducible way, so i reverted the changes for the next release as a first step. |
Understood, but then what is to be done about the "missing" inspections not recognizing custom references? With this revert my team and I are going to lose all visibility of broken routes in our project, for instance, and I don't know what I'm going to do about that now. Is it not expected that custom references will be inspected? Are people supposed to know they're making a tradeoff when using custom references that will lead to broken references all over their code over time? Thanks! |
@Haehnchen not to be a pain, but could you please advise so that I can determine how to proceed? Thank you |
@adrolter i will add this in the next release, in the end the "configured reference methods" should be considered. mainly it should just extend the already arraylist. |
I see, that makes sense. I'll hold off updating until the next release,
then. Thank you very much!
…On Wed, Jan 24, 2024, 10:43 Daniel Espendiller ***@***.***> wrote:
@adrolter <https://github.com/adrolter> i will add this in the next
release, in the end the "configured reference methods" should be
considered. mainly it should just extend the already arraylist.
—
Reply to this email directly, view it on GitHub
<#2256 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADBN42WGLZEW2IPK3NK6BTYQETZZAVCNFSM6AAAAABADTD6UKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGM4TCNBXHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Haehnchen Any update on this? It still doesn't appear to be working. |
Instead of using static signature lists to check if the route, service, and template "missing" inspections apply, we can instead check if the element's
PsiReference
list contains the relevant reference type. This change allows these inspections to operate in the same contexts as auto-completion, such as when the reference was tagged with a PhpDoc hash (e.g.,#Route
) or configured through the settings panel.Thanks!
Fixes #2255