-
Notifications
You must be signed in to change notification settings - Fork 436
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
Cannot load Python files with a capitalised extension #396
Comments
I'll pick this up for now, since I'm working in the load/save space for issue #370. At least, please can others leave this area alone for the moment? |
Great, thanks Tim! |
From my work on #74 (a side project to #385) i've found that Mu tries to load anything other than Lines 627 to 639 in 6121350
When a hex file is opened the python source is extracted and pasted into a new untitled tab but clearly Side note: a non micropython hex will crash Mu So some verification that the file is actually a hex maybe a good idea, and case-insensitive matching of |
If that the case we should probably open a new issue to track that one. |
Technically it would be a uFlash problem, in fact you already reported it ntoll/uflash#29 |
If uFlash is throwing an exception (intentionally or unintentionally) and Mu is crashing instead of catching it, we should still categorise that as a bug in Mu. |
@ZanderBrown this should be a very simple fix (try/except/report problem, if encountered). I'm happy to fix this myself, but don't want to tread on @tjguk's toes as he does the encoding / load / save refactoring. Good catch and +1 on @carlosperate's assessment (Mu should handle the problem, probably as per my description above). |
The issues mentioned in this ticket have been fixed and the changes have landed in master. |
Tested on Windows 10, Python 3.5.2 32-bits, latest Mu master (6121350).
To reproduce:
mu_code
folder a file nameda.PY
with some text contentLoad
buttona.PY
fileLog:
The text was updated successfully, but these errors were encountered: