Comments (7)
Thanks to your recommendation I was able to get it running and dig into what was happening.
The issue is that SSHFS is running on top of SFTP, which does not have any support for file notifications (it seems to be request/response only) so only user actions get the latest version.
This is not something I can fix as part of file-watcher
but there are some options:
- Set up polling on open files, somehow determining if they are mounted over win-sshfs, or just based off a config setting. I'd probably make this a separate module actually, and interface with pathwatcher further down the stack.
- Get something like fsnotifier-remote working and hook into those events. I have no idea how to do this :)
I think I will try option 1 and add it as a new package. I'm going to close this as 'wontfix' since I cannot fix it in file-watcher
, but I'll link the new package here, if it works.
from file-watcher.
Interesting. Have you tried recreating this with file-watcher disabled? I
will try to recreate this but I am not sure if I can do anything about it
if it is a core Atom problem.
Just so I am right in the steps:
- Files are located on the Mac
- Files are shared to VM with sshfs
- File is opened in Atom on Debian VM
- File is modified on mac
- No changes are detected in Atom
Is that correct?
from file-watcher.
Thanks a lot for your fast answer.
I will try this while file-watcher is disabled.
My configuration is like:
- My files are located on the VM
- files are shared to my Mac via sshfs
- file is openend on Mac with Atom
- file is modified on the VM
- No changes are detected in Atom
from file-watcher.
So I have tried to get sshfs to work for me but I am on Windows 10 and I cannot get it to mount a folder. I'll keep playing around with it but I may not be able to fix this.
from file-watcher.
Also reported by @fractalf, moved from issue #6.
from file-watcher.
@lwblackledge I also had to fight a little to get win-sshfs to work, the problem being different versions colliding. This should work though:
- Use Release1.5.12.9-rc1 from https://github.com/dimov-cz/win-sshfs/releases
- Use Dokan 0.7.4 from here https://github.com/dokan-dev/dokany/releases
Dokan will maybe ask you do download and install Visuall C++ Redistributable stuff, which I did for both x64 and x86.
from file-watcher.
@lwblackledge Did you ever get win-sshfs to work for you?
from file-watcher.
Related Issues (20)
- Path must be a string. Received undefined
- Changing Branchs HOT 3
- Add "Reload All" option HOT 5
- Reload all changes of the same file together HOT 1
- No prompt when using filezilla HOT 3
- File is not updated in Atom when it was edited outside Atom HOT 3
- Uncaught TypeError: this.editor.buffer.updateCachedDiskContents is not a function HOT 3
- Is there a way to make it work with PyCharm 'safe write'? HOT 1
- Failed to load the file-watcher package HOT 4
- Only show message once when file is foreground
- Uncaught (in promise) Error: Invalid encoding name: windows1252 HOT 2
- The plugin is not working with Atom 1.23.3 and macOS 10.13.2 HOT 1
- Prompt on change does not work on nfs files changed outside Atom HOT 1
- Not prompting on change and reloading automatically even with option turned off. HOT 4
- "Mounted file systems" in documentation is misleading. HOT 2
- file-watcher is completely inconsistent HOT 4
- AutoReload to confirm only if has unsaved changes
- Add an option to avoid bringing the atom window to the foreground when a file has changed HOT 2
- File won't reload when doing "git checkout"
- How this work in VisualCode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from file-watcher.