-
Notifications
You must be signed in to change notification settings - Fork 461
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
The tasks' targets are not resolved when "cmake.buildTask" is used #2970
Comments
piomis since you have contributed to this code before, do you think you can take a look at this issue? Thank you. |
@elahehrashedi I will take a look. |
Seems to be related to #2959 As for an example, the following just runs CMake build as a task. {
"version": "2.0.0",
"tasks": [
{
"label": "Build ",
"command": "/usr/bin/bash",
"args": ["-c", "${command:cmake.tasksBuildCommand}"],
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"clear": true,
"panel": "dedicated",
"echo": true,
"showReuseMessage" : true
},
"options": {
"cwd": "${command:cmake.buildDirectory}"
},
"problemMatcher": "$gcc"
}
]
} I think you need to have With Personally, I prefer using a (generic
But it's also handy when you need to do some things (via task's |
Brief Issue Summary
When searching for matching tasks, we try to compare the targets.
vscode-cmake-tools/src/cmakeTaskProvider.ts
Lines 223 to 232 in b6668bd
However, we don't resolve the targets such as
"${command:cmake.buildTargetName}"
before comparison.The text was updated successfully, but these errors were encountered: