Double-click a tab & Save As a file with .toml extension
What steps did you take to trigger the issue?
Hi! I seem to have found a weird bug in Mu 1.2 on the Mac. I'm running under macOS Moterrey. So I've used Mu to create a settings.toml file as per Adafruit's guide for the Raspberry Pi Pico W. When I advise my students to use Mu I advise them to double-click the tab to make sure they're saving to the correct volume. But when I do this in Mu & select the "Other (.)" option for file type in the Save As dialog box, Mu still saves the file with the .py extension. Curiously, even if I try to remove the .py in the Finder with right-click Rename, the .py seems to remain if I do an os.listdir() from the CircuitPython REPL in Mu. BUT if I click the "Save" button, and do the same: select "Other (.)" and give it the name settings.toml (again, no .py used in either), this seems to properly save the file without the .py extension. This is definitely a repeatable recipe that shows the same results when tried again on my Mac. It'd be great to see this fixed, if I have this correct as a Mu problem, so I could avoid any student confusion. Thanks a bunch for your hard work!
What did you expect to happen?
.toml to be the extension at the end, not .py
What actually happened?
.py was added. Weirdly, even when I tried to rename using the finder, .py remained the extension on the CIRCUITPY volume. I was using a Raspberry Pi Pico with CircuitPython 8, but that likely doesn't matter.
What were you trying to do?
Double-click a tab & Save As a file with .toml extension
What steps did you take to trigger the issue?
Hi! I seem to have found a weird bug in Mu 1.2 on the Mac. I'm running under macOS Moterrey. So I've used Mu to create a settings.toml file as per Adafruit's guide for the Raspberry Pi Pico W. When I advise my students to use Mu I advise them to double-click the tab to make sure they're saving to the correct volume. But when I do this in Mu & select the "Other (.)" option for file type in the Save As dialog box, Mu still saves the file with the .py extension. Curiously, even if I try to remove the .py in the Finder with right-click Rename, the .py seems to remain if I do an os.listdir() from the CircuitPython REPL in Mu. BUT if I click the "Save" button, and do the same: select "Other (.)" and give it the name settings.toml (again, no .py used in either), this seems to properly save the file without the .py extension. This is definitely a repeatable recipe that shows the same results when tried again on my Mac. It'd be great to see this fixed, if I have this correct as a Mu problem, so I could avoid any student confusion. Thanks a bunch for your hard work!
What did you expect to happen?
.toml to be the extension at the end, not .py
What actually happened?
.py was added. Weirdly, even when I tried to rename using the finder, .py remained the extension on the CIRCUITPY volume. I was using a Raspberry Pi Pico with CircuitPython 8, but that likely doesn't matter.
Operating System Version
macOS Monterrey 12.6
Mu Version
1.2.0
Other Info
No response
Editor Log
No response