[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 Waqar Ahmed changed: What|Removed |Added Latest Commit||https://invent.kde.org/util ||ities/kate/-/commit/b20feef ||77ca830684ce8570e59e6383079 ||1c28a5 Resolution|--- |FIXED Status|CONFIRMED |RESOLVED --- Comment #9 from Waqar Ahmed --- Git commit b20feef77ca830684ce8570e59e63830791c28a5 by Waqar Ahmed. Committed on 10/10/2023 at 08:51. Pushed by waqar into branch 'master'. Use plainText for diagnostic tooltip M +2-2apps/lib/diagnostics/diagnosticview.cpp https://invent.kde.org/utilities/kate/-/commit/b20feef77ca830684ce8570e59e63830791c28a5 -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 Waqar Ahmed changed: What|Removed |Added Status|REPORTED|CONFIRMED Ever confirmed|0 |1 --- Comment #8 from Waqar Ahmed --- Reproduced after upgrading rust-analyzer -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 --- Comment #7 from Hugues Morisset --- Maybe something to do with locales? ``` $ rust-analyzer --version && kate --version && env | grep 'LC_*' rust-analyzer 1.74.0-nightly (65ea825 2023-09-18) QSocketNotifier: Can only be used with threads started with QThread kate 23.08.1 LC_ADDRESS=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_RESPONSE=POSIX LC_TELEPHONE=fr_FR.UTF-8 LC_MESSAGES=POSIX LC_MEASUREMENT=fr_FR.UTF-8 LC_CTYPE=en_US.UTF-8 LC_TIME=fr_FR.UTF-8 LC_COLLATE=en_US.UTF-8 LC_NUMERIC=fr_FR.UTF-8 ``` I changed LSP to be script that does the following ``` tee /tmp/lsp/rustin | rustup run nightly rust-analyzer "$@" | tee /tmp/lsp/rustout ``` loaded the file containing the example code and displayed the tooltip (which displayed incorrectly). rustin and rustout are provided in attachments -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 --- Comment #6 from Hugues Morisset --- Created attachment 162125 --> https://bugs.kde.org/attachment.cgi?id=162125=edit rustout -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 --- Comment #5 from Hugues Morisset --- Created attachment 162124 --> https://bugs.kde.org/attachment.cgi?id=162124=edit rustin -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 --- Comment #4 from Waqar Ahmed --- Sorry this is the tooltip I see: ``` [rust-analyzer] (type-mismatch) expected Result<(), dyn Error>, found () ``` -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 Waqar Ahmed changed: What|Removed |Added Component|part|application --- Comment #3 from Waqar Ahmed --- I have tried multiple times but I can't see a broken tooltip. I only see the following tooltip and a different one which shows the description of symbol under cursor along with the error below ``` [rust-analyzer] (E0308) expected Result<(), dyn Error>, found () ``` --- My rust analyzer version is: ``` rust-analyzer --version rust-analyzer 1.71.0 (8ede3aa 2023-07-12) ``` -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 --- Comment #2 from Hugues Morisset --- Sorry, here a simple example ``` async fn main() -> Result<(), dyn std::error::Error> { std::thread::sleep(std::time::Duration::from_secs(2)) } ``` I get ``` [rustc] (E0308) mismatched types expected enum Result(), (dyn std::error::Error + 'static) found unit type () [main.rs:1] expected Result(), (dyn std::error::Error + 'static) because of return type [main.rs:2] try adding an expression at the end of the block: ; Ok(()) ``` I tried removing the async keyword, and the tooltip displays correctly then. ``` [rust-analyzer] (E0308) expected Result<(), dyn Error>, found () ``` -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 Waqar Ahmed changed: What|Removed |Added CC||waqar@gmail.com --- Comment #1 from Waqar Ahmed --- Would help if you provide example rust code -- You are receiving this mail because: You are watching all bug changes.
[kate] [Bug 475252] LSP tooltip doesn't display correctly sometimes
https://bugs.kde.org/show_bug.cgi?id=475252 Hugues Morisset changed: What|Removed |Added CC||morisset.hug...@gmail.com -- You are receiving this mail because: You are watching all bug changes.