3 ms·
Please file bugs for any message that is confusing! We track them like any other bug, and there’s some folks actively working on them.
by steveklabnik 7y ago
Please file bugs for any message that is confusing! We track them like any other bug, and there’s some folks actively working on them.
- saagarjha 7y agoHmm, I wouldn’t call them confusing per se, they’re just not useful, and I don’t think any compiler has really solved this problem (but then again, generation of compiler error messages is not something I’m an expert in). Let’s say I forgot to put a “*” in front of something: the compiler’s error might be something like “xyz does not implement SomeTrait, here is a page explaining what traits are”. I’d be more than happy to file bugs for things like these but I have generally refrained from doing so because I am unsure if this is something that is possible to fix. If you’d like, I could file issues for things like this, but I’m genuinely curious to hear if there’s any strategies on improving these or work done in this area.
- steveklabnik 7y agoLet us determine if it's possible or not. The person who currently works on errors is of the opinion that any time the error isn't useful, it's a bug. > I’m genuinely curious to hear if there’s any strategies on improving these or work done in this area. It's just a ton of work. You look at what the compiler produces, look at what information you can have at that point, see if you can craft something better, and then ship. And then look at the next error.
- loeg 7y ago> Let us determine if it's possible or not. The person who currently works on errors is of the opinion that any time the error isn't useful, it's a bug. That's a fantastic attitude and I really appreciate that someone is working towards that goal, thanks. > It's just a ton of work. You look at what the compiler produces, look at what information you can have at that point, see if you can craft something better, and then ship. And then look at the next error. Exactly. That person is a saint.
- saagarjha 7y agoI have no issue with filing bugs about errors I think aren’t great, aside from the fact that I might not be able to suggest anything better…I’ll try it out the next time I see something.
- loeg 7y agoI'll keep that in mind for future interaction with rustc, thanks. Just to double check, you are referring to Github issues on the rust-lang/rust repository, right?
- steveklabnik 7y agoI am!