C
C#2y ago
Syrup

❔ Why does this not work?

The yellow underlined part should work?!?! Its supposed to say whatever the person types in is the username
16 Replies
Jimmacle
Jimmacle2y ago
...does it not work?
Syrup
SyrupOP2y ago
no
Syrup
SyrupOP2y ago
Jimmacle
Jimmacle2y ago
but does it not work that's a warning, it doesn't mean it doesn't work
Syrup
SyrupOP2y ago
let me check Hold on, how do I quick save something to get it to work in the external terminal right away? It is using old code that ive changed
Jimmacle
Jimmacle2y ago
i don't know what that means, to run a C# program you have to build and run it
Syrup
SyrupOP2y ago
Shortcut key for saving your project
Jimmacle
Jimmacle2y ago
saving the source code doesn't rebuild the program automatically you need to stop and re-run the program from your IDE
Syrup
SyrupOP2y ago
How Do I do stop it? Its not using the exact code that I have but the previous that I had
Jimmacle
Jimmacle2y ago
ctrl+c in the terminal will stop a console application i don't use vs code so i don't know if there is a specific button to terminate it
Syrup
SyrupOP2y ago
Alr it works Ty
Jimmacle
Jimmacle2y ago
what the yellow line is doing is telling you that Console.ReadLine() might return null but your code assumes it doesn't so your code will work unless that happens, then it will break
Syrup
SyrupOP2y ago
ok thank you! I did find the problem^ For some reason my external terminal will not build it first. Its using a previous build
Syrup
SyrupOP2y ago
Syrup
SyrupOP2y ago
Its not recognizing that when starting Or as a working thing to begin with
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server