-
Notifications
You must be signed in to change notification settings - Fork 71
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
watched files are not being uploaded automatically #278
Comments
@Jany-M could you give me some details about what OS you are using? |
Win10 64bit. I have added them to the config GUI like this: In the I dont see any M icon next to those files though. .css files dont get uploaded automatically anymore though. |
Rather strange I am running same OS and do not have the issue, the fact you are seeing the As for the M not being shown this is more of a style thing (which could be an issue with finding the file or not having time to apply the effect) but I don't class it as a major issue at the moment. As for a few tests, can you one open atom and using ctrl+P look for After that test, could you remove all items from the watch list restart atom & just try doing the manually right click method to help try and narrow it down for me, as I cannot replicate your issue. Thanks |
@elistone, after some testing:
So basically, the old manual way works but only if theres no files being watched in the config file. I use the keyboard-localization package ( |
If I may chime in, I just experience the same on Windows 10 x64. After learning how to put the slashes, Atom finally finds the right file to watch after a restart of the app, the fat M icon appears next to the css file, but it is not being uploaded when changing the .scss file. And I have checked the css file if the change actually applied - yes, the file has been changed, but is not being watched even though it says so :/ . |
had to downgrade to 4.0.1. Hopefully this watch issue is resolved in next version. One more thing btw: in 4.0.1, when I manually watch for a file, in the popup notice it shows the full path to file. While in 4.1.0 it only shows the file name and extension. Maybe it's nothing, thought I'd share. |
@Jany-M @enoversum I am struggling to replicate this issue on my machine, and will need access to one with the issue to solve it, you are welcome to look into the issue your self and put in a pull-request. |
@elistone @yongkangchen
|
@Jany-M to console log the full paths being watched you can do the following: Open the installed package
Locate the watching methods Found in The method you are most likely looking for is the Example: monitorFile: (dirPath, toggle = true, notifications = true)->
console.log "dirPath",dirPath to view the console log you will need to open up the inspector inside atom which can done with the key-bindings ctrl + alt + I Important you will need to reload atom after to see changes take effect. (ctrl + alt + R) By the way coffeescript is very similar to javascript apart from using indentations, I would recommend using something like http://js2.coffee/ to help work out what is going on. |
Thank you @elistone! |
@elistone @yongkangchen I console logged the paths for each relevant method, while using the config watchlist.
When I manually watch the file though, here's what happens:
The watchlist simply doesnt work. Anything you want me to try here? is this useful to you? |
@Jany-M Thank you very much! this is very useful, Im busy over the next few days but I can look at it more closely soon. Without checking I'm guessing the issue is to do with one of a few lines: 166-167
These lines try and escape the string e.g. escape quotes & quadruple slashes for windows to apply the styles but should not be passed to the monitored file function. or 203
This function I don't think is an issue just thought I put it out there this is meant to get the file name by popping everything after the last slash. or 218
Could be this guy? This function gets the project path and filename and tries to build a url to the file for it to be monitored. I think overall there should be a new function created to take care of parsing strings correctly, feel free to look into it, if not I shall try and do it sometime this weekend. Thanks again for your help, its been great so far! |
@elistone Great! Glad I could be of help. Now it works perfectly, little icon shows up next to the watched files in tree view, on Atom load, and file is uploaded automatically as expected (all paths are correct now) 👍 |
@Jany-M great, shall look at in a bit & pull it, thanks again. |
@elistone should we close this issue now or is there anything else to test out? |
@Jany-M It can be closed, I was just waiting till the patch was pushed. |
@elistone once I updated the package with the latest release and bugfix, I still had to empty Atom's cache/storage in order for the auto-upload to work as expected. Just thought I'd let you know. |
@elistone and it stopped working again :( paths seem right though, so Im not sure where to look now. |
@Jany-M It works beautifully with the latest beta on my computers 😉 . So at least it's not broken for everybody. |
@Jany-M It seems to be broken on my work machine too, there have not been any updates to I have noticed if I put the file I wish to monitor in the watch automatically settings, it will not find the file then goes and monitors loads of random files... seems like this could be apart of the issue. |
@Jany-M I found the source of my issue, it was that my root folder had brackets in the name e.g. Could you check if you have strange charters in any of the folders/files to the file you wish to monitor. |
@elistone nope, nothing of the sort unfortunately. It doesnt work on all open projects I have (about 7 atm), and besides a few ones that have a I noticed that after removing the files from config manually (including the |
@Jany-M Sadly nothing I can really do to help in this case as we have not rolled out anything & seems to be local to your machine, you're welcome to look into it yourself. |
@Jany-M I had something similar with SASS files not being compiled in Sublime when any part of the folder structure had special characters in it. I remember it being ö, ä, ü as well as brackets of any sort, in my case [] . So it failed, even if it was something like this E:[Folder with brackets]\Projects\My Project . Maybe it is something like that? |
This is a real life struggle for me :( had Remote-FTP addon working, now busted after the update..tried many and this one seemed the best and now not watching my compiled css, guys is there is any real fix to this? thanks much. |
Hello!
Using
remote-sync 4.1.0
andAtom 1.7.3
I added some files to be watched from the GUI panel and I get the notification that they are being watched. However, automatic upload doesnt work upon file change.
If I manually click on Monitor File (the old way), I can see an M icon (doesnt happen with above case though) next to the file in tree view, the notification that file is being watched, but again the file is not uploaded automatically upon change.
Basically, monitoring is now broken, whatever way I try, even the old way.
The text was updated successfully, but these errors were encountered: