franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

can't mkdir and cant find the outDebug path #15

Closed rfhits closed 3 years ago

rfhits commented 3 years ago

whiling "build" the task, it can't create the build/Debug dir, after creating the dir manually, it can work.

then I try to "run" the .exe file, it report an error:

/usr/bin/sh: ./buildDebug/outDebug: No such file or directory

I think it might be the "/" and "\" problem, and now I have no idea about how to fix it.😭

https://user-images.githubusercontent.com/70683664/126898062-fc2f773d-db00-4f74-aee1-ed51273ba55f.mp4

franneck94 commented 3 years ago

Hi, this seems to be related with Mingw64. I will change the code such that the folder is created/deleted by the Extension and not by the Makefile.

franneck94 commented 3 years ago

Should be fixed with 1.1.1

rfhits commented 3 years ago

the "build" task can be executed correctly, but the "run" still can't work.

I try several terminals, but all failed.

it seems like the path error.

the video below showed the error.

https://user-images.githubusercontent.com/70683664/126957218-6f4d695a-905e-4bf4-9ec6-2ad5cf34e28d.mp4

franneck94 commented 3 years ago

the "build" task can be executed correctly, but the "run" still can't work.

I try several terminals, but all failed.

it seems like the path error.

the video below showed the error.

20210726_160951.1.mp4

I think the problem is that the extension wants to execute outDebug but on Windows its called outDebug.exe. Since Mingw does not work like cygwin (and unix terminals) this cant be executed. I will look into it. Thats why i highly recommend to use cygwin instead of Mingw.

rfhits commented 3 years ago

ok, I will install cygwin and try it again.

rfhits commented 3 years ago

OK, now it work tho I still miss mingw somehow.

franneck94 commented 3 years ago

Problem should be fixed now.