You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for GCC for Linux and GCC for WSL mention the possibility of using Linux wildcards in paths (see section "modifying tasks.json"). However, when I modify the args to include a wildcard, the task wraps the path inside 'single quotes' and single quotes prevent wildcard expansion (this also happens when there are spaces in the path).
I found that the workaround should be to create an object that specifies a weak quoting mode. Unfortunately, the task fails silently when I change "${fileDirname}/*.c" to {"value": "${fileDirname}/*.c", "quoting": "weak"} with no indication for what the problem is. By failing silently I mean that nothing happens when I press the run button or CTRL+SHIFT+P > C/C++: Run C/C++ File.
I'm not interested in what the workaround is, but that the documentation includes a working example of selecting all files ending with .c from a folder.
Attachments: tasks.json
Thank you in advance!
Edit: Note that "${fileDirname}/main.c" works, but targets only a single file. For targeting multiple files I have to add them all manually to the tasks.json.
The text was updated successfully, but these errors were encountered:
The documentation for GCC for Linux and GCC for WSL mention the possibility of using Linux wildcards in paths (see section "modifying tasks.json"). However, when I modify the args to include a wildcard, the task wraps the path inside 'single quotes' and single quotes prevent wildcard expansion (this also happens when there are spaces in the path).
I found that the workaround should be to create an object that specifies a weak quoting mode. Unfortunately, the task fails silently when I change
"${fileDirname}/*.c"
to{"value": "${fileDirname}/*.c", "quoting": "weak"}
with no indication for what the problem is. By failing silently I mean that nothing happens when I press the run button orCTRL+SHIFT+P
>C/C++: Run C/C++ File
.I'm not interested in what the workaround is, but that the documentation includes a working example of selecting all files ending with
.c
from a folder.Attachments: tasks.json
Thank you in advance!
Edit: Note that
"${fileDirname}/main.c"
works, but targets only a single file. For targeting multiple files I have to add them all manually to thetasks.json
.The text was updated successfully, but these errors were encountered: