Skip to content

1.39 error messages don't properly truncate, making autogenerated files (e.g. bindgen) spam the terminal #66229

Closed

Description

@q66

Activity

  1. 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
  2. q66 commented on Nov 8, 2019

    @q66
    Author

    Actually, the source file appears to be one line. It's generated by rust-bindgen.

  3. estebank commented on Nov 8, 2019

    @estebank
    Contributor

    #63402 implements the feature, but it needs to be integrated with cargo.

  4. added
    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    A-diagnosticsArea: Messages for errors, warnings, and lints
    on Nov 8, 2019
  5. est31 commented on Nov 9, 2019

    @est31
    Member

    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 ?

  6. q66 commented on Nov 9, 2019

    @q66
    Author

    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.

  7. estebank commented on Jun 29, 2023

    @estebank
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions