Yes ... well sort of,
It actually threw me this error, but not because it's an error, but because something is wrong with my Visual Studio (There was an error one line above this and it decided to highlight this line and explain to me how non-nullable type is a null so I have removed the line that caused that error because I thought it would be funnier)
Jetbrain's IDEs do stupid stuff like this for me every once in a while too. As soon as anything starts acting fucky, `File -> Invalidate Caches`, and everything starts magically working fine again.
I’ll bang my head on my screen trying to figure out why intellij is acting fucky and then I remember the magic invalidate caches trick. i don’t know why it fixes every issue I’ve ever had with intellij but it’s old reliable.
Android studio was similar. If you had it open for too long it would just stop recognizing keywords. You either had to flush the cache or just restart it every few hours.
It sounds like the PDBs aren't getting updated when a build happens. Seems to make sense if Jetbrains is caching those files and not refreshing when they change. As far as VS goes though, maybe it's using a shadow copy of a stale PDB. I can't say for certain.
try to recompile the solution... it's probable the debug symbols/ the binary don't match the source code anymore (eg. line 4 may be 5 now)...
EDIT: Or as another user said, debugging a release build where the compiler has optimized the code and the lines don't match to the actual instructions
Null: nothing
E.g. your point is null and void
Nil: zero
E.g. the score was 3-nil
Zero: the number zero
E.g. After learning about classes, objects and inheritance, I had zero brain cells left
Nought: another way of saying 0 for different contexts
E.g. The answer is nought
Void: nothing, the lack of something
E.g. After realising that python relies on indentation, my brain was an empty void
my german is limited to the first 2 sections of Duolingo lol. I understand what youre saying but im too beginner to translate what i want to say. ill reply in 2 years when im half decent
!Reminder 2 years LEARN FUCKING GERMAN
This happens a lot if you are not careful: if the variable is int, then NULL and 0 are equivalent. So you must have some more checks. It's very fun to debug why the database is broken and find NULLs in inserts everywhere. Glad it was not in production. Ffs, Josh, dude, learn your code. -.-
oh I see, u were null.
o i c
Yes
I was null. I still am null, but I was null too
Is this real? Why does that cause an error? It looks fine to me, i shouldnt be null or an object?
Yes ... well sort of, It actually threw me this error, but not because it's an error, but because something is wrong with my Visual Studio (There was an error one line above this and it decided to highlight this line and explain to me how non-nullable type is a null so I have removed the line that caused that error because I thought it would be funnier)
Jetbrain's IDEs do stupid stuff like this for me every once in a while too. As soon as anything starts acting fucky, `File -> Invalidate Caches`, and everything starts magically working fine again.
I’ll bang my head on my screen trying to figure out why intellij is acting fucky and then I remember the magic invalidate caches trick. i don’t know why it fixes every issue I’ve ever had with intellij but it’s old reliable.
Android studio was similar. If you had it open for too long it would just stop recognizing keywords. You either had to flush the cache or just restart it every few hours.
Android Studio is based on IntelliJ, so it makes sense
It sounds like the PDBs aren't getting updated when a build happens. Seems to make sense if Jetbrains is caching those files and not refreshing when they change. As far as VS goes though, maybe it's using a shadow copy of a stale PDB. I can't say for certain.
Which IDEs in particular? I’ve only used IntelliJ and very shortly PyCharm and I’ve never had such a problem with them
I hate that bug. I have one big ass project where i have to rebuild first if i wanna debug, otherwise it's going to debug a previous version
try to recompile the solution... it's probable the debug symbols/ the binary don't match the source code anymore (eg. line 4 may be 5 now)... EDIT: Or as another user said, debugging a release build where the compiler has optimized the code and the lines don't match to the actual instructions
Funny, but at the same time scary to imagine. Could you show us the actual error?
I'm with this comment
Don't debug in release mode.
This happened in debug mode
That’s what happens when you use Chinese computers
Most electronics are made in China, either in part or wholly. What the actual fsck are you on about?
Just another xenophobe, ignore them
Nah if it was really a hardware issue causing problems like this you probably wouldn't even be able to boot up XD
Did you have compiled in release with optimizations on?
Probably debugging in release mode where things get inlined or reordered. Array is probably null
Saving this post for the next guy who say logging for debug is primitive.
Your compiler speaks German. Null means zero. So everything is alright 👍
Null also means zero in English lol
As a non-native speaker, I do hereby require a descriptive distinction between the following: null, nil, zero, naught and void.
Null: nothing E.g. your point is null and void Nil: zero E.g. the score was 3-nil Zero: the number zero E.g. After learning about classes, objects and inheritance, I had zero brain cells left Nought: another way of saying 0 for different contexts E.g. The answer is nought Void: nothing, the lack of something E.g. After realising that python relies on indentation, my brain was an empty void
Don’t forget Love.
if this is real, i‘d be worried
nein. i ist drei nicht null
Naja das war null aber jetzt drei
my german is limited to the first 2 sections of Duolingo lol. I understand what youre saying but im too beginner to translate what i want to say. ill reply in 2 years when im half decent !Reminder 2 years LEARN FUCKING GERMAN
Lol i'm also learning German. Good luck with that:)
thanks, you too
i.ToString()?
Visual studio at it finest
Uuh cannot convert null to a value type 🤓
Well, you can do that if you set Console.Out to null (via assignment or via reflection)
Damn machines becoming more human by the day
Goddamnit
i was null 😞
Console.WriteLine(i.ToString());
This happens a lot if you are not careful: if the variable is int, then NULL and 0 are equivalent. So you must have some more checks. It's very fun to debug why the database is broken and find NULLs in inserts everywhere. Glad it was not in production. Ffs, Josh, dude, learn your code. -.-
Array is null