kahole / edamagit

Magit for VSCode
https://marketplace.visualstudio.com/items?itemName=kahole.magit
MIT License
1.13k stars 66 forks source link

Magit status does not open files in WSL / Windows #283

Open jsb05 opened 10 months ago

jsb05 commented 10 months ago

I run VS Code natively on Windows as recommended and connect to Ubuntu via WSL extension. All my code projects lie within WSL. Magit status buffer opens but navigation to a file and thus diffing doesn't work. The problem doesn't exist for files on Windows. The error message is as follows:

cannot open vscode-remote://wsl%2Bubuntu/layers/%2Bemacs/org/packages.el. Detail: Unable to read file 'vscode-remote://wsl+ubuntu/layers/+emacs/org/packages.el' (Error: Unable to resolve nonexistent file 'vscode-remote://wsl+ubuntu/layers/+emacs/org/packages.el')

Any idea how to solve this issue? I already tried to reset VS Code by deleting ~/.vscode-server on ubuntu, reinstalling Vspacecode extension and restarting the application. If it helps, VS Code was installed via scoop in Windows.

jsb05 commented 10 months ago

For a test, I uninstalled VS code completely and installed VS Code natively on Windows using the installer from the official website. Then installed only edamagit and opened local emacs.d folder on Windows. Magit-status works as expected but files still can't be visited/opened. Please check the attached image. So it's not just WSL.

Screenshot 2023-11-13 220516