Pythonista 3.5 editor/interpreter doesn't get external file updates #82
Unanswered
sloanlance
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While testing Pythonista 3.5 on my iPad and MacBook Pro, I've noticed that if a file is open in the editor and the file is simultaneously updated in the filesystem, the editor doesn't pick up the changes. In some cases, the whole app doesn't recognize the change, either. I think this is a bug that maybe I should report at https://github.com/omz/Pythonista-Issues/issues, but I thought I should check here first.
Scenario 1 (MacBook Pro)
While editing a program in the Pythonista app, I decided that I wanted to open it with MacVim, because I like that editor better for the changes I wanted to make. I didn't need autocompletion or some of the other features that Pythonista's editor offers. I found the file in the filesystem, edited it with MacVim, and saved the changes. In Pythonista, the editor didn't show the changes I made. However, in the file browser, the preview did show the changes and when I ran the program, it ran correctly. After running the program, the editor still didn't show the changes. I think I had to close the editor and reopen the file to see the updated code.
Scenario 2 (iPad)
After I'd made enough progress with my program on the MacBook Pro, I decided it was time to test it on my iPad. To sync the code between the devices, I created an empty repo in GitHub and used the Working Copy app on the iPad to clone it there. In Pythonista, I created a mostly empty Python file in the directory of the cloned repo, then committed it to GitHub. On my MacBook Pro, I updated the code and committed it to the repo. I verified with the GitHub web UI that it was correct. Back on the iPad, I pulled the changes using Working Copy. In that app's UI, the file contents were correct. However, in Pythonista, it didn't show the changes in the editor, the file browser, or when I ran the code. I had to close the file editor, delete the file from the file browser, then add it back again in order for the changes to appear in Pythonista.
If more information is needed or if I should test a possible solution, tell me and I'll be happy to try.
Beta Was this translation helpful? Give feedback.
All reactions