You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.39 error messages don't properly truncate, making autogenerated files (e.g. bindgen) spam the terminal #66229
changed the title [-]1.39 error messages dump seemingly entire source file where the affected line should be[/-][+]1.39 error messages don't properly truncate, making autogenerated files (e.g. bindgen) spam the terminal[/+]on Nov 8, 2019
no thanks, i have enough of my own work and prefer to touch this kinda stuff as little as possible. For now, I took patches from Gentoo to fix compilation of firefox/thunderbird (and adapted it for other stuff so that e.g. icecat can also build), which seems to work ok.
I believe all of the work necessary here has been completed. Extremely long types in messages are now truncated and written to disk, and cargo passes through the terminal's width to rustc to truncate the code window in diagnostics.
Activity
[-]1.39 error messages dump seemingly entire source file where the affected line should be[/-][+]1.39 error messages don't properly truncate, making autogenerated files (e.g. bindgen) spam the terminal[/+]q66 commentedon Nov 8, 2019
Actually, the source file appears to be one line. It's generated by rust-bindgen.
q66 commentedon Nov 8, 2019
Here's the generated file from firefox: https://gist.githubusercontent.com/q66/ac25123ed168f61e2972af0bbc90fff0/raw/229094c3e8dfda7382eec22563d08538eaf83c03/gistfile1.txt
estebank commentedon Nov 8, 2019
#63402 implements the feature, but it needs to be integrated with
cargo.est31 commentedon Nov 9, 2019
See also the bindgen bug: rust-lang/rust-bindgen#1600
I've added some pretty-printing code to my own project: RustAudio/deepspeech-rs@3323b0e
Optimally it would live in bindgen though. Want to port it to bindgen, @q66 ?
q66 commentedon Nov 9, 2019
no thanks, i have enough of my own work and prefer to touch this kinda stuff as little as possible. For now, I took patches from Gentoo to fix compilation of firefox/thunderbird (and adapted it for other stuff so that e.g. icecat can also build), which seems to work ok.
estebank commentedon Jun 29, 2023
I believe all of the work necessary here has been completed. Extremely long types in messages are now truncated and written to disk, and cargo passes through the terminal's width to
rustcto truncate the code window in diagnostics.