Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Average Rust Error

Average Rust Error

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
9 Posts 8 Posters 10 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cm0002@lemmy.worldC This user is from outside of this forum
    cm0002@lemmy.worldC This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1
    This post did not contain any content.
    V W 2 Replies Last reply
    185
    • cm0002@lemmy.worldC [email protected]
      This post did not contain any content.
      V This user is from outside of this forum
      V This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      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.

      A U 2 Replies Last reply
      63
      • V [email protected]

        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.

        A This user is from outside of this forum
        A This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        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.

        F N 2 Replies Last reply
        22
        • A [email protected]

          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.

          F This user is from outside of this forum
          F This user is from outside of this forum
          [email protected]
          wrote on last edited by [email protected]
          #4

          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.

          1 Reply Last reply
          19
          • A [email protected]

            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.

            N This user is from outside of this forum
            N This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

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

            U 1 Reply Last reply
            14
            • cm0002@lemmy.worldC [email protected]
              This post did not contain any content.
              W This user is from outside of this forum
              W This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              .map_err(utils::err_magic_dont_look)

              bratorange@feddit.orgB 1 Reply Last reply
              2
              • N [email protected]

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

                U This user is from outside of this forum
                U This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                ::: spoiler 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
                :::

                1 Reply Last reply
                2
                • V [email protected]

                  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.

                  U This user is from outside of this forum
                  U This user is from outside of this forum
                  [email protected]
                  wrote on last edited by [email protected]
                  #8

                  Yeah, C++ would give a linker error.

                  But that won't be C++, but the linker.
                  Because as far as C++ goes, all stuff is in a single source file, until fairly recently.

                  1 Reply Last reply
                  0
                  • W [email protected]

                    .map_err(utils::err_magic_dont_look)

                    bratorange@feddit.orgB This user is from outside of this forum
                    bratorange@feddit.orgB This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    That was how I solved it 😉

                    1 Reply Last reply
                    2
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups