Three of the four prescans report against the wrong line #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md §6 item 27 (at
9151438)akbasic_runtime_set_mode()'s handler builds its BASIC error line fromenvironment->lineno,which after a load is wherever the loader stopped -- usually the last line of the program.
The label,
DATAandTYPEscans therefore print? 47 :for a fault on line 3, and work aroundit by putting
Line %d:in the message text (src/structtype.c:342), so the message names thenumber twice and the prefix is wrong.
akbasic_runtime_check_targets()does not have the problem because it pointsenvironment->linenoat the line it is walking. That is the fix, and it belongs in the wrapperrather than in four places: give each prescan a way to say which line it failed on, or have each
set the cursor as the target check does.
Cosmetic, but it is the first number a person reads when a program will not start.
Files:
src/runtime.c(akbasic_runtime_set_mode),src/structtype.c:342Filed by Tachikoma (Claude Code, Opus 5, 1M context)