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

Psalm should reset the cache when changing the error level. #4952

Closed
VincentLanglet opened this issue Jan 7, 2021 · 2 comments · Fixed by #6251
Closed

Psalm should reset the cache when changing the error level. #4952

VincentLanglet opened this issue Jan 7, 2021 · 2 comments · Fixed by #6251
Labels

Comments

@VincentLanglet
Copy link
Contributor

If I run

psalm --error-level=8

And get no errors

And then I run

psalm --error-level=7

I still get no errors

But if I remove the cache, and run again

psalm --error-level=7

Now I get correctly the psalm errors.

@psalm-github-bot
Copy link

Hey @VincentLanglet, can you reproduce the issue on https://psalm.dev ?

@VincentLanglet
Copy link
Contributor Author

VincentLanglet commented Feb 16, 2021

@muglug @weirdan This is a pretty annoying behavior. Any idea about how to fix it ?
Couldn't the cache be written by level ? Like /tmp/psalm/level1, /tmp/psalm/level2, ...

TysonAndre added a commit to TysonAndre/psalm that referenced this issue Aug 6, 2021
TysonAndre added a commit to TysonAndre/psalm that referenced this issue Aug 6, 2021
TysonAndre added a commit to TysonAndre/psalm that referenced this issue Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants