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

mpy-fuse: save from any editor throws TypeError: truncate() takes 3 positional arguments but 4 were given #14

Open
ezeeetm opened this issue Sep 29, 2018 · 2 comments

Comments

@ezeeetm
Copy link

ezeeetm commented Sep 29, 2018

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

@nickzoic
Copy link
Owner

nickzoic commented Oct 4, 2018

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 ...

@nickzoic
Copy link
Owner

nickzoic commented Oct 4, 2018

(probably related: #7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants