CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.84k stars 1.39k forks source link

Unable to use SourceTrail with VSCode and WSL #1207

Open GomerOfDoom opened 3 years ago

GomerOfDoom commented 3 years ago

I am having trouble connecting SourceTrail to VSCode in remote mode to WSL.

My situation is as follows:

I have a linux distro (Ubuntu) set up in WSL for my development. I use VSCode in Windows in remote mode (i.e. I am running VSCode as described here: https://code.visualstudio.com/docs/remote/wsl).

I open SourceTrail and attempt to connect from VSCode through the command pallete (CTRL+SHIFT+P), and then "Sourcetrail: (Re)start Server"

Unfortunately, at this point, I get the error in the lower right corner of VSCode: "Sourcetrail - Can't send message: is Sourcetrail running?"

I suspect that the VSCode server (which is running in Ubuntu under WSL) is looking for Sourcetrail locally (i.e. it's looking for Sourcetrail to also be running in Ubuntu under WSL), when Sourcetrail is actually running in Windows.

I did some research and it looks like these pages might be useful: https://code.visualstudio.com/api/advanced-topics/remote-extensions https://code.visualstudio.com/docs/remote/troubleshooting#_extension-tips

Is there a way to fix this? Have I configured things incorrectly? Any help is greatly appreciated! Thanks!

-Paul

mlangkabel commented 2 years ago

Currently Sourcetrail and all editor plugins assume that everything runs locally.