A tiny fake uname call gets Zed's remote server running on FreeBSD

Lying to Zed to get its remote server running on FreeBSD

A tiny fake uname call gets Zed's remote server running on FreeBSD

Zed has no FreeBSD remote server, so Hayzam spoofed the platform string with a small uname wrapper, letting FreeBSD's Linuxulator run the Linux build. That exposed a kernel regression: a February 2026 NFS fix made the Linux getdents path over-read its buffer, so Zed saw empty folders or silently lost files. His patch, now in FreeBSD 15.2, fixes both getdents and getdents64.

When I tried the quiet way, 112 of my 1,002 files vanished (from the listing) with no warning. A loud error beats a quiet loss I'm pretty sure.
  1. kodoman

    Remote editing can be done without special servers, just ssh. This is good work and quicker but mostly I don't need that performance and just being able to use ssh is nicer.

  2. eddythompson80

    Is there some more work needed for the remote server to just compile for FreeBSD? It seems for the editor itself only audio calls (wtf?) don’t work on FreeBSD

    https://zed.dev/docs/development/freebsd

    Edit: FWIW, it doesn't really build on freebsd

  3. mattanimation

    "Been using VSCode since I was 16"... Dear Lord I'm old.

More from this day

2026-11-14