Skip to content
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

bug: problemMatcher property can't be defined in the global scope #50523

Closed
dongzhuoer opened this issue May 27, 2018 · 2 comments
Closed

bug: problemMatcher property can't be defined in the global scope #50523

dongzhuoer opened this issue May 27, 2018 · 2 comments
Assignees
Labels
tasks Task system issues

Comments

@dongzhuoer
Copy link

dongzhuoer commented May 27, 2018

task.json

{
    "version": "2.0.0",
    "presentation": {
        "reveal": "silent"
    },
    "problemMatcher": []
    ,
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "echo haha",

            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
        
    ]
}

Task -> Run Task... -> build, it will ask me to "select for which kinds of warnings to scan the tasks output" as if the problemMatcher definition in global scope has not taken effect.

But with the following, everything works fine.

{
    "version": "2.0.0",
    "presentation": {
        "reveal": "silent"
    },
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "echo haha",
            
            "problemMatcher": []
            ,
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
        
    ]
}

If the property does can't be defined in the global scope, please add an explanation is the docs (search "Task properties can also be defined in the global scope")

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

@vscodebot
Copy link

vscodebot bot commented May 27, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the tasks Task system issues label May 27, 2018
@dongzhuoer
Copy link
Author

Sorry for making a duplicate issue #43003.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tasks Task system issues
Projects
None yet
Development

No branches or pull requests

2 participants