• lil_baka@ani.social
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 days ago

    I kinda agree, but it can also be pain in the ass. For example, using flatpak VS Code is massive pain in the ass. You end up needing to do tons of tricky workarounds for all kinds of language server/formatter/etc addons to work properly. It’s okay when you only need to do it once for a single language (Rust, for example), but it becomes very annoying when every new addon you install is highly likely to need you to write some flatpak-spawn based wrapper scripts in ~/.local/bin or whatever extra userspace bin folder you added to your PATH.

    • hirihit640@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 hours ago

      Fair point, I’ve struggled with VSCode as well. I started looking into using a local container with VSCode’s remote dev add-ons (the ones you use for sshing into a remote machine but in this case it would just be a local container), and then installing all language servers and tooling inside the container. Do you have any experience with that?

      • lil_baka@ani.social
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        22 hours ago

        I only used something similar to mess around with Hytale modding a bit, but it was only easy because there was fully ready-to-use premade solution. But in general, if you’re willing to go that way, I think the most simple option would be to create a distrobox with ubuntu/debian/fedora/arch (depending on which distro covers things you need better), install vs code there (using native package manager of given distribution), and then distrobox-export VS Code from that distrobox. Then you can simply manage everything inside of distrobox using full power of distribution you chose. To make things even better, distrobox has automatic passthrough of most hardware. For Nvidia in particular, you need to pass flag “–nvidia” when doing “distrobox-create”. After that, you can even use game engines like Unity or Godot from distrobox with full GPU passthrough.