-
-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
Got rustowl running in emacs, automatically when lsp-mode starts, but the lines don't show.
Minibuffer shows
LSP :: Restarting LSP in buffer ./src/main.rs
LSP :: Connected to [rust-analyzer:283453 /home/pascal/dev/rusttest][rustowl:284468/starting /home/pascal/dev/rusttest].
LSP :: rustowl:284468 initialized successfully in folders: (/home/pascal/dev/rusttest)
Error processing message (wrong-type-argument hash-table-p (:decorations [] :is_analyzed nil :path "/home/pascal/dev/rusttest/src/main.rs" :status "error")). [2 times]
lsp-log:
Creating watchers for following 2 folders:
/home/pascal/dev/rusttest
/home/pascal/dev/rusttest/src
Cancelling textDocument/codeAction(61) in hook post-command-hook
Command "semgrep lsp" is not present on the path.
Command "rls" is present on the path.
Command "rustowl" is present on the path.
Command "semgrep lsp" is not present on the path.
Command "rls" is present on the path.
Command "rustowl" is present on the path.
Found the following clients for /home/pascal/dev/rusttest/src/main.rs: (server-id rust-analyzer, priority 1), (server-id rls, priority -1), (server-id rustowl, priority -1)
The following clients were selected based on priority: (server-id rust-analyzer, priority 1), (server-id rustowl, priority -1)
rustowl::stderr
RustOwl v0.3.4
This is an LSP server. You can use --help flag to show help.
error: toolchain '1.87.0-x86_64-unknown-linux-gnu' is not installed
help: run `rustup toolchain install 1.87.0-x86_64-unknown-linux-gnu` to install it
2026-02-09T12:40:34.961Z INFO [rustowlc::core] start borrowck of DefId(0:3 ~ main[0db6]::main)
error[E0597]: `str_b` does not live long enough
--> /home/pascal/dev/rusttest/src/main.rs:7:17
|
5 | let mut str_b = String::from("b");
| --------- binding `str_b` declared here
6 | str_b.push_str(refer);
7 | refer = &str_b;
| ^^^^^^ borrowed value does not live long enough
8 | }
| - `str_b` dropped here while still borrowed
9 |
10 | println!("{refer}");
| ------- borrow later used here
2026-02-09T12:40:34.965Z INFO [rustowlc::core::analyze] facts of DefId(0:3 ~ main[0db6]::main) prepared; start analyze of DefId(0:3 ~ main[0db6]::main)
2026-02-09T12:40:34.965Z INFO [rustowlc::core] borrow checked: 1 / 1
2026-02-09T12:40:34.965Z INFO [rustowlc::core::analyze] start re-computing borrow check with dump: true
2026-02-09T12:40:34.969Z INFO [rustowlc::core::analyze] borrow check finished
2026-02-09T12:40:34.974Z INFO [rustowlc::core] analyzed one item of /home/pascal/dev/rusttest/src/main.rs
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0597`.
Environment
- OS: Gentoo Linux
- Emacs version: GNU Emacs 30.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.51, cairo version 1.18.4) of 2026-01-06
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working