vscode-sftp
vscode-sftp copied to clipboard
Cannot set property closed of #<Writable> which has only a getter
Do you read the FAQ?
- [x] Yes.
- [x] I am going to read now.
Describe the bug i use sftp, show error : Cannot set property closed of #<Writable> which has only a getter but my .sftp has been checked.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Run command '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. Mac, Win, Linux]
- VSCode Version [e.g. 1.27.0]
- Extension Version [e.g. 1.7.0]
Extension Logs from Startup - required
-
Open User Settings.
- On Windows/Linux - File > Preferences > Settings
- On macOS - Code > Preferences > Settings
-
Set
sftp.debugtotrueand reload vscode. -
Reproduce the problem, get the logs from View > Output > sftp.
{
"name": "My dev Server",
"host": "xxx",
"protocol": "sftp",
"port": 36000,
"username": "root",
"remotePath": "/home/xxxx",
"uploadOnSave": false,
"privateKeyPath": "/Users/xxx/.ssh/id_rsa"
}
-19 15:12:56] [error] TypeError: Cannot set property closed of #<Writable> which has only a getter
at new WriteStream (/Users/jianfengye/.cursor/extensions/liximomo.sftp-1.12.10/node_modules/ssh2/lib/protocol/SFTP.js:3585:15)
at SFTP.createWriteStream (/Users/jianfengye/.cursor/extensions/liximomo.sftp-1.12.10/node_modules/ssh2/lib/protocol/SFTP.js:311:12)
at /Users/jianfengye/.cursor/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:131256
at new Promise (
this is my debug info :
[09-19 22:15:37] [debug] Inbound: CHANNEL_SUCCESS (r:0)
[09-19 22:15:37] [debug] Outbound: Sending CHANNEL_DATA (r:0, 9)
[09-19 22:15:37] [debug] Inbound: CHANNEL_DATA (r:0, 154)
[09-19 22:15:37] [debug] SFTP: Inbound: Received VERSION (v3, exts:[email protected],[email protected],[email protected],[email protected],[email protected])
[09-19 22:15:37] [debug] Outbound: Sending CHANNEL_DATA (r:0, 72)
[09-19 22:15:37] [debug] SFTP: Outbound: Buffered MKDIR
[09-19 22:15:37] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[09-19 22:15:37] [debug] SFTP: Inbound: Received STATUS (id:0, 4, "Failure")
[09-19 22:15:37] [debug] Outbound: Sending CHANNEL_DATA (r:0, 68)
[09-19 22:15:37] [debug] SFTP: Outbound: Buffered LSTAT
[09-19 22:15:37] [debug] Inbound: CHANNEL_DATA (r:0, 41)
[09-19 22:15:37] [debug] SFTP: Inbound: Received ATTRS (id:1)
[09-19 22:15:37] [debug] Outbound: Sending CHANNEL_DATA (r:0, 103)
[09-19 22:15:37] [debug] SFTP: Outbound: Buffered OPEN
[09-19 22:15:37] [debug] Inbound: CHANNEL_DATA (r:0, 17)
[09-19 22:15:37] [debug] SFTP: Inbound: Received HANDLE (id:2)
[09-19 22:15:37] [debug] Outbound: Sending CHANNEL_DATA (r:0, 17)
[09-19 22:15:37] [debug] SFTP: Outbound: Buffered FSTAT
[09-19 22:15:38] [debug] Inbound: CHANNEL_DATA (r:0, 41)
[09-19 22:15:38] [debug] SFTP: Inbound: Received ATTRS (id:3)
[09-19 22:15:38] [debug] Outbound: Sending CHANNEL_DATA (r:0, 25)
[09-19 22:15:38] [debug] SFTP: Outbound: Buffered FSETSTAT
[09-19 22:15:38] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[09-19 22:15:38] [debug] SFTP: Inbound: Received STATUS (id:4, 0, "Success")
[09-19 22:15:38] [debug] Outbound: Sending CHANNEL_DATA (r:0, 17)
[09-19 22:15:38] [debug] SFTP: Outbound: Buffered CLOSE
[09-19 22:15:38] [debug] Inbound: CHANNEL_DATA (r:0, 28)
[09-19 22:15:38] [debug] SFTP: Inbound: Received STATUS (id:5, 0, "Success")
[09-19 22:15:38] [error] TypeError: Cannot set property closed of #<Writable> which has only a getter
at new WriteStream (/Users/jianfengye/.cursor/extensions/liximomo.sftp-1.12.10/node_modules/ssh2/lib/protocol/SFTP.js:3585:15)
at SFTP.createWriteStream (/Users/jianfengye/.cursor/extensions/liximomo.sftp-1.12.10/node_modules/ssh2/lib/protocol/SFTP.js:311:12)
at /Users/jianfengye/.cursor/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:131256
at new Promise (
I have the same problem.
I have the same problem.
what they said
...well. solution was rather simple. uninstall this extension and install the version by Kreare.
Kreare.kreare-sftp
...well. solution was rather simple. uninstall this extension and install the version by Kreare.
Kreare.kreare-sftp
You are right, thanks guy
...well. solution was rather simple. uninstall this extension and install the version by Kreare. Kreare.kreare-sftp
You are right, thanks guy
Fixed it for me too!
...well. solution was rather simple. uninstall this extension and install the version by Kreare.
Kreare.kreare-sftp
This worked for me too. Thank you!!!
... колодец. Решение оказалось довольно простым. удалите это расширение и установите версию от Kreare.
Kreare.kreare-sftp
thanks !!!!!!