-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Contribute problem matcher #24114
Contribute problem matcher #24114
Changes from 4 commits
7477cd1
27aea01
f2251b8
54c4880
832d73a
472103b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,32 @@ | |
"browser": "./dist/extension.browser.js", | ||
"l10n": "./l10n", | ||
"contributes": { | ||
"problemMatchers": | ||
[ | ||
{ | ||
"name": "python", | ||
"owner": "python", | ||
"source": "python", | ||
"fileLocation": "autoDetect", | ||
"pattern": [ | ||
{ | ||
"regexp": "^.*File \\\"([^\\\"]|.*)\\\", line (\\d+).*", | ||
"file": 1, | ||
"line": 2, | ||
"severity": 4, | ||
"message": 5 | ||
}, | ||
{ | ||
"regexp": "^\\s*(.*)\\s*$" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This expression seems to capture all lines. What is the purpose of this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem matcher will not pick up intended errors(NameError, ValueError, etc) if this is removed. |
||
|
||
}, | ||
{ | ||
"regexp": "\\s*(.*Error.*)$", | ||
anthonykim1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"message": 1 | ||
} | ||
] | ||
} | ||
], | ||
"walkthroughs": [ | ||
{ | ||
"id": "pythonWelcome", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above regex seems to only have 2 groups. This will not extract message/severity as far as I understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got rid of message (this shouldnt have any effect because message defaults to 5), and got rid of severity entirely too and that doesnt seem to do anything too. 472103b