Skip to content

Broken symlinks not shown in file tree #25181

@mattfbacon

Description

@mattfbacon

Summary

Broken symlinks are not shown in the file tree (aka left dock)

Steps to trigger the problem:

  1. Create a broken symlink (mkdir abc; cd abc; ln -sr a b)
  2. Open zed (zed .)

Actual Behavior:
Broken symlink is not shown

No files are visible in the file tree

This log message is printed:

[ERROR worktree] error reading target of symlink "/tmp/abc/b": No such file or directory (os error 2)

Expected Behavior:
Broken symlink is shown, with some kind of indication that it is broken

Zed Version and System Specs

Zed: v0.176.0 (Zed Dev 2d1a028)
OS: Linux Wayland arch unknown
Memory: 31.1 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (ADL GT2) || Intel open-source Mesa driver || Mesa 24.3.4-arch1.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:file finderFeedback for file management, navigation, etcstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions