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

Test if file is read-only #7

Open
Drinausaur opened this issue Feb 6, 2022 · 1 comment
Open

Test if file is read-only #7

Drinausaur opened this issue Feb 6, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Drinausaur
Copy link

If we try to use the plugin on a read-only file ( like the KiCad demo files ), we get a python error.
I think it would be nicer to test if it opens properly for writing, and if not, display a user-friendly message instead of the python trace

image

@MitjaNemec
Copy link
Owner

I'll be a bit more specific. The issue is that you've opened a project in a read-only folder. And as the plugin places the .log file there, this causes the issue. I'll get on it

@MitjaNemec MitjaNemec added the bug Something isn't working label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants