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

Use variant Variables not only in settings.json but also in tasks.json #3432

Open
WAleemS opened this issue Nov 9, 2023 · 3 comments
Open
Assignees
Milestone

Comments

@WAleemS
Copy link

WAleemS commented Nov 9, 2023

Brief Issue Summary

Using variables like ${variant:buildType} in settings.json works.
For example:
settings.json:
...
,
"cmake.buildDirectory": "${workspaceFolder}/cmake_build/${variant:Target}/${variant:buildType}/GCC_ARM",
...
Using the same Variables in tasks.json does not get substituted:
tasks.json:
...
,
{
"label": "echo",
"type": "shell",
"command": "echo ${variant:Target}"
},
...
Runnign task "echo" just prints ${variant:Target} without substituting the currently selected varaint buildType

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

@snehara99
Copy link
Contributor

@WAleemS thank you for bringing this to our attention. We'll add it to our backlog and work on it as soon as we have capacity.

@snehara99 snehara99 added this to the Backlog milestone Nov 14, 2023
@github-project-automation github-project-automation bot moved this to Needs Triaging in CMake Tools Nov 21, 2023
@github-project-automation github-project-automation bot moved this to Triage Needed in CMake Tools Nov 29, 2023
@gcampbell-msft gcampbell-msft moved this from Triage Needed to Ready to be Assigned in CMake Tools Nov 29, 2023
@andreeis andreeis self-assigned this May 20, 2024
@LittleDeD
Copy link

Hi!
Any updates on this?
My projects rely on multiple variants and a lot of tasks and it will save me a lot of time in writing and using the tasks.

@v-frankwang
Copy link
Collaborator

@LittleDeD Thank you very much for your reply, there's not much update about this issue yet, we'll get back to you as soon as possible if there's any subsequent update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready to be Assigned
Development

No branches or pull requests

5 participants