-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
I'm pressed for time right now, but it would be good if someone could integrate the instructions below into the docs.
- Install VS Code flatpak via Bazaar. (NOT VSCodium)
- From terminal create a new distrobox.
$ distrobox create --name expresslrs --unshare-netns - Run VSCode on host.
- Install Microsoft Dev Containers extension.
- Get the official distrobox script for vscode integraton.
mkdir ~/.local/bin
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/extras/podman-host -o ~/.local/bin/podman-host
chmod +x ~/.local/bin/podman-host
- In VS Code set docker path to
/home/<username/.local/bin/podman-host(replace<username>with your linux username) - Install PlatformIO extension.
- Restart VS code when installation completes.
- In VS Code, click the remote explorer button in the sidebar.
- Click the right arrow
->button next to theexpresslrscontainer, wait for it to finish. - Either clone the expresslrs repo using git or open an existing ELRS git checkout.
- Click the Platform IO button in the sidebar.
- Open the src folder in the ELRS git local workspace, wait for platform IO to open the project. it will install some dependencies.
- Continue development as normal, e.g. pick an env target then press build from the status bar at the bottom of the window.
Here's what it should look like after a running build:
If you need to run terminal commands you can use the PIO cli from within VS Code, or from a terminal you can run distrobox enter expresslrs and cd to your checkout and run commands as normal, as below.
References/Links:
- VS Code flatpak - https://flathub.org/en-GB/apps/com.visualstudio.code
- Distrobox - https://github.com/89luca89/distrobox
- Distrobox VS Code integration - https://github.com/89luca89/distrobox/blob/main/docs/posts/integrate_vscode_distrobox.md
- Bazzite - https://bazzite.gg/
- Fedora atomic desktops - https://www.fedoraproject.org/atomic-desktops/
I tested this running on Bazzite (20260101, Fedora 43).
Metadata
Metadata
Assignees
Labels
No labels