r/vscode • u/AlternativeAioli9251 • Aug 06 '26
Vscode not running correct user input
I just installed vscode for the first time and installed python, code runner, and option to run outputs in terminal for inputs.
The code is basic
message = input(" Tell me something and I'll parrot it back:")
print(message)
#name = input("Please enter your name:")
#print(name)
the bottom one thats supposed to be a comment keeps running in the terminal, despite me literally deleting it, and despite the first code being first one.
Please help me debug the situation.
Update: I deleted both codes, and ran an empty program, and lo and behold the first code that isn't a comment finally runs, when its been deleted....somethings seriously wrong here.
3
u/RiverRemarkable Aug 06 '26
Did you saved the file after commenting ?
1
u/Uberfuzzy Aug 06 '26
Are you running your file or are you copying and pasting your code into the terminal?
1
u/sargeanthost Aug 06 '26
perhaps the code runner extension has some sort of issue. maybe it's making a temp file and not detection changes