I figured it out. Problem was same. Git shell was not recognizing the path. The path parameter should be in quotes. Below is the fix.
In args, make these changes.
"${file}" -> "'${file}'" "${workspaceFolder}" -> "'${workspaceFolder}'" "${fileBasename'" -> "'${fileBasename}'",
"args": [ "cp", "'${file}'", "'${workspaceFolder}'", "&&", "g++", "'${fileBasename}'", "-o", "test.out", "&&", "./test.out", "<", "input.txt", ">", "output.txt", "&&", "rm", "*out", "&&", "rm", "'${fileBasename}'" ],
thats great if you have figured it out but i have tested my previous task.json file and it is working fine with other machines! I think windows have some issues with file management system though its all working file in Linux.
I had same problems too. After adding extra ( ' ' ) made it successful suggested by kikit. Thanks.
Most welcome.
I will check it and will update the repo
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I figured it out. Problem was same. Git shell was not recognizing the path. The path parameter should be in quotes. Below is the fix.
In args, make these changes.
thats great if you have figured it out but i have tested my previous task.json file and it is working fine with other machines!
I think windows have some issues with file management system though its all working file in Linux.
I had same problems too. After adding extra ( ' ' ) made it successful suggested by kikit.
Thanks.
Most welcome.
I will check it and will update the repo