SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
543 stars 36 forks source link

Massive wait times and freezes #380

Open bymem opened 1 year ago

bymem commented 1 year ago

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.

Screenshot 2023-04-13 at 14 56 44 Screenshot 2023-04-13 at 14 57 13 Screenshot 2023-04-13 at 14 57 17
 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
bymem commented 1 year ago

Yes and update, i disabled the extension and installed anther SSH extension and the freezes are gone.

toothmang commented 1 year ago

I'm having the same problem. Reverted to version 1.25.0 in VS Code for now and it no longer hangs/freezes.

bymem commented 1 year ago

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?

SchoofsKelvin commented 1 year ago

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:

toothmang commented 1 year ago

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.

axelhuizinga commented 1 year ago

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

bymem commented 1 year ago

here is the log file log.txt

David-COUDRAY commented 1 year ago

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

toothmang commented 1 year ago

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.

David-COUDRAY commented 1 year ago

I've tried to rollback to 1.25.0... Same issue. It's possible that it comes from last VSC release.

bymem commented 1 year ago

Yeah i had to revert to 1.25.0 and a update for VSC from February for it to behave properly.

David-COUDRAY commented 1 year ago

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

Cleanerrr commented 1 year ago

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.

Richardgkmb commented 1 year ago

Do you already have a plan for when the issue will be addressed?

Lsystems commented 12 months ago

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.