Skip to content

called Result::unwrap() on an Err value: failed while formatting fluent string codegen_ssa_unable_to_run_dsymutil #124392

Closed
@glandium

Description

@glandium
Contributor

When building a binary for mac and dsymutil is not in $PATH for whatever reason, this is the message that appears, followed by a backtrace, instead of the intended error:

thread 'rustc' panicked at compiler/rustc_errors/src/emitter.rs:1289:80:
called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `codegen_ssa_unable_to_run_dsymutil`: 
the attribute `note` was missing
help: add `.note = <message>`

Indeed there is no note in the fluent file.

codegen_ssa_unable_to_run_dsymutil = unable to run `dsymutil`: {$error}

while one is expected from the error declaration.

#[derive(Diagnostic)]
#[diag(codegen_ssa_unable_to_run_dsymutil)]
#[note]

Activity

added
C-bugCategory: This is a bug.
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Apr 26, 2024
added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Apr 26, 2024
added
A-diagnosticsArea: Messages for errors, warnings, and lints
and removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Apr 26, 2024
added a commit that references this issue on May 2, 2024

Rollup merge of rust-lang#124414 - lqd:subdiagnostics, r=davidtwco

811a27f
added a commit that references this issue on May 2, 2024

Rollup merge of rust-lang#124414 - lqd:subdiagnostics, r=davidtwco

e9e2ebb
added a commit that references this issue on May 2, 2024
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-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️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

      Participants

      @lqd@glandium@rustbot

      Issue actions

        called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `codegen_ssa_unable_to_run_dsymutil` · Issue #124392 · rust-lang/rust