#prettyprinters
Three configurable prettyprinters (2023) https://lobste.rs/s/was9lk ##haskell
Three configurable prettyprinters (2023)
reasonableapproximation.net
October 22, 2026 at 10:30 AM
October 6, 2026 at 12:15 PM
Debugger in RustRover spews errors about 'jb_renderers_set_markup'?
I installed the IntelliJ Rust plugin (which I guess is called RustRover?). So far so good, but debugging is has issues. I stopped in a place where I have a `String` variable `num_text`: lldb) p num_text error: 'jb_renderers_set_markup' is not a valid command. Traceback (most recent call last): File "C:\Users/rober/AppData/Roaming/JetBrains/IntelliJIdea2024.3/plugins/intellij-rust/prettyPrinters\lldb_formatters\lldb_providers.py", line 171, in StdStringSummaryProvider return read_raw_string(data_ptr, length) File "C:\Users/rober/AppData/Roaming/JetBrains/IntelliJIdea2024.3/plugins/intellij-rust/prettyPrinters\lldb_formatters\lldb_providers.py", line 90, in read_raw_string max_string_summary_length = get_max_string_summary_length(data_ptr.GetTarget().GetDebugger()) File "C:\Users/rober/AppData/Roaming/JetBrains/IntelliJIdea2024.3/plugins/intellij-rust/prettyPrinters\lldb_formatters\lldb_providers.py", line 82, in get_max_string_summary_length return int(max_len.GetStringAtIndex(0)) TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' (alloc::string::String) num_text = { vec = size=71525472 {} } error: 'jb_renderers_set_markup' is not a valid command. Three lines there look good. But anyone know how to get rid of the rest of that junk? Second question: are basic methods like `len()` supposed to be available in the debugger? (lldb) p num_text.len() error: 'jb_renderers_set_markup' is not a valid command. error: no field named len error: 'jb_renderers_set_markup' is not a valid command.
users.rust-lang.org
December 11, 2024 at 7:55 PM