From 1e127c3968205f0e42faa4eb5b894cea296346d0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 20 Nov 2026 03:23:49 -0300 Subject: build: pardes-isolate and `zig build run-isolated` are deleted (pardes-build-2 item 1; P31's Q3, decided on the evidence 2026-11-20): the terminal's pardes compiled with `isolated = true`, a build whose host supplied only the terminal (no file, pty, clipboard, LSP or watch calls: tui.zig's second Host table) and whose filesystem was absent (`fs.platform_has_fs` false: every libc path compiled away, the virtual tree and the embedded sources alone), arriving on `src/pardes.zig` read out of the binary when no file was named; it did not compile on the base (`zig build run-isolated -Dplatform=tui -- version`: core/builtins.zig:510 `error.FileNotFound` not in `fs.readFile`'s set, core/ninep/ctl.zig:1298 `error.OutOfMemory` not in `Dir.refresh`'s set) and no test, gate or document ran it; out with it: its module set and step in build.zig, `Core.isolated` and the `isolated` option in build/core.zig, `pardes.isolated` (core/root.zig), `fs.platform_has_fs` and the 60 guards on the two (whole lines in core/Stream.zig, Dir.zig, Plumb.zig, fs.zig, look.zig, Query.zig, edit_cmd.zig, dump.zig, test/fs_namespace.zig, test/terminal.zig; a term of a condition in dev/file_watch.zig's six tests, fs.zig's readFileLimit, whose virtual branch now takes `/virtual/` alone, and one Stream.zig test), Stream.zig's search failing at once without a filesystem, tui.zig's `isolated_vtable`, runtime/main.zig's `src/pardes.zig` default (a file that does not exist), and the mention in docs/next-terminal.md; the changelog says it is gone; build.zig and build/ 2,996 -> 2,981 lines; `pardes version`'s semantics line did not move (`isolated` was never in its text): 8b6382fddba7b382 on tui, gui, the bare build's two, both statics and FreeBSD (gpu/tree2's base binary says the same), 0520895ac88d25ad with -Dtree-sitter=minimal; every shape configures (12) and builds (tui, gui, bare, static musl and gui, FreeBSD, -Dtree-sitter=minimal, the macOS library for Linux and aarch64-macos), -Dtree-sitter=disabled failing as on the base (core/indent.zig:48); tui core-test 856/1006 (150 skipped), shell-test 1046/1049, pane-test 183/184, behaviour-test 275/275 and -- --replay 275/275, term-test 17/17, kitty-test 45/45, addon-test 5/5, lib-test, hxlib 538 cases 0 mismatches, process-test 1 of 144 failed (pagercolor, on the flaky list: passes alone, 931 ms), gui unit-test 1643/1647 (the perf check's BaselineHarnessMismatch, the base's); load 6-17 on 16 cores Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- dev/file_watch.zig | 12 ++++++------ dev/tui/tui.zig | 10 +--------- 2 files changed, 7 insertions(+), 15 deletions(-) (limited to 'dev') diff --git a/dev/file_watch.zig b/dev/file_watch.zig index 84f37c81..6340d189 100644 --- a/dev/file_watch.zig +++ b/dev/file_watch.zig @@ -679,7 +679,7 @@ pub fn identify(io: std.Io, path: []const u8) !Identity { } test "a restored file is watched again: one clean takes what its file became since the dump, one unsaved keeps its text" { - if (comptime !supported or !filesystem.platform_has_fs) return; + if (comptime !supported) return; const io = std.testing.io; const gpa = std.testing.allocator; for ([_]bool{ false, true }) |dirty| { @@ -721,7 +721,7 @@ test "a restored file is watched again: one clean takes what its file became sin } test "a Zerox twin's save wakes its other twin's watch, which says nothing: their text is the file's already" { - if (comptime !supported or !filesystem.platform_has_fs) return; + if (comptime !supported) return; const io = std.testing.io; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); @@ -753,7 +753,7 @@ test "a Zerox twin's save wakes its other twin's watch, which says nothing: thei } test "ordinary file watches still reconcile changes between open and watch" { - if (comptime !supported or !filesystem.platform_has_fs) return; + if (comptime !supported) return; const io = std.testing.io; const gpa = std.testing.allocator; var tmp = std.testing.tmpDir(.{}); @@ -788,7 +788,7 @@ test "ordinary file watches still reconcile changes between open and watch" { } test "a kind's pane whose file changed between its open and its watch opens again from it" { - if (comptime !supported or !filesystem.platform_has_fs) return; + if (comptime !supported) return; const io = std.testing.io; const gpa = std.testing.allocator; var tmp = std.testing.tmpDir(.{}); @@ -817,7 +817,7 @@ test "a kind's pane whose file changed between its open and its watch opens agai } test "explicit OS directory watches refresh prefix-preserving listings" { - if (comptime !supported or !filesystem.platform_has_fs) return; + if (comptime !supported) return; const gpa = std.testing.allocator; const core = try pardes.Pardes.init(gpa, .{ .tty_only = true }); defer core.deinit(); @@ -930,7 +930,7 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save" } test "a watched file deleted wakes the watch at once, and its pane says so" { - if (comptime !supported or !filesystem.platform_has_fs or builtin.os.tag != .linux) return; + if (comptime !supported or builtin.os.tag != .linux) return; const io = std.testing.io; const gpa = std.testing.allocator; var tmp = std.testing.tmpDir(.{}); diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index 5c1945e6..e4e9fd10 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -1230,17 +1230,9 @@ const Shell = struct { } fn host(s: *Shell) host_io.Host { - return .{ .ctx = s, .vtable = if (comptime pardes.isolated) &isolated_vtable else &vtable }; + return .{ .ctx = s, .vtable = &vtable }; } - const isolated_vtable: host_io.Host.VTable = .{ - .wait_input = waitInput, - .now = clockNow, - .present = presentFrame, - .post_present = postPresent, - .poll_frame = ownFrame, - }; - const vtable: host_io.Host.VTable = .{ .wait_input = waitInput, .now = clockNow, -- cgit v1.3