-
Notifications
You must be signed in to change notification settings - Fork 480
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
(WIP) Use ariadne #2426
base: master
Are you sure you want to change the base?
(WIP) Use ariadne #2426
Conversation
I deliberately introduced a compile error, here's what that looks like currently:
and here's what that looks like with ariadne as it's currently set up in that PR:
slightly nicer I suppose |
Is the formatting off in that error message? It looks misaligned. |
Tentatively, I think this looks good. This will be a massive change though, because there are so many tests which check error messages. I think the easiest way to do this would be to land a commit which switches to ariadne, but which doesn't change any error messages or try to add any additional highlights. I think we could write a script to automatically convert existing tests to the new format. Then we could start improving the error messages one by one, by adding additional spans, etc. Some questions:
|
This makes sense
Yeah. You have to do this in the kinda-silly way of defining
Yeah, that's totally optional. I kind of like the idea of having a rustc-style authoritative list of error codes, but that's not worth trying to merge in the first pass in any case.
Yeah there's an API for assigning pretty arbitrary colors to labels: |
Dope.
I like the idea of doing that too, although definitely later.
Dope. So yeah, I think this is a good change, although the search and replace for changing all the tests will be brutal. |
24538cd
to
99b0305
Compare
4013357
to
5949274
Compare
An idea that might make this easier: Can we style the adriane errors so that they look the same as |
#1323