-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Multi-Line Problem Matcher does not support multi-line messages #24867
Comments
@o-lim For this particular use case why would you need the line 2 and 3 information ? |
In this particular use case, it is easy enough to figure out and fix the error without the additional lines of information. However, imagine the case where you have an error in a C++ template. In such a case the error message can easily extend beyond 2 or 3 lines. Furthermore, the additional lines of information are often essential to understanding and fixing the error. |
Also consider the case with gtest, where the any single line is insufficient:
|
There is also the case of the following format for an error message:
|
A multi line matcher should be able to capture the last type of messages. What we currently don't support to capture a single property over multiple lines (for example if the message spawns multiple lines). Supporting this is not only a problem matcher capability we would need to render the messages as multiline in the problems view as well. Folding them onto one line will not make a good feature. @sandy081 what will currently happen in the problems view if error messages contain new lines ? |
Only single line is shown with .... There is a feature request to support multi line problems - #1927 |
@sandy081 thanks |
Actually dups #9635 |
@o-lim |
VS Code supports defining multi-line problem matchers, but it does not support problems with messages that span multiple lines. Attempting to define a multi-line problem matcher for messages that span multiple lines results in VS Code defining N or N-1 problems for a single problem with N lines, where either the first line of the message is used for each of the N problems or the first line is missing and a separate problem is listed for each of the N-1 lines of the error message.
For example, given the following 3-line compiler error message:
There is no way to define a problem matcher that will contain all 3 lines.
The text was updated successfully, but these errors were encountered: