From f16b7bf82b1e3e9f605393669c9a7308744a7054 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Sun, 20 Apr 2025 17:40:56 +0200 Subject: [PATCH] dev: tasks to compile in vscode bypassing `alr` (#1941) --- .vscode/tasks.json | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 76570ed1..fbc1320d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,34 +3,42 @@ "tasks": [ { "type": "shell", - "command": "gprbuild -j0 -p -P alr_env.gpr", - "problemMatcher": [ - "$ada" - ], + "command": "gprbuild -j0 -p -P alr_env.gpr -cargs -gnatef", + // -gnatef needed for the problem matcher to locate the file + "problemMatcher": "$ada", "label": "Alire: Build alr", - "group": "build" + "group": "build", + "presentation": { + "revealProblems": "onProblem", + "showReuseMessage": false, + "panel": "dedicated", + "clear": true, + } }, { "type": "shell", - "command": "gprbuild -ws -c -f -s -u -P alr_env.gpr ${file}", - "problemMatcher": [ - "$ada" - ], + "command": "gprbuild -ws -c -f -s -u -P alr_env.gpr ${file} -cargs -gnatef", + // -gnatef needed for the problem matcher to locate the file + "problemMatcher": "$ada", "label": "Alire: Compile current file", - "group": "build" + "group": "build", + "presentation": { + "revealProblems": "onProblem", + "showReuseMessage": false, + "panel": "dedicated", + "clear": true, + } }, { "type": "shell", "command": "gprclean -r -P alr_env.gpr", - "problemMatcher": [ - "$ada" - ], "label": "Alire: Clean all projects", "group": "build" }, { "type": "shell", "command": "${workspaceFolder}/testsuite/venv/bin/python3", + "label": "Alire: Run testsuite", "args": [ "${workspaceFolder}/testsuite/run.py", "-M1", @@ -39,11 +47,10 @@ "cwd": "${workspaceFolder}/testsuite" }, "problemMatcher": [], - "label": "Alire: Run testsuite", "group": { "kind": "test", "isDefault": true } } ] -} \ No newline at end of file +} -- 2.39.5