I am using Cursor on Win11/WSL2. After I upgrade Cursor to latest version (0.45.11) today, the WSL extension (ms-vscode-remote.remote-wsl,
0.81.8) cannot work anymore.
Click ‘Ctrl’+‘Shift’+‘P’, run ‘WSL: Connect to WSL’, it prompted the error of “command ‘remote-wsl.connect’ not found” as picture attached.
I have tried this but it does not fix the problem.
Before running command (in WSL) ‘/mnt/c/Users/■■■/AppData/Local/Programs/cursor/resources/app/bin/cursor /path/to/work-dir’, the command ‘which cursor’ returns ‘/mnt/c/Users/■■■/AppData/Local/Programs/cursor/resources/app/bin/cursor’.
After running above command, it downloads and installing VS Code Server for x64 in ‘~/.cursor-server/bin/f5f18731406b73244e0558ee7716d77c8096d150/’, which caused another error:
$ cursor .
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module '/home/■■■/.cursor-server/bin/f5f18731406b73244e0558ee7716d77c8096d150/out/server-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.18.1
Hi there. Thanks for your post and trying to help. I did what you proposed, but I still get the following error in the console:
[2025-02-12 11:27:12.565] Extension version: 0.88.5
[2025-02-12 11:27:12.566] L10N bundle: none
[2025-02-12 11:27:12.567] WSL extension is supported only in Microsoft versions of VS Code
Any tips? I am going crazy because I can’t use WSL in Cursor yet. Appreciate any help.
It seems that you are running VS code of Linux version. Have you installed vscode in WSL2? If yes, maybe you need to uninstall it first. After install VS code/cursor in Windows, it should find the windows version app in WSL2. Please try ‘which code’ or ‘which cursor’, this should be located at path like ‘/mnt/c/User/■■■/app/bin/cursor’.
Many thanks. After uninstalling Cursor and deleting .cursor and cursor folders from %appdata% and %userprofile% and then reinstalling it seems to work now. I have the following output when using which cursor