src/doctor/run.bend fails
raw source on the hub · import ezx@1.8.0.0/src/doctor/run.bend as Run
doctor/run: the interpreter for ez doctor. It reads $CC, $BEND_LIB,
the ledger's text and the lock's text into a World, then loops: it asks
the planner (doctor/plan.bend) what is still open, answers each question,
and adds the answers to the World, until nothing is left to ask. Then it
runs the planner's plan with the lock's effect runner (Run.exec.plan),
which prints each line and exits 1 when the plan fails the command.
A version question runs the program with --version, except bend, which
is asked through run/bend since it has answered the question two ways over
its versions. The library is listed with ls, the sources are read as
ez lock reads them (Run.read.listing), and a package's tree is read
from under BEND_LIB as ez lock reads one there (Run.disk.all), and
never fetched, and a name's file under BEND_LIB/names is read as it
is. None of these writes anything, and the plan writes nothing either. It
decides nothing; that it reads and executes faithfully is EZ-TRUST-2.
10 imports
import Base import 0xead4c7939c9eaca8d47da53b4496b731/main.bend as R import ../run/bend.bend as Bend import ../io/file.bend as F import ../share/args.bend as Args import ../lock/run.bend as Run import ../lock/world.bend as W import ../lock/lock.bend as L import ./world.bend as DW import ./plan.bend as DP
The reader could not load this file (at 0xa4d47e5f0f6044ac1a983d1b051fa47a/src/step.bend:16). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Lost)
- observed : 'Lost'
Location:
15 | Kept{value: A}
16>| Lost{line: String}
| ^^^^
17 |