Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

FTP connection from VSCode 1.34-insider is broken #119

Open
gjsjohnmurray opened this issue Apr 26, 2019 · 3 comments
Open

FTP connection from VSCode 1.34-insider is broken #119

gjsjohnmurray opened this issue Apr 26, 2019 · 3 comments

Comments

@gjsjohnmurray
Copy link

See microsoft/vscode#72909

When investigating problems my own extension (based on liximomo.remotefs), I tested FTP connections to a couple of sites using mkloubert.vscode-remote-workspace and found that I couldn't even get the tree contents to expand in the following Insiders build:

Version: 1.34.0-insider (user setup)
Commit: 63655183ba5305b70ffaf1327b8a4708f0a79bd9
Date: 2019-04-26T05:21:48.183Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.16299

The same VSCode workspace connects OK from 1.33.1.

This line from your log file may be relevant:

TRACE fs.ftp.ftpfilesystem.forconnection() - [26/Apr/2019:11:18:53 +0000] "(Error) Expected marks [object Object] instead of: 227 Entering Passive Mode (38,105,105,87,234,130).

Perhaps a consequence of a recent VSCode change that means stat and readFile calls may now run concurrently. See microsoft/vscode#72891 (comment)

@bpasero
Copy link

bpasero commented Apr 27, 2019

@gjsjohnmurray the readFile will only ever trigger when you click on a file. Since here we cannot even get the root to expand in the file explorer, there is no readFile involved yet.

@gjsjohnmurray
Copy link
Author

@bpasero - VSCode issues several stat and readFile calls as soon as a workspace is loaded, looking for .vscode/settings.json and friends.

@bpasero
Copy link

bpasero commented Apr 27, 2019

Yeah that is true, and that changed. As a file system provider you should be aware that you might get called for files that do not exist.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants