vscode-sshfs
vscode-sshfs copied to clipboard
Massive wait times and freezes
After a update it seems like this extension causing massive wait time and freezes when working in VS Code. I'm mainly using this extension to connect to our servers, and editor our codes.
But it seems like after an update that the extension i causing the VSC to freeze up for several seconds like 10-15, where the whole editor becomes usable. At first i thought it others recently installed extensions, but have deactivated all other extentions right now and the issue stills persits.
i have screenshot of the process for when freeze happens, and the console log.
WARN Ignoring the error while validating workspace folder ssh://srv02/var/www/vhosts - ENOPRO: No file system provider found for resource 'ssh://srv02/var/www/vhosts'
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.remote-repositories' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.jupyter' wants API proposal 'notebookControllerKind' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:441 ERR Extension 'github.copilot' appears in product.json but enables LESS API proposals than the extension wants.
package.json (LOSES): inlineCompletionsAdditions, interactive, terminalDataWriteEvent
product.json (WINS): inlineCompletionsAdditions
console.ts:137 [Extension Host] [vscode-sshfs] Debug mode set to false
T @ console.ts:137
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: ENOENT: no such file or directory, scandir '/var/www/vhosts'
T @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: ENOENT: no such file or directory, scandir '/var/www/vhosts'
T @ console.ts:137
log.ts:441 ERR ENOENT: no such file or directory, scandir '/var/www/vhosts': Error: ENOENT: no such file or directory, scandir '/var/www/vhosts'
notificationsAlerts.ts:42 Error handling readFile for: ssh://srv02/var/www/vhosts/pyproject.toml ssh://srv02/var/www/vhosts/pyproject.toml
c @ notificationsAlerts.ts:42
log.ts:421 INFO [perf] Render performance baseline is 37ms
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421 INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:441 ERR Error: Aborted onWillSaveTextDocument-event after 1750ms
at mainThreadSaveParticipant.ts:37:18
log.ts:421 INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421 INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:421 INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421 INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:421 INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:293 Extension Host
localProcessExtensionHost.ts:294 Debugger attached.
log.ts:421 INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:421 INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
log.ts:431 WARN No search provider registered for scheme: ssh, waiting
Yes and update, i disabled the extension and installed anther SSH extension and the freezes are gone.
I'm having the same problem. Reverted to version 1.25.0 in VS Code for now and it no longer hangs/freezes.
I'm having the same problem. Reverted to version 1.2.5 in VS Code for now and it no longer hangs/freezes.
you mean of the extension right?
Do you make use of sshfs.configpaths
? Does this also occur with an older version of VS Code, e.g. version 1.74?
The extension has nothing to do with onWillSaveTextDocument
. I assume ssh://srv02/var/www/vhosts
is the workspace URI you're using? The only slow thing I encounter is reading PuTTY sessions and the actual SSH2 handshake.
This issue would be easier to solve with debug logs, so please follow these steps:
- Add
DEBUG_SSH2
to thesshfs.flags
array in VS Code's User Settings (settings.json) e.g."sshfs.flags": ["DEBUG_SSH2"]
- See this issue for more information about adding flags
- If you already have a connection open, close it completely (or even reload the window)
- Go to
Output > SSH FS
and copy the log from there after replicating your bug - While it should censor passwords/passphrases, I recommend checking it for (other) sensitive data first.
(especially since
DEBUG_SSH2
activates some internal logging, which is less likely to be censored)
I'm having the same problem. Reverted to version 1.2.5 in VS Code for now and it no longer hangs/freezes.
you mean of the extension right?
Yes, I used the "Install Another Version" option from the extension's page to revert.
I'm having the same problem. Reverted to version 1.2.5 in VS Code for now and it no longer hangs/freezes.
you mean of the extension right?
Yes, I used the "Install Another Version" option from the extension's page to revert.
did the same but still freezing - seems to be better as the current version but not yet solved on my debian box
here is the log file log.txt
Same issue. Since I installed the latest version of SSH FS (1.26.1), copying/pasting, saving, accessing folders and opening files is very slow. I'll try with 1.26.0.
It is also possible that it comes from the last version of VSC which is in 1.74 and which was updated at the same time as SSH FS
UPDATE : Still slow with 1.26.0
UPDATE : Still slow with 1.26.0
I noticed this issue started with 1.26.0 on my machine. 1.26.1 was no better. Reverting to 1.25.0 seems to be working fine.
I've tried to rollback to 1.25.0... Same issue. It's possible that it comes from last VSC release.
Yeah i had to revert to 1.25.0 and a update for VSC from February for it to behave properly.
I did the same thing and since then I have no problem. VSC 1.76.2 and SSH FS 1.25.0 work fine.
I think VSC version 1.77.x is problematic. But I don't understand why they didn't provide a corrective update. It has been several weeks
I have the same problem. I tried version 1.25.0, but it also causes problems for me. Only version 1.24.1 works without this problem. I noticed that versions 1.25 and 1.26 are incompatible with the Prettier extension, while version 1.24 doesn't have that problem.
Do you already have a plan for when the issue will be addressed?
Same problem here. I rollback to version 1.24.1 and it works like a charm. Window 10 VSCode 1.79.2 A coworker of mine had the same issue on his Window 11 OS, and it fixes the problem too.