Sass Compiling with --watch

Advertisement

mikestreety
Joined:
Posts:
3
Location:
United Kingdom

Sass Compiling with --watch

Hello,

This is a bit of a random one, and i'm not sure which side this lies - because of that i'm making both parties aware in the hope we can get somewhere.

WinSCP version 5.2.5 (but also happens on older ones)

I am using WinSCP to transfer files to a local server running CentOS via SFTP (also happens over SCP).

In a terminal window, I am running

sass --watch


- this compiles sass files into css when they are updated. If you don't know about sass, its a CSS Prepocessor.

After uploading the file the first time, the watch script detects that there is a change and compiles the sass, however, every time after that it simply detects and change and doesn't compile.

The reason I am posting this here is because it only happens with WinSCP. Using the same protocol on the same sever with the same files but with a different SFTP/SCP program, the files compile correctly on every upload.

I apologise for the vagueness of the post - being quite bespoke, I struggled to fulfill all the criteria in the link.

There is my Sass bug report on Github.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Sass Compiling with --watch

An environment when command is run from WinSCP is different than your regular terminal environment. Particularly, some environment variable are removed. Also the session does not have TTY, what among other means that different startup scripts are called. All this can have impact on your build scripts.

Reply with quote

martin
Site Admin
martin avatar

Ok. It can be a problem with timestamps. Check that, after your upload files with WinsCP, the timestamps are not in the past (earlier then previous build).

Reply with quote

mikestreety
Joined:
Posts:
3
Location:
United Kingdom

Ah you genius!

Seems when I upload, the timestamp is that of my computer, but compiling it uses the server time.

Interesting - thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Reply with quote

Advertisement

You can post new topics in this forum