• verstra@programming.dev
    link
    fedilink
    arrow-up
    75
    arrow-down
    2
    ·
    3 days ago

    Have you erased the continuation of the message that is saying something about “similar names, but are actually two distinct types”?

    It is a common error if you have two dependecies that export the same third dependency and your code makes an assumption that the versions of the third dep match.

    All other languages either straight-up don’t support multiple versions of the same dep, or throw random errors at runtime. So this message is a consequence of rust supporting things that other langs only dream of.

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      26
      ·
      3 days ago

      I enjoyed the joke but yeah I thought Rust was known for quite good error messages in general. I haven’t used it though myself.

      • floofloof@lemmy.ca
        link
        fedilink
        arrow-up
        27
        ·
        edit-2
        3 days ago

        Rust’s compiler is more picky than most, but is really impressive in how it explains the errors and advises on how to fix them. It’s a really good feature of Rust.

      • nous@programming.dev
        link
        fedilink
        English
        arrow-up
        17
        ·
        3 days ago

        The problem is ides inlining only part of the error and generally skip all the helpful text on how to fix the error.

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago
          Expansion dropdowns are nice.

          They make it easier to fit in many errors in a small widget
          and provide the user the option to see the rest of the error right there.
          Then you have the option in the context menu to go to the actual error text.
          I expect these things to be basically available in my IDE