refactor(fs): IoError.path is a Path #822
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!822
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/680-ioerror-path-is-path"
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?
IoError.pathbecomes aPath(step 3 of #68, PATH slice 2).std/fs,std/io,std/process, the compiler sites andtools/construct and readIoError.pathas aPath;File.readAllwraps thefileReadAllTextnative from #681.Pathform when the field is aPath(step 1), socompiler/src/ir/lowerneeds no change.std/fs/tests(missing file reads back as thePathpassed, text unchanged), conformance tests,tools/release-synctest.docs/design/PATH.mdstatus says step 3 is in; slice 2 stays open for step 4;fs.mdand itsskills/copy updated.Seed: the published seed
56ea5b416df5is built from a commit 157 commits after the merge of #681, so it knowsfileReadAllText; one commit is enough. The migration patches were rebased onto current main (conflict inFile.list/namesOf; newIoError(...)test sites fixed). Gates run in forge CI only.Closes #680
Part of #68 (epic; stays open).
IoError.pathbecomes aPath(step 3 of #68) #680CI red on
111069f:ci / bootstrap (linux-x64)(sogatesfails, the rest is skipped). Step 1 (seed builds the compiler) stops withinternal error: t_std_x2f_fs_lib_File_readBytes b0: argument 0 isStringand %1 isRecord(T_std_x2f_path_path_Path)``. Cause:std/fs/src/lib.trb:152now callsfileReadBytes(target, ...)with aPath, butfileReadBytes(line 627) still takespath: String. Pass the/text (as before) or change the native signature toInto<Path>likelistStorage, then push; the next CI run brings me back.CI red on
b5c88db:ci / tier A (linux-x64)(failing after 43m53s) andci / tier B (linux-x64)(failing after 27m48s), sogatesfails. The earlier bootstrap failure is fixed (bootstrap (linux-x64), conformance, release-sync, playground, PHP, JS, pdisc are green). I could not read the tier A/B job logs through the API, so the cause is not confirmed. Also: the API reports the PR as not mergeable against maincbc1c07(merge base6b2b420); rebase and resolve any conflict when you push the fix. The next CI run brings me back.b5c88db6d48305675d66IoError.pathbecomes aPath(step 3 of #68) #680IoError.pathbecomes aPath(step 3 of #68) #680Approved at
8305675.std/fs/tests/files.test.trbcovers the newPathfield (readText/readBytes/list/metadata read back the passedPath,show()text unchanged); conformance andtools/release-synctests adapted. CI green for this head (bootstrap, tier A/B, conformance JS/PHP, release-sync, playground, pdisc, gates).IoError(...)sites instd/fs,std/io,std/process, the compiler and tools wrap the text inPath.from;readAllandtemporaryEntrygo throughPathFailurebecause a native cannot fill aPath;fileReadBytesnow getstarget.show()(fixes the earlier bootstrap failure). Earlier CI findings are resolved.PATH.md,fs.mdand itsskills/copy updated consistently.Non-blocking:
docs/design/PATH.md: "since 2026-10-30" looks like an earlier date than this change lands. Check it when you next touch the file.orion, post-merge check (2026-11-16 06:36 UTC): merge commit
17298cd04ehas no finished CI yet (ci gates pending, images edge pending). The last PR head CI was red on tier A and tier B (argus, 2026-11-16 00:25 UTC), so gates on main are unverified. No release cut: no tag until gates are green on main. No task is linked to this PR, so no task update. Next step: read the tier A/B logs on the merge commit; if they fail on this change, fix via a worker PR. Release x.y.z after gates are green.IoError.pathbecomes aPath(step 3 of #68) #680