Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted text returns to buffer when file is saved #23553

Open
1 task done
mooreryan opened this issue Jan 23, 2025 · 0 comments
Open
1 task done

Deleted text returns to buffer when file is saved #23553

mooreryan opened this issue Jan 23, 2025 · 0 comments
Labels
bug [core label] editor Feedback for code editing, formatting, editor iterations, etc

Comments

@mooreryan
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When using Zed to edit Gleam code, every now and then, Zed editor will add back in deleted text on save. (I do have the format on save option on.)

Unfortunately, I cannot reliably reproduce this bug. It will randomly happen every 10 minutes or so when actively coding. I did get a video of the behavior though.

Other odd things have happened on save as well, like a section of code gets stuck in where my cursor is. Unfortunately, I was not able to get a video of this behavior.

Zed Version and System Specs

Zed: v0.170.1 (Zed)
OS: Linux X11 ubuntu 22.04
Memory: 22.7 GiB
Architecture: x86_64
GPU: AMD Unknown (RADV RENOIR) || radv || Mesa 23.2.1-1ubuntu3.1~22.04.3

If applicable, add screenshots or screencasts of the incorrect state / behavior

Here's what I'm doing in the video:

  1. Highlight the first line.
  2. Press "delete"
  3. Save the changes

After save the text pops back in.

zed_gleam_bug.mp4

If applicable, attach your Zed.log file to this issue.

This is the section of the log that is written when I take the action described in the video section.

Zed.log
2025-01-22T21:18:52.700713646-05:00 [INFO] ignoring macOS specific set_edited
2025-01-22T21:18:53.064842833-05:00 [INFO] using project environment variables from CLI. PATH="/home/ryan/.local/bin:/home/ryan/.local/share/../bin:/home/ryan/miniconda3/bin:/home/ryan/miniconda3/condabin:/home/ryan/.local/share/pnpm:/home/ryan/.asdf/shims:/home/ryan/.asdf/bin:/home/ryan/.opam/5.2.1/bin:/opt/pycharm-2024.3/bin:/opt/nvim-linux64/bin:/opt/python3.13/bin:/home/ryan/.asdf/installs/elixir/1.17.2-otp-27/.mix/escripts:/home/ryan/.cache/rebar3/bin:/home/ryan/bin:/home/ryan/.local/bin:/home/ryan/.cargo/bin:/home/ryan/.local/kitty.app/bin:/home/ryan/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ryan/.dotnet/tools:/home/ryan/miniconda3/bin"
2025-01-22T21:18:53.096382692-05:00 [INFO] ignoring macOS specific set_edited
@mooreryan mooreryan added admin read bug [core label] labels Jan 23, 2025
@JosephTLyons JosephTLyons added editor Feedback for code editing, formatting, editor iterations, etc and removed triage labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] editor Feedback for code editing, formatting, editor iterations, etc
Projects
None yet
Development

No branches or pull requests

2 participants