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

Double-click on Tab Doesn't Save Other (*.*) - it adds .py in Mac Mu 1.2.0, "Save" button does. #2382

Open
gallaugher opened this issue Dec 30, 2022 · 1 comment
Assignees
Labels
interface Mu's UI - buttons, text, window, etc.

Comments

@gallaugher
Copy link

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

@xbecas
Copy link
Collaborator

xbecas commented Jan 22, 2023

Related to #1571 and #1572.

@xbecas xbecas added the interface Mu's UI - buttons, text, window, etc. label Jun 12, 2023
@xbecas xbecas self-assigned this Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interface Mu's UI - buttons, text, window, etc.
Projects
None yet
Development

No branches or pull requests

2 participants