Skip to content

The $msCompile problem matcher does not match warnings/errors with a three character code #113639

Closed

Description

  • VSCode Version: 1.52.1
  • OS Version: Windows_NT x64 10.0.19042

The $msCompile problem matcher, as defined, only matches on compiler warning/error output that contain one or two word characters. Specifically, this part:

(\w{1,2}\d+)

https://github.com/microsoft/vscode/blob/master/src/vs/workbench/contrib/tasks/common/problemMatcher.ts#L1209

That works for the usual suspects, like compiler errors (CS) and code analysis (CA), but not for third-party tools that may choose longer codes, like Security Code Scan (SCS).

As far as I can tell, third-party analyzers are allowed to generate their own codes and three character codes are not unheard of.

Steps to Reproduce:

  1. Install the Security Code Scan package
  2. Write something insecure, that triggers a warning
  3. Build

Does this issue occur when all extensions are disabled?: Yes

Activity

  1. added
    feature-request
    tasks
    on Jan 5, 2021
  2. vscode-triage-bot commented on Jan 5, 2021

    @vscode-triage-bot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. added a commit that references this issue on Jan 6, 2021
    983bd69
  4. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 6, 2021
  5. AnthonyMastrean commented on Jan 7, 2021

    @AnthonyMastrean
    Author

    Just noticed that this will now match MSB warnings, too! That's good, right?

    /usr/share/dotnet/sdk/3.1.404/Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3277: Found conflicts between different versions of "System.Text.Json" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. [/home/anthony/example/Example.csproj]
    

    https://regex101.com/r/ervjcY/1

  6. added
    author-verification-requested
    verification-needed
    on Jan 18, 2021
  7. github-actions commented on Jan 18, 2021

    @github-actions
    Contributor

    This bug has been fixed in to the latest release of VS Code Insiders!

    Anthony Mastrean (@AnthonyMastrean), you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text /verified to let us know. If not, please ensure you're on version eaa959d of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  8. added
    verified
    on Jan 28, 2021
  9. locked and limited conversation to collaborators on Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

author-verification-requestedfeature-requestinsiders-releasedtasksverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions