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
50.03k stars 3.06k forks source link

Clojure code changes sometimes revert on save #7846

Closed cap10morgan closed 1 month ago

cap10morgan commented 9 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Follow up to #5292

I'm not sure how to reliably reproduce this, but I'll attach my Zed.log of an editing session where I encounter it next time it happens.

But basically what I've been seeing is that I edit a Clojure file (in this case it's a .cljc file that I have to manually tell Zed is Clojure in case that matters), I make some changes, and then when I save it, those changes are reverted. If I turn off Clojure language mode, I can edit and save changes just fine. So that led me to wonder if this might be a format-on-save bug.

Environment

Zed: v0.123.1 (Zed Preview) OS: macOS 14.3.1 Memory: 64 GiB Architecture: aarch64

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

No response

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

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

github-actions[bot] commented 1 month ago

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. Are you able to reproduce this issue in the latest version of Zed? If so, please let us know by commenting on this issue and we will keep it open; otherwise, we'll close it in a week. Feel free to open a new issue if you're seeing this message after the issue has been closed. Thanks for your help!

github-actions[bot] commented 1 month ago

This issue was closed due to inactivity; feel free to open a new issue if you're still experiencing this problem!