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

Erroneous changed on disk notification #98

Open
zebulasampedro opened this issue Jun 29, 2017 · 3 comments
Open

Erroneous changed on disk notification #98

zebulasampedro opened this issue Jun 29, 2017 · 3 comments

Comments

@zebulasampedro
Copy link
Member

On the sandstone dev vagrant box, if a file in /tmp/ is modified and saved in the code editor, an erroneous file changed on disk notification appears. This does not happen in /home/, nor in the staging environment.

@zebulasampedro
Copy link
Member Author

After the v.1.1.1 PR, this has been observed in the staging environment as well.

The error can be reproduced only when using the keyboard shortcut for saving a file if no digest cycle has been triggered for the TabsCtrl, but not when using the dropdown menu on the document tab (using the dropdown menu triggers a digest cycle).

@zebulasampedro
Copy link
Member Author

Upon further investigation the digest cycles do not actually effect the correct execution of the display logic. The issue it turns out is that python-watchdog is firing multiple modification events for a single write.

Watchdog only fires two events on certain filesystems though. This has been observed thus far on tmp and and network filesystems, but cannot be reproduced on a normal home directory.

@zebulasampedro
Copy link
Member Author

zebulasampedro commented Jun 30, 2017

Nope. Watchdog is performing as expected.

Turns out that the FilesystemService.writeFileContents method is actually just being called twice on save when saving is prompted by the keyboard shortcut.

zebulasampedro added a commit to SandstoneHPC/sandstone-ide that referenced this issue Jun 30, 2017
zebulasampedro added a commit to SandstoneHPC/sandstone-ide that referenced this issue Jun 30, 2017
* Normalize watcher path prior to lookup.

* Disabling the keyboard shortcut for now. SandstoneHPC/sandstonehpc-project#98.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant