posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.82k stars 91 forks source link

Add support for connecting Positron to Windows Services for Linux (WSL) Ubuntu #4366

Open jmcphers opened 3 months ago

jmcphers commented 3 months ago

We recently added support to Positron for connecting to Linux hosts over SSH; however, this support does not currently extend to WSL. Many Windows users prefer to run R and Python in WSL Ubuntu instances.

OpenVSX includes an extension that can be used to do this for VSCodium:

https://github.com/jeanp413/open-remote-wsl

However, like Open Remote SSH, it would need some modification to work with Positron.

[!NOTE] This specifically refers to running Positron Desktop natively on Windows, and connecting to a headless server component inside WSL. It doesn't mean running a Positron Server in WSL and connecting via a web browser, or running Positron Desktop itself wholly in WSL.

GitHunter0 commented 1 month ago

WSL connection is a very helpful feature. Cursor IDE managed to make Microsoft WSL extension to work, I'm not sure but maybe you can use it as a reference.

kv9898 commented 1 week ago

This is indeed a super needed feature. Would it be possible to move it back to triage?

I noticed that I could use the open-remote-wsl extension normally if I manually set the positron version in the server download url template:

https://github.com/posit-dev/positron/releases/download/2024.11.0-140/positron-reh-${os}-${arch}-2024.11.0-140.tar.gz

I adapted the download url temmplate in the open-remote-wsl extension in my fork and published it on Open VSX Registry so it can be downloaded: https://open-vsx.org/extension/kv9898/open-remote-wsl

Open Remote WSL