Open segevfiner opened 2 years ago
I believe this is fixed in the Insider's build via #149976 . Can you pls try to repro the issue there?
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
repro reported by @joyceerhl
the problem count is correct because it's driven by other ts
matchers
and it completes w a checkmark bc there are no lines matching that error regexp as shown above
I see the tryBegin
succeeding, but then it ends prematurely because one of the ts
problemMatchers exits from tryFinish
before a match has been found
with this in the buffer
so the issue here is Compilation starting....
happens -> tryBegin
moves on to tryFinish
where it finds Compilation finished
and goes back to looking for the next start pattern match, glossing over the error
@alexr00 it looks like this problem is caused by having multiple problem marchers. Have you seen this in the past?
Joyce said this started happening recently, which surprises me based on what I'm seeing here
Maybe related to #157096 which I also don't think is new
@meganrogge if there haven't been any changes in problem matching then maybe the problem matcher itself changed? I agree that this looks like something that hasn't worked in a long time, if ever.
I believe there's an issue with fork-ts-check-webpack-plugin
and the others.
The extension relies upon errors and warnings being reported via that plugin as described here and that's not happening clearly. It has been updated recently as well - I wonder if those updates are important and haven't been brought into the extension?
In that plugin's vscode usage example, it uses a different version of problem matchers https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/main/examples/vscode-tasks/.vscode/tasks.json#L8
I will look into this again in the next debt week
I have found the following worked for me as a workaround:
"problemMatcher": {
"base": "$ts-webpack-watch",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "."
},
"endsPattern": {
"regexp": "webpack [\\d.]+ compiled"
}
},
},
Does this issue occur when all extensions are disabled?: No
Steps to Reproduce:
yo code
, that uses webpack, and open it in VS Code.extesnion.ts
and close it.npm watch
task.The problem matcher from does seem to be defined correctly by testing its regex manually and the fact that it does match the start and end of webpack compilation and shows the error in the problems panel.
(P.S. Is there any tool in VS Code to make it easier to debug problem matchers?)