liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

TypeError: Cannot set property closed of #<Writable> which has only a getter #1019

Closed zptr1 closed 11 months ago

zptr1 commented 11 months ago

Do you read the FAQ?

Describe the bug Uploading any file results in the following error:

TypeError: Cannot set property closed of #<Writable> which has only a getter
    at new WriteStream (/home/.../.vscode-oss/extensions/liximomo.sftp-1.12.10/node_modules/ssh2/lib/protocol/SFTP.js:3585:15)
    at SFTP.createWriteStream (/home/.../.vscode-oss/extensions/liximomo.sftp-1.12.10/node_modules/ssh2/lib/protocol/SFTP.js:311:12)
    at /home/.../.vscode-oss/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:131256
    at new Promise (<anonymous>)
    at a._put (/home/.../.vscode-oss/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:131218)
    at a.<anonymous> (/home/.../.vscode-oss/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:129943)
    at Generator.next (<anonymous>)
    at s (/home/.../.vscode-oss/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:128197)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) when local ➞ remote /home/.../.../index.js

It also erases the file on the remote server.

To Reproduce Steps to reproduce the behavior:

  1. Upload any file
  2. Error!

Expected behavior A file gets properly uploaded to the remote server.

Desktop:

Extension Logs from Startup log.txt

zptr1 commented 11 months ago

nevermind, i thought i've installed the fork ...