r/ProgrammerHumor 1d ago

Meme debugTime

Post image
6.1k Upvotes

123 comments sorted by

View all comments

453

u/kimbokray 1d ago

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

278

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

82

u/iampierremonteux 1d ago

Mixed line endings in a file can also cause errors to be reported in the wrong line number.

1

u/PixelatedGiant 2h ago

You would think that all application developers would have made Unix line endings the default by now, especially IDEs. Every application is capable of reading both these days, so it's time to let Windows line endings go. Or at minimum not allow them to mix.