uploadOnSave doesn't work
jack-fdrv opened this issue · 1 comments
Do you read the FAQ?
- Yes.
Describe the bug
I use scss to css Compiler. sftp addon wokrs fine for scss when it changes, but it fails for compiled css. Actually seems it even doesnt track that location. Why?
To Reproduce
Steps to reproduce the behavior:
- Create to folders, "assets" and "min"
- Put you main.scss in to assets.
- Install saas locally
- Run this command sass --watch main.scss:../min/main.min.css --style compressed
- Set up any sftp server config with "uploadOnSave": true
- Try to modify /assets/main.scss
You should see how: - New files was created /min/main.min.css and /min/main.min.css.map
- Sftp addon uploads to the server main.scss
- But didnt upload 2 new files.
Extension Logs from Startup - required
[05-26 06:09:37] [trace] run command 'Toggle Output Panel'
[05-26 06:09:42] [info] [file-save] /Users/dixor/Documents/Workon/example/prod/wp-content/themes/example/assets/critical.scss
[05-26 06:09:42] [trace] handle upload file for /Users/dixor/Documents/Workon/example/prod/wp-content/themes/example/assets/critical.scss
[05-26 06:09:42] [debug] Custom crypto binding not available
[05-26 06:09:43] [debug] Local ident: 'SSH-2.0-ssh2js1.5.0'
[05-26 06:09:43] [debug] Client: Trying example.sftp.wpengine.com on port 2222 ...
[05-26 06:09:43] [debug] Socket connected
[05-26 06:09:43] [debug] Remote ident: 'SSH-2.0-mod_sftp'
[05-26 06:09:43] [debug] Outbound: Sending KEXINIT
[05-26 06:09:43] [debug] Inbound: Handshake in progress
[05-26 06:09:43] [debug] Handshake: (local) KEX method: curve25519-sha256@libssh.org,curve25519-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group15-sha512,diffie-hellman-group16-sha512,diffie-hellman-group17-sha512,diffie-hellman-group18-sha512
[05-26 06:09:43] [debug] Handshake: (remote) KEX method: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group14-sha256,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,rsa1024-sha1,ext-info-s
[05-26 06:09:43] [debug] Handshake: KEX algorithm: curve25519-sha256@libssh.org
[05-26 06:09:43] [debug] Handshake: (local) Host key format: ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa
[05-26 06:09:43] [debug] Handshake: (remote) Host key format: rsa-sha2-512,rsa-sha2-256,ssh-rsa
[05-26 06:09:43] [debug] Handshake: Host key format: rsa-sha2-512
[05-26 06:09:43] [debug] Handshake: (local) C->S cipher: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,chacha20-poly1305@openssh.com
[05-26 06:09:43] [debug] Handshake: (remote) C->S cipher: aes128-ctr,aes192-ctr,aes256-ctr
[05-26 06:09:43] [debug] Handshake: C->S Cipher: aes128-ctr
[05-26 06:09:43] [debug] Handshake: (local) S->C cipher: aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,chacha20-poly1305@openssh.com
[05-26 06:09:43] [debug] Handshake: (remote) S->C cipher: aes128-ctr,aes192-ctr,aes256-ctr
[05-26 06:09:43] [debug] Handshake: S->C cipher: aes128-ctr
[05-26 06:09:43] [debug] Handshake: (local) C->S MAC: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[05-26 06:09:43] [debug] Handshake: (remote) C->S MAC: hmac-sha2-256,hmac-sha2-512
[05-26 06:09:43] [debug] Handshake: C->S MAC: hmac-sha2-256
[05-26 06:09:43] [debug] Handshake: (local) S->C MAC: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
[05-26 06:09:43] [debug] Handshake: (remote) S->C MAC: hmac-sha2-256,hmac-sha2-512
[05-26 06:09:43] [debug] Handshake: S->C MAC: hmac-sha2-256
[05-26 06:09:43] [debug] Handshake: (local) C->S compression: none,zlib@openssh.com,zlib
[05-26 06:09:43] [debug] Handshake: (remote) C->S compression: zlib@openssh.com,zlib,none
[05-26 06:09:43] [debug] Handshake: C->S compression: none
[05-26 06:09:43] [debug] Handshake: (local) S->C compression: none,zlib@openssh.com,zlib
[05-26 06:09:43] [debug] Handshake: (remote) S->C compression: zlib@openssh.com,zlib,none
[05-26 06:09:43] [debug] Handshake: S->C compression: none
[05-26 06:09:43] [debug] Outbound: Sending KEXECDH_INIT
[05-26 06:09:43] [debug] Received DH Reply
[05-26 06:09:43] [debug] Host accepted by default (no verification)
[05-26 06:09:43] [debug] Host accepted (verified)
[05-26 06:09:43] [debug] Outbound: Sending NEWKEYS
[05-26 06:09:43] [debug] Inbound: NEWKEYS
[05-26 06:09:43] [debug] Verifying signature ...
[05-26 06:09:43] [debug] Verified signature
[05-26 06:09:43] [debug] Handshake completed
[05-26 06:09:43] [debug] Outbound: Sending SERVICE_REQUEST (ssh-userauth)
[05-26 06:09:43] [debug] Inbound: Received SERVICE_ACCEPT (ssh-userauth)
[05-26 06:09:43] [debug] Outbound: Sending USERAUTH_REQUEST (none)
[05-26 06:09:43] [debug] Inbound: Received USERAUTH_FAILURE (publickey,password)
[05-26 06:09:43] [debug] Client: none auth failed
[05-26 06:09:43] [debug] Outbound: Sending USERAUTH_REQUEST (password)
[05-26 06:09:44] [debug] Inbound: Received USERAUTH_SUCCESS
[05-26 06:09:44] [debug] Outbound: Sending CHANNEL_OPEN (r:0, session)
[05-26 06:09:44] [debug] Inbound: CHANNEL_OPEN_CONFIRMATION (r:0, s:0)
[05-26 06:09:44] [debug] Outbound: Sending CHANNEL_REQUEST (r:0, subsystem: sftp)
[05-26 06:09:44] [debug] Inbound: CHANNEL_SUCCESS (r:0)
[05-26 06:09:44] [debug] Outbound: Sending CHANNEL_DATA (r:0, 9)
[05-26 06:09:44] [debug] Inbound: CHANNEL_DATA (r:0, 179)
[05-26 06:09:44] [debug] SFTP: Inbound: Received VERSION (v3, exts:versions,fsync@openssh.com,posix-rename@openssh.com,statvfs@openssh.com,fstatvfs@openssh.com,hardlink@openssh.com)
[05-26 06:09:44] [debug] Outbound: Sending CHANNEL_DATA (r:0, 50)
[05-26 06:09:44] [debug] SFTP: Outbound: Buffered MKDIR
[05-26 06:09:44] [debug] Inbound: CHANNEL_DATA (r:0, 45)
[05-26 06:09:44] [debug] SFTP: Inbound: Received STATUS (id:0, 4, "File already exists")
[05-26 06:09:44] [debug] Outbound: Sending CHANNEL_DATA (r:0, 46)
[05-26 06:09:44] [debug] SFTP: Outbound: Buffered LSTAT
[05-26 06:09:45] [debug] Inbound: CHANNEL_DATA (r:0, 45)
[05-26 06:09:45] [debug] SFTP: Inbound: Received ATTRS (id:1)
[05-26 06:09:45] [debug] Outbound: Sending CHANNEL_DATA (r:0, 68)
[05-26 06:09:45] [debug] SFTP: Outbound: Buffered OPEN
[05-26 06:09:45] [debug] Inbound: CHANNEL_DATA (r:0, 29)
[05-26 06:09:45] [debug] SFTP: Inbound: Received HANDLE (id:2)
[05-26 06:09:45] [debug] Outbound: Sending CHANNEL_DATA (r:0, 29)
[05-26 06:09:45] [debug] SFTP: Outbound: Buffered FSTAT
[05-26 06:09:45] [debug] Inbound: CHANNEL_DATA (r:0, 45)
[05-26 06:09:45] [debug] SFTP: Inbound: Received ATTRS (id:3)
[05-26 06:09:45] [debug] Outbound: Sending CHANNEL_DATA (r:0, 37)
[05-26 06:09:45] [debug] SFTP: Outbound: Buffered FSETSTAT
[05-26 06:09:45] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[05-26 06:09:45] [debug] SFTP: Inbound: Received STATUS (id:4, 0, "OK")
[05-26 06:09:45] [debug] Outbound: Sending CHANNEL_DATA (r:0, 697)
[05-26 06:09:45] [debug] SFTP: Outbound: Sent WRITE (id:5)
[05-26 06:09:45] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[05-26 06:09:45] [debug] SFTP: Inbound: Received STATUS (id:5, 0, "OK")
[05-26 06:09:45] [debug] Outbound: Sending CHANNEL_DATA (r:0, 41)
[05-26 06:09:45] [debug] SFTP: Outbound: Buffered FSETSTAT
[05-26 06:09:45] [debug] Inbound: CHANNEL_DATA (r:0, 82)
[05-26 06:09:45] [debug] SFTP: Inbound: Received STATUS (id:6, 3, "Permission denied")
[05-26 06:09:45] [warn] Can't set modified time to the file because Permission denied
[05-26 06:09:45] [debug] Outbound: Sending CHANNEL_DATA (r:0, 29)
[05-26 06:09:45] [debug] SFTP: Outbound: Buffered CLOSE
[05-26 06:09:46] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[05-26 06:09:46] [debug] SFTP: Inbound: Received STATUS (id:7, 0, "OK")
[05-26 06:09:46] [info] local ➞ remote /Users/dixor/Documents/Workon/example/prod/wp-content/themes/example/assets/critical.scss
[05-26 06:10:14] [debug] Outbound: Sending ping (GLOBAL_REQUEST: keepalive@openssh.com)
[05-26 06:10:14] [debug] Inbound: Received REQUEST_FAILURE
You can try my version, I have fixed bugs and added new features, maybe this will fix the problem you are having.
https://marketplace.visualstudio.com/items?itemName=satiromarra.code-sftp