Closed asolove closed 3 weeks ago
Your pyret-lang checkout is stale, I think: that vector-util module was added recently with the matrices PR, and recent cpo builds definitely include it, along with the matrices library and those functions whose names seem unbound. Pull pyret-lang to its most recent #horizon, and you should be fine.
I love this theory and it looks like by checking it out fresh and symlinking, that seems to work.
But I'd love to figure out why the Readme steps, which used to work, and which claims to be fetching pyret-lang#horizon via npm dependencies, don't work.
On Fri, Jul 5, 2024 at 8:56 AM Ben Lerner @.***> wrote:
Your pyret-lang checkout is stale, I think: that vector-util module was added recently with the matrices PR, and recent cpo builds definitely include it, along with the matrices library and those functions whose names seem unbound. Pull pyret-lang to its most recent #horizon, and you should be fine.
— Reply to this email directly, view it on GitHub https://github.com/brownplt/code.pyret.org/issues/545#issuecomment-2210830594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACCL747XNUTZ2TYPQEHZLZK2JWLAVCNFSM6AAAAABKNECL3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQHAZTANJZGQ . You are receiving this because you authored the thread.Message ID: @.***>
Chances are your package-lock file specified a specific checkout for pyret-lang, so you didn't actually update that package. Chances are you mostly haven't been updating it, then, but since there hadn't been (m)any build-order-breaking changes, it just was never noticed? I get bit by this silent non-updating more often than is pleasant...
It seems to me like using a fresh checkout of horizon and then following the Readme does not currently build.
What I did
What happened
The
npm run build
results in:Hypotheses
pyret-lang
checkout, and perhaps this problem doesn't occur for folks who have existing phaseX pyret-lang builds?Things I did to try to fix it
vector-util
from the CPO dependencies list incpo-builtins.js
. Afterwords, I get the same error but for the modulesmatrix-util
andmatrices
. If I remove those, then the error changes to: