Skip to content

Instantly share code, notes, and snippets.

@debu999
Created May 29, 2023 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debu999/042e33b556fd253f5f28e43559c0af21 to your computer and use it in GitHub Desktop.
Save debu999/042e33b556fd253f5f28e43559c0af21 to your computer and use it in GitHub Desktop.
QUARKUS VSCODE CMDER AKA CONEMU

If using cmder do use a custom shell executable to run tasks else you might find source file not found issue.

"windows": {
    "options": {
      "shell": {
        "executable": "cmd.exe",
        "args": [
          "/d", "/c", "[cmder_root]\\vendor\\init.bat", "&&"
        ]
      }
    }
  }

Above resolves the issue. Refer to the link for more details. cmderdev/cmder#1985

// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"preLaunchTask": "quarkus:dev",
"type": "java",
"request": "attach",
"hostName": "localhost",
"name": "Debug Quarkus application",
"port": 5005
}
]
}
{
"java.compile.nullAnalysis.mode": "automatic"
}
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"windows": {
"options": {
"shell": {
"executable": "cmd.exe",
"args": [
"/d", "/c", "[cmder_root]\\vendor\\init.bat", "&&"
]
}
}
},
"tasks": [
{
"type": "shell",
"isBackground": true,
"problemMatcher": [
{
"owner": "quarkus",
"fileLocation": [
"relative",
"${workspaceFolder}/src/main/resources/templates"
],
"pattern": [
{
"regexp": "\\[(\\d+)\\]\\s(.*):(\\d+):(\\d+)\\s\\-\\s{(.*)}:\\s(.*)$",
"file": 2,
"line": 3,
"column": 4,
"message": 6
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "^.*Scanning for projects...",
"endsPattern": "(^.*Quarkus .* started in .*\\.)|(^.* ERROR .* Failed to start)"
}
}
],
"group": "build",
"label": "quarkus:dev",
"command": "mvn",
"args": [
"-Dquarkus.http.port=3000",
"quarkus:dev"
],
"options": {
"env": {"QUARKUS_PROFILE": "local"}
},
"windows": {
"command": "mvn -Dquarkus.http.port=3000 quarkus:dev "
}
},
{
"type": "shell",
"isBackground": true,
"problemMatcher": [
{
"owner": "quarkus",
"fileLocation": [
"relative",
"${workspaceFolder}/src/main/resources/templates"
],
"pattern": [
{
"regexp": "\\[(\\d+)\\]\\s(.*):(\\d+):(\\d+)\\s\\-\\s{(.*)}:\\s(.*)$",
"file": 2,
"line": 3,
"column": 4,
"message": 6
}
],
"background": {
"activeOnStart": true
}
}
],
"group": "build",
"label": "package -Pnative",
"command": "./mvnw package -Pnative ",
"windows": {
"command": ".\\mvnw.cmd package -Pnative "
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment