There isn’t one generated. I was opening the toolbox from the Dev Containers sidebar then opening the folder. I’ve never used dev containers before, it’s mostly Atomic Desktop forcing me to use them (without a manual).
That one allows me to enter as my user instead of root. However, GLFW cannot initialize in that environment, and thus my project can’t run. An additional (smaller) problem is that I have to write that magic config file for every new workspace I create for that toolbox.
Right, I was responding specifically to your first point, about the lack of linting etc.
I suspect the problem creating a window might be that the Wayland socket from the toolbx isn’t properly forwarded to the host, but not sure why that doesn’t work here. Perhaps you want to post some logs of the error, and others may have some ideas.
Just in case, you can give distrobox a try. It’s based on toolbox and is available in the Fedora repo. It supports the VSCode Flatpak and inside distrobox installation (But NOT native installation). You can connect VSCode flatpak to a distrobox using Dev Containers and the developer provides a guide/script that manages environment variables and solves the issue mentioned above.
Could you share more details? I just created a new one, and everything looks fine on my end.
$ distrobox create --image registry.fedoraproject.org/fedora-toolbox:42 --name test
Creating 'test' using image registry.fedoraproject.org/fedora-toolbox:42 [ OK ]
Distrobox 'test' successfully created.
To enter, run:
distrobox enter test
$ distrobox enter test
Starting container... [ OK ]
Installing basic packages... [ OK ]
Setting up devpts mounts... [ OK ]
Setting up read-only mounts... [ OK ]
Setting up read-write mounts... [ OK ]
Setting up host's sockets integration... [ OK ]
Integrating host's themes, icons, fonts... [ OK ]
Setting up distrobox profile... [ OK ]
Setting up sudo... [ OK ]
Setting up kerberos integration... [ OK ]
Setting up user's group list... [ OK ]
Setting up existing user... [ OK ]
Ensuring user's access... [ OK ]
Container Setup Complete!
fish: Unknown command: bat
~/.config/fish/config.fish (line 5):
bat -pp $todo
^~^
from sourcing file ~/.config/fish/config.fish
called during startup
$
Did you check the VSCode integration guide? I remember it doesn’t work well if VSCode is installed natively with rpm-ostree. You can either install VSCode inside the distrobox or install the VSCode Flatpak and follow the setup here:
The flathub version doesn’t even have a proper terminal shell, which is why I didn’t use it. I tried just now with the guide, and it can’t find any containers running on my system.
Yes, the Flatpak version does not have access to the host system’s terminal shell. But if you’re doing development inside the container, you usually only need access to the container’s terminal shell.
In the worst case, you can just install everything on the host system using rpm-ostree. Sorry, I can’t help much further.
Is it VScode or Vscodeium?
the original VScode comes with all the telemetry etc.
I managed to install Vscodeium in a toolbox container (in fact, i created a separate one for dev tools) and it run perfectly fine out of it even in fedora 42 a year ago, I don’t remember any issues. However now I use the flatpak version (from Flathub). Is there a reason you want to run it out of a container, or perhaps the flathub version could be easier?
For example, you could configure container port pass-through and ssh from the flatpak vscode into the container as you normally would into a remote server?
I am starting with the original vscode. I know there are telemetry, I just need to make sure my setup works before trying other versions.
For reason why I need non-flatpak vscode: I need vscode to work with my host system because I use it more than for containerized software development. I don’t want to use the sh shell inside flatpak when I am not working with a container with no autocomplete.