Skip to content

Pyright script checker: better error if pyright fails to run #8671

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

Open
Tom-Willemsen opened this issue Feb 12, 2025 · 2 comments
Open

Pyright script checker: better error if pyright fails to run #8671

Tom-Willemsen opened this issue Feb 12, 2025 · 2 comments

Comments

@Tom-Willemsen
Copy link
Contributor

Tom-Willemsen commented Feb 12, 2025

Pyright keeps a cache directory at c:\Users\spudulike\.cache. This can get corrupted, if it does get corrupted the error looks like:

Image

Documented for now at https://github.com/ISISComputingGroup/ibex_developers_manual/wiki/genie_python-Troubleshooting#pyright-completely-fails-to-run (resolution is just delete the cache and try again), but we should catch non-json output from pyright in a better way and propagate a more descriptive error out to the user.

Planning

planning 00:36 2025/03/06

@LilithCole
Copy link
Contributor

ISISComputingGroup/genie#34 code
#8734 release notes

@LilithCole LilithCole moved this from In Progress to Review in PI_2025_02 May 16, 2025
@ISISBuilder ISISBuilder moved this from Review to Backlog in PI_2025_02 May 29, 2025
@danielmaclaren
Copy link
Contributor

@LilithCole, the code works but unfortunately it isn't passing the ruff checks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

6 participants