mu-editor / mu

A small, simple editor for beginner Python programmers. Written in Python and Qt5.
http://codewith.mu
GNU General Public License v3.0
1.41k stars 435 forks source link

MU on Raspberrypi pico saving on every stroke. #1561

Open fleek opened 3 years ago

fleek commented 3 years ago

Currently MU writes to the raspberry pi, saving on every keystroke.

The raspberry pi pico and others have limited write cycles, same for even all media, even more for writable ROMs, why is MU writing every keystroke?

ntoll commented 3 years ago

Hi @fleek can you attach the log file that shows Mu is saving on every keystroke..? (See: https://codewith.mu/en/howto/1.1/read_logs)

At the request of the Raspberry Pi Foundation, Mu will save a copy of the file every n seconds if the file has been changed. Perhaps that is what you're observing. I agree with you that this is not a sensible idea for a device with limited write cycles and I think I'll quietly switch this off. Just need to confirm via the logs that it's this "feature" that's causing the behaviour you're observing.

Thanks.

carlosperate commented 3 years ago

Thanks for the report @fleek!

As far as I know the Pi Pico can be used in two modes:

Which mode are you using? If it's saving to flash more often then this, then that is likely a bug in Mu we will need to fix. If you have the logs that would help us immensely.