‹ BackHN Continuity

Thread

Zed DeltaDB

514 points · 298 comments · ahamez

  1. yza · · focus · HN ↗
    Why develop this when the core editor is almost unusable? On Linux wayland, copypaste is broken, the file manager is laggy and snippets do not trigger before the heavy hint logic is done. This is just on top of my head, the list is long
    1. JaggedJax · · focus · HN ↗
      I had to stop using Zed because of this issue (which persists despite being closed): <a href="https:&#x2F;&#x2F;github.com&#x2F;zed-industries&#x2F;zed&#x2F;issues&#x2F;38109" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zed-industries&#x2F;zed&#x2F;issues&#x2F;38109

      I can&#x27;t use an editor where the file contents I&#x27;m being shown don&#x27;t match the reality of the file. I guess this issue doesn&#x27;t affect most people somehow, but in the age of CLI agents I&#x27;m not sure how more people aren&#x27;t running into it.

      I was really enjoying Zed for a short while before I ran into this fundamental issue.

      1. honeycrispy · · focus · HN ↗
        I do not have this issue. (Yes, I am on Linux&#x2F;Wayland)
        1. JaggedJax · · focus · HN ↗
          All I can say is it&#x27;s the only editor I&#x27;ve ever used with this type of issue and unfortunately it&#x27;s a deal breaker for me. I can get by with any other editor even if they aren&#x27;t my favorite, but only Zed made me realize that the most important thing an editor can do for me is accurately show me files.
          1. nirvdrum · · focus · HN ↗
            Have you checked your fs.inotify.max_user_watches value? Maybe your value is too low and Zed can&#x27;t watch the files that are changing. I know the JetBrains IDEs need the default to be increased on Linux because they detected it and prompted me to increase it.
            1. AlotOfReading · · focus · HN ↗
              Even if that&#x27;s the case, max_user_watches is never less than 8k unless you&#x27;ve set it lower for some reason. If the editor is prioritizing currently open files as it should, there should basically never be a problem even if project sync suffers.
              1. nirvdrum · · focus · HN ↗
                The limit is per-user, not per-editor. Every process under your UID shares the same max_user_watches pool. So the editor&#x27;s &quot;prioritize open files&quot; behavior can&#x27;t help when a resident daemon like Watchman has already consumed the budget. Zed doesn&#x27;t error out when it hits the watch limit. It logs a warning and periodically retries to establish the watch. Until it can do so, external file changes aren&#x27;t reflected in the editor.

                I just checked my workstation and found Watchman alone holds ~556K watches across 34 roots. It keeps those watches even after the tool that spawned it disconnects. Notably, I&#x27;ve never invoked Watchman manually -- other tools do. And the 8k floor isn&#x27;t much of a floor. My nixpkgs checkout alone is 37,686 directories, 4.6x that.

                Truthfully, I had no idea Watchman stays resident and accumulates watched roots. But, that&#x27;s kind of the point. It&#x27;s a very easy thing to miss.

        2. everforward · · focus · HN ↗
          Are you editing outside Zed? That’s the only time I see this issue.

          Eg Pi has its own tools for editing files and ignores the ones Zed sends over ACP. If I used Zeds AI pane to have Pi change a file, I can see the edits in the ACP window but the editor view doesn’t update.

          I end up having to use something from the command palette to force refresh it, something like “Editor: Reload File”.

          It happens to me across Windows, OSX, native ArchLinux and ArchLinux via WSL.

      2. the__alchemist · · focus · HN ↗
        I stopped using it due to this issue as well; too dangerous&#x2F;risky.
      3. puika · · focus · HN ↗
        I&#x27;m pretty sure I also ran into this very recently in linux wayland while working with symlinked files. It would show an empty file or show the old content if you recreate the symlink or modify the file externally
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.