hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.
https://sprig.hackclub.com
MIT License
869 stars 1.01k forks source link

Flashing fails on Linux #1959

Closed DillonB07 closed 2 weeks ago

DillonB07 commented 1 month ago

Describe the bug Using Arch Linux with a user added to the dialout group, I cannot flash a game to my Sprig.

To Reproduce Steps to reproduce the behavior:

  1. Plug in your Sprig.
  2. Make sure your user is part of the dialout group (usermod username -aG dialout)
  3. In a Chromium based browser (I used Chromium 126.0.6478.126 (Official Build) (64-bit)) attempt to flash the game after selecting the Pico.
  4. Nothing happens on the Sprig. The console shows that the serial port could not be opened.

Expected behavior Game to flash successfully like on macOS

Actual behavior
Warning triangle displayed next to the button and the logs shown below in the console.

Screenshots image

Colack commented 1 month ago

Are you running the flatpak or pacman version of Chromium? Also, if you don't mind installing it on your computer, I've gotten Brave to work most of the time with smaller games, and Chrome works 100% of the time, but I don't know if you are willing to install that.

DillonB07 commented 1 month ago

I tried flatpak & pacman versions (also chrome) none of which worked. Seems arch uses a different group - uucp instead of dialout so will test that when I get chance!

Colack commented 1 month ago

@DillonB07 did it end up working?

DillonB07 commented 1 month ago

Yes, going to make a quick PR to explain the steps