mpy-utils
mpy-utils copied to clipboard
mpy-fuse: save from any editor throws `TypeError: truncate() takes 3 positional arguments but 4 were given`
on mac 10.13.6
watching @tdicola 's youtube video re mpy-fuse: https://www.youtube.com/watch?v=NdXtvtYrOs4
noticed he had some difficulty getting default mac text editor to save over mpy-fuse
. I am observing the same now with all installed editors. Common error log from mpy-fuse
is:
TypeError: truncate() takes 3 positional arguments but 4 were given
That error is common to all editors tested.
In his vid, @tdicola was able to workaround this using Atom. However I can reproduce now in Atom, vsCode, and even simple editors like python IDLE and (surprisingly) nano
, which almost certainly doesn't leverage any of the versioning that was causing Tony's problems.
All other filesystem operations are working as expected: read, new file, copy, delete. Just can't edit and save files.
Attached is a video stepping through the error in nano
:
2018-09-29 13-48-50.mp4.zip
G'day, thanks for the bug report! I'm not totally sure where that's coming from ... can you please run 'pip freeze' to get a dump of all your package versions and let me know which version of fusepy and mpy_utils you're using? I'll try and find someone with a mac to check it out ...
(probably related: #7)