-
Notifications
You must be signed in to change notification settings - Fork 15
add error code, aka "source" to the output #56
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
Conversation
|
They have various formatters. You could use csv. Python ships a csv reader. You would implement Does that make sense at all? But if you find xml |
Ha, well, "parse" meant loosely here. Of course using a regex here is loaded with assumptions (each error on a line, attributes in a certain order). With these kinds of things, that usually works well though. I'll look into using the json output, that's more my speed than csv. Might even try to look into the other open issues 🤞🏻 |
|
csv is faster 😏 |
get access to the error code, missing from the emacs output also make the quick action work
issue: quotes are escaped in the messages
|
Ah, sorry, quotechar and delimiter would have been just options/kwargs to the DictReader. Is this ready. Looks like it is. |
|
Hm. Actually, what is the change here? The error code was in regex before. You added that in #51 |
|
Have you |
|
Oh... guess I didn't read the readme. Granted, it's been 5 years 😅 And nobody reads readmes 😉 . Why would you have to turn on? Also it makes the quick action not work at all (it will insert something like
You know, that's a fair point, but without the error codes it leaves the plugin in a half broken state IMO. Maybe aesthetically less pleasing, but error codes are useful even if they're ugly and long, and capturing "error" or "warning" instead is just wrong. Huh, ok... so I guess this PR disagrees with me from 5 years ago. I like to think I learned and improved in the mean time 😉 If you want to keep it as is that's fine, I'll fork it. |
|
Let's take it. Less options. |




Example output in this mode:
This is trivial to parse, and also has the "source", which we need to make the quick action actually work.