-
Notifications
You must be signed in to change notification settings - Fork 18
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
Error after update to 1.28
version
#465
Comments
Got a longer trace perhaps? |
|
I wonder if this is somehow reproducible in psalm itself 🤔 Do you use any plugins perhaps? |
Run psalm ( Other plugins don't use. Run |
Right, so the problem seems to be that Do you perhaps have a reference to |
Probably caused by Line 56 in d03ec89
The problem is that this line is necessary, or else SA results will be based on cached analysis 🤔 I can't help in the next few weeks, but I endorse trying to reduce the code size as much as possible, until we reach just a reproducer, and then we bring the problem up to |
Any news? |
Nope, unlikely able to help myself in any foreseeable future |
I just installed this package in facile-it/doctrine-mysql-come-back#87 to improve my MSI, and I'm getting the same bug, and it doesn't appear when running Psalm alone. Is there at least some workaround that I can use? Something like purging the whole Psalm cache at each run, since the codebase is so small and it would still be fast? |
…ging trait override technique
I and @MatteoLattanzio have worked on this bug this week: the problem is not in in this plugin, but rather in @psalm's architecture, or at least when combined with this tool. Psalm does (obviously) not keep everything in memory, nor does it scan everything ahead of time: instead, it does some level of lazy loading internally, and that mechanism is not perfect. The issue occurs when there are lookups pointing at sources that are not part of the current analysis. For example, we had an issue with Our workaround has been to remove a Another approach I'm thinking of is to not invalidate only one of the sources in this tool, but rather to nuke the entire psalm instance for every mutant, which should be bearable for smaller libraries. |
…ging trait override technique
Example: https://github.com/yiisoft/html/actions/runs/3817491976/jobs/6576122054
With 1.27 no errors.
The text was updated successfully, but these errors were encountered: