Vscode-java: Launching Compilation through tasks.json - recommendation for problemMatcher

Created on 9 Dec 2016  路  3Comments  路  Source: redhat-developer/vscode-java

What's the recommendation for a configure problemMatcher in tasks.json?

Environment
  • Operating System: RHEL7
  • JDK version: 8
  • Visual Studio Code version: 1.7.2
  • Java extension version:
need info

Most helpful comment

I use VS Code to build android projects using Gradle. Would be nice to have the PROBLEMS tab show errors & warnings from Gradle, Java, and C++ code.

All 3 comments

We're not using problemMatchers so I can't really help other than say just follow the instructions from https://code.visualstudio.com/Docs/editor/tasks#_defining-a-problem-matcher.

But the java extension already returns compilation or syntax errors. What exactly are you trying to achieve?

Not sure if its the scope of this extension but it'd be nice if an extension defined $java as in you could use

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "someTask",
            "type": "shell",
            "command": "java -jar path/to/my.jar",
            "problemMatcher": ["$java"],
        }
    ]
}

in task.json

I use VS Code to build android projects using Gradle. Would be nice to have the PROBLEMS tab show errors & warnings from Gradle, Java, and C++ code.

Was this page helpful?
0 / 5 - 0 ratings