Codespaces + paste-a-link rough spots

Aperta
#246 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@connabyss ci sta già lavorando.

Dal 14/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Found by trying the new Codespaces button and bite --free <link> (#244, #245) in a real codespace on 2026-11-14. These get fixed together in one PR.

  1. "Do you trust the authors?" pop-up before the terminal. The codespace opens in Restricted Mode, and the terminal waits behind a "Trust Folder & Continue" dialog. A first-time visitor hits a scary security question before seeing Bite at all.
  2. The welcome hint prints its own command line. postAttachCommand in .devcontainer/devcontainer.json echoes echo; echo 'Bite is installed. Try:'; ... once as the command itself before the hint, so it looks like a glitch. Moving it into a small script (or waitFor/postStartCommand output) would print only the hint.
  3. Paste-a-link on a project that needs installing says "tests already fail". bite --free --last 10 https://github.com/pallets/click stops with importlib.metadata.PackageNotFoundError: No package metadata was found for click, because Click has to be installed first. Bite should say the plain fix: "this project needs installing first: cd && pip install -e .", and then the same Bite line again.
  4. The demo's last line doesn't fit Codespaces. bite --demo ends with "drag your project's folder into this window", which you can't do in a browser terminal. In a codespace (CODESPACES=true), suggest bite --free https://github.com/OWNER/NAME instead.

Done when: a fresh codespace opens straight to a terminal showing only the hint, bite --free on the Click link either works or prints the install line, and each fix has a test that fails without it.

Lingua principale
Python
Stelle
1
Fork
5
Merge medio
1h 19m
PR unite (30g)
191

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di connabyss/bite

Tutte le issue di connabyss/bite

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.