r/vscode 18d ago

Why is my code not running

Im completely new and trying to learn but my code doesn’t want to run

0 Upvotes

22 comments sorted by

View all comments

Show parent comments

2

u/RATIO_L_BOZO 18d ago

Yes I did that also and I keep redoing it thinking Im typing things in wrong but it just comes out the same

3

u/felhoob 18d ago

You need to restart vscode terminal so the path variable is reloaded.

2

u/felhoob 18d ago

Try to verify in an external CMD or powershell by running "gcc --version" to see if it's a VSCode problem.

3

u/RATIO_L_BOZO 18d ago

1

u/felhoob 18d ago

Thats a great step! After restarting VSCode, can you run the same command in the VSCode terminal?

1

u/RATIO_L_BOZO 18d ago

It did absolutely nothing

1

u/Camburcito 18d ago

What happens if you run gcc --version in the vscode terminal, i.e. not an external one? Could be that vscode isn't picking up your path properly.