Spyke
programming.dev

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.

73
Aurenkinreply
sh.itjust.works

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.

26

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.

27
nousreply
programming.dev

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

17

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

2

You reached the end