Why is it showing makefile not found? - visual-studio-code

The code is not compiling on VSCode. I am using the MingW compiler for C++ and it's showing this:
Earlier, the terminal that I was using was powershell integrated into VSCode, which showed this error , but now the above is happening when I am using Git Bash terminal.
I have tried searching on internet but couldn't find anything helpful. What should I do from here?
Any help will be appreciated!

Related

VS Code doesn't open an external terminal for debugging

I am trying to set up vscode so that I have an external terminal when debugging but so far I have not succeeded.
I've tryed to search my problem but the solutions i found are not working.
here is my launch.json.
I've tried unistalling and reistalling MinGW and VSCode but that didn't solve the problem

C++ Codes Not Running In VS Code

I was using C++ in VS-Code for the past few months. A week back I installed python and used it in VS Code. Two days back I also installed Anaconda Navigator (Jupiter Notebook)
Now, I am unable to run C++ code in VS Code. On pressing the code run button in VS Code, the terminal shows the following output and then nothing happens:
cd "e:\Code\DSA\" ; if ($?) { g++ first.cpp -o first } ; if ($?) { .\first }
Can someone pls help me fix it. I tried to find a solution through Google, read few threads on Stackoverflow too but unable to understand what to do.
Uninstalling Anaconda Navigator fixed the issue.
Read Anaconda Navigator installation guide, found out that I messed up with environment variables.

Is there a reason why my VScode CLI doesnt recognise standard commands?

I am inputing commands into my CLI to run my source code yet it doesn't recognise these standard commands. I have updated my includepath, that became effective as I noticed the squiggles no longer appeared under the text in my source code, but I am unable to run my code from the command terminal for some reason. For some context, I am using C language. My question please is what could be the reason why linux os refuses to understand simple commands such as ' g++ --version'? Any help would be appreciated, thanks.

Why do no programs run in visual studio code?

I recently got a new computer and reinstalled visual studio code but I haven't been able to run any of my files. The error has occurred with both python and C++, so I feel as though it is the IDE that is the problem. I have looked online and there are no straight answers as I have tried following some solutions which have resulted in different errors.
The error above comes up when I run (F5) a simple line of code in c++. Does anyone have a solution?
Thanks, Jacob
[EDIT]
For my python files to work I have to manually select 'Python: current file' but for c++ files they still have the same error.
First step, uninstall python from this machine.
Second, reinstall and make sure that you check the box "add to path".
It's pretty easy to miss as it's a small box, and I missed it my first time installing python earlier in the year. Here's the box you may have missed while installing.
It could be your extensions.
I had a similar error message and simply updated all of my extensions and then my SDK. I was then able to run my code within the IDE. I was using VSCode for c++ and also updated my GCC compiler along with the extensions.
Also look into your computer's environment variables, if you have changed the %PATH variables it may be affecting your ability to run/compile programs.

Input does not work in Visual Studio Code

So I just started learning programming and I think something is messed up with my code runner in Visual Studio Code. When I try to use input in Python I can not write anything in the terminal. This problem came out recently. It writes that when I try to input anything that it "cannot edit in read-only editor". I also checked in here what could be the solution, but it did not help. Input still does not work. I am on Linux, and I also tried to uninstall the program and code runner as well, none of them worked so far.
Ps: I tried the Code-runner: Run in Terminal box check method, which did not work at all.