zed
zed copied to clipboard
When I execute a command on the terminal to generate new code, Zed does not refresh the status in real time
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
Thank your work for Zed,It is a fast editor, I think it will replace VSCode in my work.
I write go code using Zed, and when I encounter an error message, I execute go generate on the terminal to generate new code and fix the error, my code is right. However, Zed does not refresh in real time, and the error message still exists
Environment
Zed: v0.122.2 (Zed) OS: macOS 13.0.1 Memory: 16 GiB Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
This is error message
This is my file
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.
2024-02-20T16:06:39+08:00 [INFO] reload git repository ".git" 2024-02-20T16:06:39+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 26:3: expected selector or type assertion, found 'return' 2024-02-20T16:06:39+08:00 [INFO] reload git repository ".git" 2024-02-20T16:07:34+08:00 [INFO] reload git repository ".git" 2024-02-20T16:07:39+08:00 [INFO] reload git repository ".git" 2024-02-20T16:07:39+08:00 [INFO] reload git repository ".git" 2024-02-20T16:08:00+08:00 [ERROR] crates/gpui/src/window.rs:415: window not found 2024-02-20T16:08:00+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T16:08:00+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T16:08:00+08:00 [ERROR] crates/terminal_view/src/terminal_view.rs:420: error upgrading view 2024-02-20T16:08:01+08:00 [ERROR] crates/gpui/src/window.rs:415: window not found 2024-02-20T16:08:01+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T16:08:01+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T16:08:01+08:00 [ERROR] crates/terminal_view/src/terminal_view.rs:420: error upgrading view 2024-02-20T16:08:03+08:00 [ERROR] crates/ai/src/providers/open_ai/embedding.rs:170: NotPresent 2024-02-20T16:08:03+08:00 [ERROR] crates/semantic_index/src/semantic_index.rs:87: user is not authenticated 2024-02-20T16:08:08+08:00 [INFO] build git repository ".git" 2024-02-20T16:08:08+08:00 [INFO] starting language server "gopls", path: "/Users/xsh/fm/fm-suggest", id: 9 2024-02-20T16:08:22+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 26:3: expected operand, found 'return' 2024-02-20T16:08:22+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 26:3: expected operand, found 'return' 2024-02-20T16:08:42+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 26:3: expected operand, found 'return' 2024-02-20T16:10:48+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 28:2: expected operand, found '}' (and 10 more errors) 2024-02-20T16:11:29+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 16:1: expected 'IDENT', found '}' (and 2 more errors) 2024-02-20T16:11:39+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 29:2: expected operand, found '}' (and 10 more errors) 2024-02-20T16:12:18+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 29:2: expected selector or type assertion, found '}' 2024-02-20T16:12:27+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 30:2: expected selector or type assertion, found '}' 2024-02-20T16:12:27+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 30:2: expected selector or type assertion, found '}' 2024-02-20T16:12:27+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 30:2: expected selector or type assertion, found '}' 2024-02-20T16:13:49+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go" 2024-02-20T16:26:53+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go" 2024-02-20T16:27:14+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/Users/xsh/go/pkg/mod/github.com/confluentinc/[email protected]/kafka/consumer.go" 2024-02-20T16:27:36+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/Users/xsh/go/pkg/mod/go.uber.org/[email protected]/logger.go" 2024-02-20T16:27:41+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/Users/xsh/go/pkg/mod/go.uber.org/[email protected]/logger.go" 2024-02-20T16:28:08+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go" 2024-02-20T16:30:18+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by:
65:78: expected ')', found ','
2024-02-20T16:33:30+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go"
2024-02-20T17:01:20+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go"
2024-02-20T17:01:28+08:00 [ERROR] point Point { row: 1, column: 36 } is beyond the end of a line with length 0
0: backtrace::capture::Backtrace::create
1: backtrace::capture::Backtrace::new
2: rope::Rope::point_to_offset
3: editor::display_map::inlay_map::InlaySnapshot::to_offset
4: editor::display_map::DisplayPoint::to_offset
5: editor::hover_popover::show_hover
6: gpui::window::element_cx::ElementContext::on_mouse_event::<gpui::interactive::MouseMoveEvent, editor::element::EditorElement::paint_mouse_listeners::{closure#2}>::{closure#0}
7: gpui::window::WindowContext::dispatch_event
8: gpui::window::Window::new::{closure#5}
9: gpui::platform::mac::window::handle_view_event
10:
2024-02-20T17:01:28+08:00 [ERROR] point Point { row: 1, column: 36 } is beyond the end of a line with length 0
0: backtrace::capture::Backtrace::create
1: backtrace::capture::Backtrace::new
2: rope::Rope::point_to_offset
3: editor::display_map::inlay_map::InlaySnapshot::to_offset
4: editor::display_map::DisplayPoint::to_offset
5: editor::hover_popover::show_hover
6: gpui::window::element_cx::ElementContext::on_mouse_event::<gpui::interactive::MouseMoveEvent, editor::element::EditorElement::paint_mouse_listeners::{closure#2}>::{closure#0}
7: gpui::window::WindowContext::dispatch_event
8: gpui::window::Window::new::{closure#5}
9: gpui::platform::mac::window::handle_view_event
10:
2024-02-20T17:02:05+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/encoding/json/decode.go"
2024-02-20T17:05:22+08:00 [ERROR] point Point { row: 0, column: 19 } is beyond the end of a line with length 0
0: backtrace::capture::Backtrace::create
1: backtrace::capture::Backtrace::new
2: rope::Rope::point_to_offset
3: editor::display_map::inlay_map::InlaySnapshot::to_offset
4: editor::display_map::DisplayPoint::to_offset
5: editor::hover_popover::show_hover
6: gpui::window::element_cx::ElementContext::on_mouse_event::<gpui::interactive::MouseMoveEvent, editor::element::EditorElement::paint_mouse_listeners::{closure#2}>::{closure#0}
7: gpui::window::WindowContext::dispatch_event
8: gpui::window::Window::new::{closure#5}
9: gpui::platform::mac::window::handle_view_event
10:
2024-02-20T17:11:16+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go" 2024-02-20T17:11:22+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/context/context.go" 2024-02-20T17:19:17+08:00 [INFO] 9 unhandled notification window/showMessage: { "type": 2, "message": "Do not edit this file! /Users/xsh/fm/fm-suggest/api/notify.pb.go is a generated file." } 2024-02-20T17:20:41+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 22:81: expected ';', found '(' 2024-02-20T17:20:41+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 22:81: expected ';', found '(' 2024-02-20T17:20:43+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by:
22:81: expected ';', found '('
2024-02-20T17:20:47+08:00 [ERROR] point Point { row: 0, column: 35 } is beyond the end of a line with length 0
0: backtrace::capture::Backtrace::create
1: backtrace::capture::Backtrace::new
2: rope::Rope::point_to_offset
3: editor::display_map::inlay_map::InlaySnapshot::to_offset
4: editor::display_map::DisplayPoint::to_offset
5: editor::hover_popover::show_hover
6: gpui::window::element_cx::ElementContext::on_mouse_event::<gpui::interactive::MouseMoveEvent, editor::element::EditorElement::paint_mouse_listeners::{closure#2}>::{closure#0}
7: gpui::window::WindowContext::dispatch_event
8: gpui::window::Window::new::{closure#5}
9: gpui::platform::mac::window::handle_view_event
10:
2024-02-20T17:23:20+08:00 [WARN] timed out waiting for formatting 2024-02-20T17:30:44+08:00 [INFO] open paths ["/Users/xsh/.config/zed/settings.json"] 2024-02-20T17:30:44+08:00 [INFO] Initializing default prettier with plugins {} 2024-02-20T17:30:44+08:00 [INFO] starting language server "json-language-server", path: "/Users/xsh/.config/zed/settings.json", id: 10 2024-02-20T17:30:44+08:00 [INFO] Node runtime install_if_needed 2024-02-20T17:30:46+08:00 [INFO] Node runtime install_if_needed 2024-02-20T17:30:57+08:00 [INFO] Waiting for default prettier to install 2024-02-20T17:30:57+08:00 [INFO] Starting prettier at path "/Users/xsh/Library/Application Support/Zed/prettier" 2024-02-20T17:30:57+08:00 [INFO] Node runtime install_if_needed 2024-02-20T17:30:57+08:00 [INFO] Initializing default prettier with plugins {} 2024-02-20T17:30:57+08:00 [INFO] stopping language server gopls 2024-02-20T17:30:57+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T17:30:57+08:00 [INFO] starting language server "gopls", path: "/Users/xsh/fm/fm-suggest", id: 12 2024-02-20T17:30:57+08:00 [INFO] Started default prettier in "/Users/xsh/Library/Application Support/Zed/prettier" 2024-02-20T17:30:57+08:00 [INFO] Initializing default prettier with plugins {} 2024-02-20T17:31:56+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T17:31:56+08:00 [ERROR] crates/gpui/src/window.rs:415: window not found 2024-02-20T17:31:56+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T17:31:56+08:00 [ERROR] crates/lsp/src/lsp.rs:679: oneshot canceled 2024-02-20T17:31:57+08:00 [ERROR] crates/terminal_view/src/terminal_view.rs:420: error upgrading view 2024-02-20T17:32:01+08:00 [ERROR] crates/ai/src/providers/open_ai/embedding.rs:170: NotPresent 2024-02-20T17:32:01+08:00 [ERROR] crates/semantic_index/src/semantic_index.rs:87: user is not authenticated 2024-02-20T17:32:07+08:00 [INFO] build git repository ".git" 2024-02-20T17:32:07+08:00 [INFO] starting language server "gopls", path: "/Users/xsh/fm/fm-suggest", id: 13 2024-02-20T17:32:07+08:00 [ERROR] crates/workspace/src/persistence/model.rs:257: No worktree for path: "/Users/xsh/.config/zed/settings.json" 2024-02-20T17:34:04+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 56:2: expected selector or type assertion, found '}' 2024-02-20T17:35:54+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/Users/xsh/go/pkg/mod/gorm.io/[email protected]/finisher_api.go" 2024-02-20T17:36:50+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/context/context.go" 2024-02-20T17:42:50+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go" 2024-02-20T17:43:38+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/context/context.go" 2024-02-20T17:44:10+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/context/context.go" 2024-02-20T17:48:57+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/encoding/json/decode.go" 2024-02-20T17:49:21+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/Users/xsh/go/pkg/mod/github.com/spf13/[email protected]/cast.go" 2024-02-20T17:50:28+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: 64:43: expected selector or type assertion, found ',' 2024-02-20T17:50:29+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/builtin/builtin.go" 2024-02-20T17:51:45+08:00 [ERROR] crates/project/src/project.rs:2987: no worktree found for diagnostics path "/opt/go/src/context/context.go" 2024-02-20T17:52:34+08:00 [ERROR] crates/editor/src/editor.rs:7819: failed to format via language server
Caused by: can't format "/Users/xsh/fm/fm-suggest/test/mocks/service/user.go": file is generated 2024-02-20T18:00:28+08:00 [INFO] 13 unhandled notification window/showMessage: { "type": 2, "message": "Do not edit this file! /Users/xsh/fm/fm-suggest/cmd/server/wire_gen.go is a generated file." }
Hey, the situation should improve with tomorrow's Preview.