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
47.35k stars 2.75k forks source link

Autosave doesnt work #17556

Open LemuelDayrit opened 2 weeks ago

LemuelDayrit commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

i saw on the documentation that i has autosave so i copy the one line of code then save it on settings, it doesn't work because it should be autosaved if there's atleast 1 character but there's still an icon that its not saved

Environment

Zed: v0.151.2 (Zed) OS: Linux Wayland cachyos unknown Memory: 15 GiB Architecture: x86_64 GPU: NVIDIA GeForce RTX 3050 Ti Laptop GPU || NVIDIA || 560.35.03

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

No response

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

Zed.log


bitfield commented 5 days ago

I've noticed autosaving not work a few times, too. I wonder if it's an interaction with the language server(s), because I'm editing Markdown documents containing fenced Rust code blocks. When I save manually, I get the "document changed on disk, overwrite?" confirmation dialog.

2024-09-17T17:40:33.169283+01:00 [INFO] starting language servers for Rust: rust-analyzer, snippet-completion-server
2024-09-17T17:40:33.169581+01:00 [INFO] starting language server "snippet-completion-server", path: "/Users/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.17/src/builder/arg.rs", id: 40
2024-09-17T17:40:33.170478+01:00 [INFO] Initializing default prettier with plugins {}
2024-09-17T17:40:33.256565+01:00 [INFO] starting language server. binary path: "/Users/john/Library/Application Support/Zed/extensions/work/snippets/simple-completion-language-server-v0.1.1/simple-completion-language-server", working directory: "/Users/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.17/src/builder", args: []
2024-09-17T17:40:33.588679+01:00 [ERROR] oneshot canceled
2024-09-17T17:40:33.673306+01:00 [ERROR] no worktree found for diagnostics path "/Users/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.17/src/builder/arg.rs"