-
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
$msCompile
problem matcher has issues with wrapped lines
#150285
Comments
$msCompile
problem matcher has issues with wrapped lines
@meganrogge in case you want to take a look at this. |
There are two workarounds (that are horrible)
|
Still an issue. |
|
Still an issue with with >= 1.80.0 version it seems. I raised a discussion on this over at cpptools also: |
I have found the cause of this problem. My first variant of tasks,json was like this: {
"version": "2.0.0",
"tasks": [
{
"label": "build dotnet example",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"${workspaceFolder}\\MyProject.csproj"
],
"problemMatcher": "$msCompile"
}
]
} With that config I had had truncated messages inside Problems tab. Then I added the value ForceNoAlign (don't align the text to the size of the console buffer) to parameter consoleloggerparameters and it solved the problem. True example: {
"version": "2.0.0",
"tasks": [
{
"label": "build dotnet example",
"command": "dotnet",
"type": "shell",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:'ForceNoAlign;NoSummary'",
"${workspaceFolder}\\MyProject.csproj"
],
"problemMatcher": "$msCompile"
}
]
} For now, it does not matter what the size of the window. All messages in the Problems tab are not truncated. |
That solution only applies to dotnet and msbuild tasks. |
Yes, I think we need a more general solution. For example, in my case I'm using PMD and other command line programs to generate messages. |
A general solution is to enable the problem matchers to consume the output inside a file. |
Duplicate: #85839, #127073.
Ran using terminals:
Git Bash
,Command Prompt
,Power Shell
. All the same.Problem matcher:
$msCompile
I don't have any terminal related settings in settings.json (except for default terminal).
Does this issue occur when all extensions are disabled?: Yes (even with disabled Omnisharp)
Steps to reproduce are all the same as in duplicate issues:
Any workarounds for now?
The text was updated successfully, but these errors were encountered: