-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better error reporting #27
Comments
To have that right now, I could implement something that will run when an environment variable is set. It will do the following:
That will be slow, but still faster that doing that by hand. |
This is really needed, especially for noobs like me in Rust and you get this kind of error:
I think I'll give up on relm for the moment :( |
I think that I'll soon be able to fix this issue (at least on nightly) since Until then, you can enable the log when you use relm by doing:
and you'll see the generated code. |
Oh cool, I'm gonna give this a shot to see if I can understand which value causes this error :) Thank you. And to be fair, I know the whole Rust sphere is very young and still craving its way to provide all the tools needed to make a language successful :) So kudo to you for relm, it makes gtk way less ugly to use in Rust! |
Oh, I've just noticed that this logging feature is only in the |
If the PR needed to makes thing right by managing the current ticket is merged soon, don't bother, I can wait :) |
Looks like the pull-request was merged. Is it something we need to update on our end, or does the library need to be updated? |
@zmitchell I talked to you about the idea of using (sy)nom, but I'm not sure we can use it for the whole thing. |
I agree, I think it's the only part that it needs to be used for. I don't think I implied otherwise, did I? |
@zmitchell No, but I did :) . |
@zmitchell: I started to fix this and have some basic examples (like |
Fixed by PR #90. |
That would require the ability to set positions (spans) in the proc macro and the ability to spans errors.
The text was updated successfully, but these errors were encountered: