Repository navigation
Closed
Labels
bugSomething isn't working
Description
Found by a read-and-run sweep of this area on 2026-11-09. Each item was reproduced by a finder and checked by a second agent that tried to refute it.
Status key: fix drafted = a change exists on a local branch (fix/bug-sweep) but is not reviewed or merged. refuted = the second agent could not confirm it; kept here for a human decision.
- F1 (fix drafted)
python/src/main.py:88: EOF during a lesson (or after an invalid menu choice) ends in a raw traceback. Theexcept Exceptioncatches the EOFError, prints 'Something went wrong', then calls ui.wait_enter(), which raises EOFError again, uncaught. This is the same bug security/src/main.py had. - F2 (fix drafted)
security/src/main.py:78: The invalid-option branch calls ui.wait_enter() with no EOFError guard, so EOF right after a bad menu choice gives a traceback. The module-run EOF case was fixed here, but this path was not. - F3 (fix drafted)
python/src/lessons_advanced.py:77: Module 11 PART 3 says the file Python runs gets name == 'main', then prints 'name' from inside lessons_advanced.py. When run through main.py that is 'lessons_advanced', so the live 'Running right now' line contradicts the text above it and the module's own exercise question. - F4 (fix drafted)
git/src/lessons_basics.sh:0: Module 8 PART 2 runsgit merge feature-awithout an identity override. On a machine with no user.name/user.email (a fresh install, the course's target audience) git refuses the non-fast-forward merge before it starts. The conflict never appears, no markers show up, and the lesson text and the following add/commit steps describe a state that does not exist. Every other commit/merge in the course passes-c user.name=... -c user.email=.... The file is git/src/lessons_more.sh, lesson_08_branches, line ~268. - F5 (fix drafted)
git/src/ui.sh:161: ui_new_repo returns $sandbox/project but lessons clean up with ui_sandbox_cleanup "$repo", which removes only project/. The mktemp parent directory (codelearner-git.XXXXXX) is left behind. Modules 8, 9 and 10 each leave one or more empty directories in $TMPDIR on every run. - F6 (fix drafted)
git/src/main.sh:83: Menu choice is tested with bash arithmetic on a digit string, so a leading zero is parsed as octal. '08' and '09' make bash print a '((: 08: value too great for base' error on stderr, and '010' silently launches module 8. The Python courses accept '08' as 8. - F7 (fix drafted)
git/src/ui.sh:84: ui_question normalizes answers withecho | tr | xargs. xargs treats quotes and backslashes as syntax, so an answer containing an apostrophe prints an xargs error into the lesson screen. Quoted answers are also silently accepted as correct. - F8 (fix drafted)
git/src/lessons_more.sh:338: Module 9 annotated-tag commands override commit.gpgsign but not tag.gpgSign. A user with tag.gpgSign=true (or forceSignAnnotated) gets a gpg failure in PART 1 and PART 2 instead of the lesson. - F9 (refuted)
git/src/lessons_more.sh:391: Module 9 says 'here is a real one' and runsgh release listwhenever gh is installed. gh needs authentication even for a public repo, so with gh installed but not logged in (or offline) the lesson prints an auth or network error where the release list should be. - F10 (fix drafted)
git/src/lessons_more.sh:483: Module 10 PART 2 text says 'Four things matter in that file' and then lists five (on, jobs, steps, uses, run). A line in the same block also starts with a stray ' ,' (' , no separate trigger command'). - F11 (refuted)
install.sh:118: The generated wrapper (and the .desktop Exec line) embeds the prefix unescaped inside double quotes in an unquoted heredoc. A prefix containing a double quote or $ breaks the wrapper, and a relative --prefix writes a relative path, so the wrapper only works from the directory where install.sh was run. The comment at line ~129 claims 'no character in the path needs escaping', but Exec= needs \ " ` $ escaped and % doubled. - F12 (fix drafted)
install.sh:15:--helpprints its text withsed ... "$0", which fails when the script is piped ($0issh), though the README documents thecurl ... | shform. It prints a sed error, no help, and still exits 0. - F13 (refuted)
install.sh:87: Confirmed: the tarball is not checked against any checksum or signature before it is extracted and installed. Integrity depends on TLS alone. The release workflow publishes no checksum file, so a fix needs a change in release.yml too. - F14 (refuted)
install.sh:1: The Linux bundle and install.sh do not ship the Git course, but the launcher lists 'Git' on Linux. Installed users see "Git's course has not been built yet. Runmakeinside its folder first." The README lists Git as a course and says only that Python, JavaScript, Java and Git 'need no build step'. - F15 (fix drafted)
python/src/lessons_io.py:284: Module 13 only catches URLError, and PART 3 states 'A timeout raises the same way -- urlopen wraps it in URLError'. That is true only for a timeout during connect. A server that accepts the connection but does not answer within the timeout makes urlopen raise a bare TimeoutError out of getresponse(), so the lesson aborts (main.py shows 'Something went wrong: timed out'). Same unwrapped path in security lesson 1 (_live_request), whose challenge solution also catches only URLError.
Not run in this sweep (tool missing or out of scope):
- micropython and mpy-cross are not installed, so micropython/check-course.py, check-solutions.py and check-asm.py were not run. Claims that depend on the real unix port were not verified: ljust missing, os.name AttributeError, bytearray store masking (raw[0]=256 keeps the low 8 bits), SyntaxError on asm_thumb, native/viper timings, and the NameError text. A pip install of mpy-cross was attempted and denied by the permission classifier.
- MicroPython lessons were run only under CPython 3.14.8 with a stub micropython module and sim.install(). Modules 5-8, 11 and the challenge solutions behaved as the lessons claim (bounce 3 presses vs 1, ticks wrap output, robot table ending in STOP, all challenge outputs matched except module 1's 'micropython', which prints 'cpython' here). Module 4 raises ValueError on raw[0]=256 under CPython, which is not MicroPython behaviour.
- install.ps1 could not be run or parsed (no pwsh). Findings about it would be guesses, so none are reported. Whether
irm | iexaccepts the top-level [CmdletBinding()] param block andreturnis unknown. - The README claim that install.sh was run end to end against a real release was not checked. install.sh was only tested with a fake curl and a hand-built tarball (default prefix, prefix with a space, prefix with a quote, prefix with $, relative prefix, --uninstall, --help, sh -n and dash -n). No real download.
- shellcheck is not installed. The git shell files were checked only with bash -n, and install.sh with sh -n, dash -n and bash -n, all clean.
- Git course modules were run with piped blank input in a scratch TMPDIR with HOME and GIT_CONFIG_GLOBAL isolated (git 2.55.0). Module 9's
gh release listran unauthenticated, so the real release list output was not seen. A pre-filled pipe is not the real-terminal check CONTRIBUTING asks for. - Network lessons (python module 13, security modules 1 and 2) ran against the live internet on this machine and passed. Live results (example.com headers, jsonplaceholder) can drift and were not run offline, so the captured fallback text was not exercised.
- Security module 2's embedded test certificate has notBefore 2026-11-09 13:58:03Z (generated today). A machine with a clock earlier than that would fail TLS verification. This was not tested and is not reported as a bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity