Terminal window content, wordwrapped content is not suitable for "problemsMatcher" integration #34908
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
terminal
General terminal issues that don't fall under another label
I have a problem with the multiline problemsMatcher and word wrapped results in the terminal console.
When I integrate jasmine error reports to vscode "problems" tab and my vscode window is small, the reported error lines are cut at the visual width of the terminal window. Because multiline pattern matching works line by line, those wrapped lines doesn't contains whole information and are not consistent any more with my pattern matching regex expressions.
Is there any way to disable word wrapping in the terminal window or do you have any other workaround maybe ?
I tested with two different terminals (Git Bash and win. PowerShell), because both have the same behavior I think the wrapping is at the vscode side ?
Steps to Reproduce:
I describe whole integration between jasmine and vscode in this blog article
create project with jasmine tests, run jasmine in the terminal successfully, then
create task with the content:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "run",
"args": [],
"tasks": [
{
"taskName": "test",
"command": "node_modules/.bin/jasmine",
"type": "shell",
"isBackground": true,
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated"
},
"problemMatcher": {
"owner": "javascript",
"fileLocation": ["absolute"],
"severity": "error",
"pattern": [
{
"regexp": "Message."
},
{
"regexp": "^ ",
"message": 1
},
{
"regexp": "Stack."
},
{
"regexp": "at +.\((.\\*.ts):(\d+):(\d+)\)",
"file": 1,
"line": 2,
"column": 3
}
]
}
}
]
}
run the task with maximized size of the terminal window , pattern matcher does recognize errors and create problem in the problems tab
An error line (where the last regex pattern looks for file, line and column) looks like:
at UserContext.it (c:\Bisaga\Workspaces\learning\mytest\spec\myapi-spec.ts:16:32)
An error line from jasmine is now in the 3 lines instead of the one :
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: