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
I am working on a project where input.txt is in the same level as the file to compile.
However, the outputs are found in /root/output/
Running the file through the extension keeps the cwd to /root/ and the input file won't be found.
I am unable to find any sort of documentation to find a solution to my issue.
The cwd property for tasks.json seems to only apply to the compiler part.
Is forsaking the extension's Run C/C++ File the only option for me?
I had success for changing the cwd for launch.json for debugging but it doesn't apply for running the program.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am working on a project where
input.txt
is in the same level as the file to compile.However, the outputs are found in
/root/output/
Running the file through the extension keeps the
cwd
to/root/
and the input file won't be found.I am unable to find any sort of documentation to find a solution to my issue.
The
cwd
property fortasks.json
seems to only apply to the compiler part.Is forsaking the extension's Run C/C++ File the only option for me?
I had success for changing the
cwd
forlaunch.json
for debugging but it doesn't apply for running the program.Here is my
tasks.json
Beta Was this translation helpful? Give feedback.
All reactions