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

uploading a file works, but diff does not #133

Closed
mirino83 opened this issue Mar 15, 2018 · 0 comments
Closed

uploading a file works, but diff does not #133

mirino83 opened this issue Mar 15, 2018 · 0 comments

Comments

@mirino83
Copy link

  • Extension Name: sftp
  • Extension Version: 1.1.2
  • OS Version: Windows_NT x64 10.0.16299
  • VSCode version: 1.21.1

I can upload a file, but when I try to diff the same file, it shows an error

my SFTP config:

[
    {
        "context": "..\\jjkadernictvi-theme\\dist",
        "host": "waws-prod-am2-023.ftp.azurewebsites.windows.net",
        "port": 21,
        "username": "jjkadernictvi\\$jjkadernictvi",
        "password": "xxx",
        "protocol": "ftp",
        "remotePath": "/site/wwwroot/templates/shaper_helix3",
        "uploadOnSave": false,
        "syncMode": "update"
    }
]

sftp output:

[info]: config at d:\mirek\projekt\jjkadernictvi-theme\dist {"protocol":"ftp","host":"waws-prod-am2-023.ftp.azurewebsites.windows.net","port":21,"username":"jjkadernictvi\\$jjkadernictvi","password":"xxx","agent":null,"privateKeyPath":null,"passphrase":null,"interactiveAuth":false,"secure":false,"secureOptions":null,"passive":false,"remotePath":"/site/wwwroot/templates/shaper_helix3","uploadOnSave":false,"syncMode":"update","ignore":[".vscode",".git",".DS_Store"],"watcher":{"files":false,"autoUpload":false,"autoDelete":false},"concurrency":512,"context":"d:\\mirek\\projekt\\jjkadernictvi-theme\\dist"}

developer tools output:

ERR Cannot convert undefined or null to object: TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at toNumMode (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\out\src\model\Fs\FTPFileSystem.js:14:28)
    at stats.map.stat (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\out\src\model\Fs\FTPFileSystem.js:51:139)
    at Array.map (native)
    at ftp.list (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\out\src\model\Fs\FTPFileSystem.js:51:40)
    at final (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\node_modules\ftp\lib\connection.js:476:11)
    at Object.cb (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\node_modules\ftp\lib\connection.js:513:11)
    at Parser.<anonymous> (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\node_modules\ftp\lib\connection.js:117:20)
    at emitTwo (events.js:106:13)
    at Parser.emit (events.js:194:7)
    at Parser._write (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\node_modules\ftp\lib\parser.js:59:10)
    at doWrite (_stream_writable.js:329:12)
    at writeOrBuffer (_stream_writable.js:315:5)
    at Parser.Writable.write (_stream_writable.js:241:11)
    at Socket.ondata (C:\Users\mma\.vscode\extensions\liximomo.sftp-1.1.2\node_modules\ftp\lib\connection.js:273:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at TCP.onread (net.js:560:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant