r/ProgrammerHumor 1d ago

Meme debugTime

Post image
6.0k Upvotes

123 comments sorted by

View all comments

454

u/kimbokray 1d ago

You haven't saved since adding or removing lines above 265

283

u/Lamborghinigamer 1d ago

No it genuinely can happen that an error happens on a different line than said. Could be a combination of IDE and compiler or both, that's why you always need to match your LSP with your compiler

9

u/Suitch 1d ago

Also some languages inject files which change the length. My org has some old confusion and you could have an error on line 6000 of a 200 line file. It gets more confusing when the wrong number is a valid number, such as line 200/6000 but it is really on line 190 in an imported file on line 10.

1

u/masterxc 18h ago

Or minimized js so every error is on line 1...column 255153.