-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Problem matcher errors are unhelpful #29951
Comments
|
Related: Issue microsoft#29951
Actually, I just found that background was spelled wrong in the code and sent a PR. |
@dlech not sure what you mean by this. "background" is valid member and its values are being respected. And as I said, this issue is more about getting VS code to give more informative error messages for invalid problem matchers, than what's wrong with my individual one (for anyone curious, I was able to fix it by adding a "pattern" object to the problemMatcher (FWIW, this should probably be optional given I don't care about the pattern, I'm only using the problem matcher as a task-watcher, but that's an issue for another day)). |
Agree, that the error message is not very helpful. We have documentation about how to write a problem matcher here: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher |
Yeah, I'm following documentation and a previous matcher I had built, and it doesn't seem to be working in the new project I'm building. This message doesn't provide any insight into what's wrong. I can delete any piece of what I've put in and if I have anything in there, it's giving me this message, so it seems like there's something else going on that can also cause this unhelpful message to appear? |
Tried this out, and I got a number of fairly useful errors in the console:
|
Steps to Reproduce:
Expected:
A helpful error message in the output window that tells me what I did wrong.
Actual:
The error message just echoes my
problemMatcher
config back to me:tasks.json I'm trying:
Reproduces without extensions: Yes
(this issue isn't about what is specifically wrong with this configuration, but the fact that the error message doesn't help me figure that out. But if anyone wants to point me in the right direction, that'd be good too)
The text was updated successfully, but these errors were encountered: