zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.64k stars 2.91k forks source link

Weird File duplication in project panel #11256

Open choco-green opened 5 months ago

choco-green commented 5 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

This is slightly difficult and inconsistant to reproduce

  1. create a folder that is camel case, for example authenticationForm
  2. create a few files within the folder
  3. commit the change to git
  4. change the folder name so that it is pascal case, for example AutenticationForm
  5. make changes to the files within the folder
  6. [Error may happen] a new entry in the "project panel" is created

In terms of reproduction, red zed.log for clues, watch the diff in capitalisation of navbar towards the start of log. The absolute path is reduced to ...

Last notes, Im sure this is largely related to git and macOS (git's core.ignorecase), but is there a better way to handle this error? This should also be on really low priority as it doesn't break anything, other than minor annoyance.

Environment

Zed: v0.132.5 (Zed) OS: macOS 14.5.0 Memory: 64 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

weird things happen, like only showing edited on 1 file but not the other, when they are the same file:

image

Saving on 1 file will also update the other

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

2024-05-01T17:05:08+01:00 [INFO] Language server with id 2 sent unhandled notification eslint/status: { "uri": "...src/components/navbar/authenticatedNavbar.tsx", "state": 2 } 2024-05-01T17:05:08+01:00 [INFO] Language server with id 2 sent unhandled notification eslint/status: { "uri": "...src/components/navbar/unauthenticatedNavbar.tsx", "state": 2 } 2024-05-01T17:05:19+01:00 [INFO] building git repository, .git path in the worktree: ".git" 2024-05-01T17:05:19+01:00 [INFO] building git repository, .git path in the worktree: ".git" 2024-05-01T17:05:19+01:00 [INFO] building git repository, .git path in the worktree: ".git" 2024-05-01T17:05:19+01:00 [INFO] building git repository, .git path in the worktree: ".git" 2024-05-01T17:08:29+01:00 [INFO] Language server with id 2 sent unhandled notification eslint/status: { "uri": "...src/components/Navbar/navbarAnimationWrapper.tsx", "state": 1, "validationTime": 7 } 2024-05-01T17:15:26+01:00 [INFO] Language server with id 2 sent unhandled notification eslint/status: { "uri": "...src/components/Navbar/navbarAnimationWrapper.tsx", "state": 1, "validationTime": 59 } 2024-05-01T17:15:26+01:00 [WARN] Skipping path "/Users/justin/dev/preclinify/preclinify-dashboard" that has no prettier dependency and no workspaces section in its package.json 2024-05-01T17:15:27+01:00 [INFO] Language server with id 2 sent unhandled notification eslint/status: { "uri": "...src/components/Navbar/navbarAnimationWrapper.tsx", "state": 1, "validationTime": 40 } 2024-05-01T17:15:35+01:00 [INFO] Language server with id 2 sent unhandled notification eslint/status: { "uri": "...src/components/Navbar/navbarAnimationWrapper.tsx", "state": 1, "validationTime": 54 } 2024-05-01T17:15:36+01:00 [WARN] Skipping path "/Users/justin/dev/preclinify/preclinify-dashboard" that has no prettier dependency and no workspaces section in its package.json

choco-green commented 5 months ago

Edit has shortened the repeated zed.log for readability