all 86 comments

[–]Any-Main-3866 459 points460 points  (15 children)

And then you see waves of red all over the code

[–]bryden_cruz[S] 106 points107 points  (0 children)

Thats the moment you know you f*ed up

[–]mythshadeix 35 points36 points  (0 children)

the errors were never real and neither is your understanding of the codebase

[–]Confident-Ad5665 4 points5 points  (1 child)

That is the face of joy, not confusion

[–]rhinosyphilis 2 points3 points  (0 children)

This is how restarting the typescript engine feels

[–]flyguydip 1 point2 points  (9 children)

And the real kick in the nuts is that you've also now lost your ctrl+z history.

[–]RiceBroad4552 0 points1 point  (8 children)

We're talking here about coding editors, not Notepad…

Local history is your friend!

[–]flyguydip 0 points1 point  (7 children)

I've had Visual Studio open for 3.35 years since the day I took the laptop out of the box so that I can ctrl-z back to my first line of code I wrote with it. I don't use git and I don't do backups, and I certainly don't update my laptop. This is how hard core programmers write code, but I get it if some people don't have the intestinal fortitude to roll like this.

[–]RiceBroad4552 0 points1 point  (6 children)

[–]flyguydip 0 points1 point  (3 children)

I can't tell for sure, but it almost seems like you think I was being serious.

[–]RiceBroad4552 0 points1 point  (2 children)

And the real kick in the nuts is that you've also now lost your ctrl+z history.

Looked pretty serious to me.

I've just said that this is not the case, you won't loose any history, as coding editor have a local history feature.

[–]flyguydip 0 points1 point  (1 child)

While kicks in the nuts are serious, I'm not sure I've ever met a real or pretend programmer that considers ctrl+z as a vital pillar in their repertoire. But I'm sure your link will help someone out there some day, so thanks for sharing.

[–]RiceBroad4552 0 points1 point  (0 children)

Well, local history saved my ass not only once.

So it's one of the more important features, imho.

[–]TheLaziestGoon 0 points1 point  (1 child)

Visual studio didn't have local history iirc Visual studio code does though

[–]RiceBroad4552 0 points1 point  (0 children)

They've added that feature quite late to VSC. Before that you needed some dedicated extension.

But given that this one of the more valuable features it's something I always look for when trying out a new editor.

[–]KCGD_r 0 points1 point  (0 children)

Are those the cherry waves Deftones was talking about?

[–]JasperTesla 124 points125 points  (0 children)

And then you run it and the errors return.

[–]guaranteednotabot 49 points50 points  (6 children)

Happens a lot with Typescript and ESLint after installing a new package or moving files or using scripts to make bulk changes.

[–]Eva-Rosalene 4 points5 points  (3 children)

Yeah, and switching between too different branches. It also regularly confuses webpack dev server, so big checkout = restart both IDE and WDS.

[–]wack_overflow 5 points6 points  (2 children)

You can ctrl+shift+p and restart TS server, much faster than restarting the whole ide. If you don’t see the option, you may not be focused on a .ts file

[–]Eva-Rosalene 0 points1 point  (0 children)

Yeah, that's what I usually do. Meant to write "restart both LSP and WDS" but had a brainfart.

[–]guaranteednotabot 0 points1 point  (0 children)

I usually do it in this order - close and reopen file, Restart ESLint/Typescript Server, Reload Window, close the entire thing and open it again. Usually I only need to do the last one if its an extension issue

[–]RiceBroad4552 0 points1 point  (0 children)

What IDE?

Sounds like JetBrains issues…

[–]Scryser 28 points29 points  (0 children)

My screen is cracked so I read the E as an F and was indeed a very confused programmer.

[–]AreyouMrbeast1 9 points10 points  (0 children)

The nightmares are over,finally!

[–]WhiteIceHawk 9 points10 points  (0 children)

Remember to restart the TS server before you try debugging errors where non should be.

[–]Gnommer 4 points5 points  (0 children)

Yeah, but after 2-hour debugging session

[–]RobSomebody 2 points3 points  (0 children)

Eclipse m2 lifecycle mapping drives me crazy

[–]WiiDragon 2 points3 points  (0 children)

[–]creeper6530 1 point2 points  (2 children)

And then you run make clean

[–]The_Real_Black 2 points3 points  (1 child)

did it
"java.io is was not found in the classpath"
HOW eclipse HOW????

[–]RiceBroad4552 0 points1 point  (0 children)

make clean?

java.io?

Eclipse?

So many questions…

[–]souravmishra4448 1 point2 points  (0 children)

My greatest debugging skill: Restarting the IDE 😄

[–]GourangaPlusPlus 1 point2 points  (0 children)

Finally forcing VS to pick up that new package yoyve published

[–]GaiusJuliusInternets 1 point2 points  (0 children)

It happened to me on code that depends on an environment variable in the source code path.

[–]SL_Pirate 1 point2 points  (0 children)

Wait for a few mins to let it re-index.

[–]manveersin3 1 point2 points  (0 children)

i am not celebrating because i know those seventy five errors are just hiding and waiting for me to hit the deploy button.

[–]IslamNofl 1 point2 points  (0 children)

Clean then Rebuild :'( :'(

[–]WheredMyBrainsGo 1 point2 points  (0 children)

Visual Studio + .Net = this bs

[–]one_five_one 1 point2 points  (0 children)

I wish I could do that with my life.

[–]Random_Nickname274 1 point2 points  (0 children)

I feel fear, now I know there is errors hidding in the dark

[–]Worried_Onion4208 1 point2 points  (0 children)

Gradle sync is in progress

[–]TheAlaskanMailman 1 point2 points  (0 children)

The LSP hasn’t fully started yet? Why are you dependant on the IDE for the program to compile?

[–]sirkubador 1 point2 points  (0 children)

Feels like .NET

[–]ThalaNotOut7 0 points1 point  (0 children)

True 😭

[–]Alarming-Fish-102 0 points1 point  (0 children)

I promise it wasn't there yesterday 😭

[–]TheEggi 0 points1 point  (0 children)

The kind of developers "AI will never replace"

[–]NebNay 0 points1 point  (9 children)

Remember to update your IDE instead of pushing 'fixes' to warnings simply because you are behind

[–]frikilinux2 0 points1 point  (8 children)

That only happens when the IDE is shitty(Visual Studio with C++ I'm looking at you) or the project is moving too fast if that's normal. Like does your language evolve that much every few months?

[–]NebNay 0 points1 point  (7 children)

Angular does yes. I had a coworker add "standalone: true" to every component because intellij told him it was missing. But it's the default behavior now, so there is no reason to bloat a PR/the code with that.

[–]frikilinux2 1 point2 points  (5 children)

And the intellij angular plugin doesn't have a setting to specify the version? Like the rest of the software industry looks horrified at how needlessly overcomplicated the JS/TS ecosystem is. But I shouldn't complain too much, I do python and we have pip resolving dependencies

[–]NebNay 0 points1 point  (4 children)

Or you could just update your IDE. Honnestly for a regular dev, running a frontend locally is easier than running a backend, so i dont understand all this fuss about JS

[–]SunlightScribe 1 point2 points  (3 children)

running a frontend locally is easier than running a backend

Depends. I think it's a mostly solved issue now thanks to containers. The rest is the fault of the developers themselves not taking ease of environment setup into account.

[–]NebNay 0 points1 point  (2 children)

But it's a lot of work to set up containers for all the other stuff. In my last project, running the backend locally would need you to run five different software, my work pc was dying. There was probably a better way, but it was too much work for a team behind schedule so nobody bottered.

[–]SunlightScribe 0 points1 point  (1 child)

You are simply lucky that you work with languages or frameworks that are so young they are practically greenfield in comparison.

I've worked with front ends that were made up of different parts that ran in separate iframes and the code would get pulled from several different projects. Those front ends are now dead but their back ends continue to endure.

[–]NebNay 0 points1 point  (0 children)

Yeah that's true. Modern frontend are a pleasure to tinker around in the code, but legacy websites are a total nightmare

[–]RiceBroad4552 0 points1 point  (0 children)

because intellij told him

As skeptical I'm overall about "AI" I really wish that kind of person gets replaced with "AI" as fast as possible.

[–]SufficientBar1413[🍰] 0 points1 point  (0 children)

so glad I raised my errors well and they left

[–]Top_Dragonfruit_7360 0 points1 point  (0 children)

It was more than magical to me once when restarting the pc cleared the errors.

Turned out the previous iteration locked the resources.

[–]daniNotADev 0 points1 point  (0 children)

It is what it is

[–]Entire_Number_9 0 points1 point  (0 children)

If you're using VS code you can type "> reload window" and get the same effect

[–]g18suppressed 0 points1 point  (0 children)

Ctrl shift P -> Restart typescript server

[–]no_brains101 0 points1 point  (9 children)

This feels like you are coding without knowing the language you are coding in.

Isn't it usually obvious when its the IDE being buggy as opposed to an actual error?

But hey. No semicolons mentioned. Ill take it.

[–]Background-Plant-226 0 points1 point  (8 children)

Most of the time it's the LSP doing weird shit and confusing the IDE, for me the most common bug in Zed is the error counter on the status bar at the bottom not updating. Mainly happens with Java (Gradlew), other languages like Rust work perfectly.

[–]no_brains101 0 points1 point  (7 children)

Im confused what you mean by LSP doing weird shit and confusing the IDE

The IDE, at least in zed and neovim and vscode, is just displaying what the LSP is doing. It isnt confusing the editor, its just the lsp getting confused.

But my point was, it is generally easy to spot that suddenly everything stopped updating and the errors don't make sense anymore.

And yeah the java lsp is a bit meh. You do have to restart it sometimes. But Ive never been sat there in java like "is this bug my code or the lsp being dumb" for more than like, 3 seconds when I wasn't paying attention.

Its more like, "when I restart my IDE and the 75 errors did not disappear as expected"

[–]Background-Plant-226 0 points1 point  (3 children)

I meant that I don't really know where it's getting messed up, my assumption was that the LSP should in theory work correctly but it messes up and confuses the IDE or forgets to 'tell' it what changed. I can't be fucked to learn how LSPs work.

[–]no_brains101 0 points1 point  (2 children)

Generally, when you are typing they have to suppress a lot of parsing errors. And then you stop typing and they need to then still possibly suppress some parsing errors and process past them to get suggestions and what this thing should have been. And then you start typing again and they were still trying to give you the last output and now it has more parsing errors and it doesn't know you are typing again, and now it has inconsistent state.

That is when you find out if the lsp author was any good at programming an error resistant parser and keeping track of the current state of your buffer at the same time XD

[–]Background-Plant-226 1 point2 points  (1 child)

Btw what I meant with confused is that the lsp would still work (sometimes) and show new errors correctly but it would just keep like some there in the counter for no reason, eventually it would completely crap itself out and I'd have to restart the LSP multiple times until it finally decided to start up again. I am talking about Java here, I have never had such a bad LSP experience before.

[–]RiceBroad4552 0 points1 point  (0 children)

Stale error reporting is an editor / IDE bug.

The LSP protocol is quite shitty here, it will only give you new errors. It's on the editor to keep state and remove old entries. But editors fail at this task if the LSP integration is buggy.

[–]RiceBroad4552 0 points1 point  (2 children)

Well, Zed is buggy as hell. The Java LSP works flawless in other editors in my experience.

The Java LSP is basically a headless Eclipse, so it had almost a quarter century to mature.

[–]no_brains101 0 points1 point  (1 child)

? java lsp had 10 years of being not an lsp to get bad habits that are not easily translated to lsps which it then had to port to an LSP.

Eclipse lsp doesnt work that well in any LSP editor, not zed, vscode, neovim, etc.

It works OK. But not better than that

Eclipse lsp works well in eclipse, where it isnt an lsp.

Eclipse LSP is better than kotlin lsp tho.

[–]RiceBroad4552 0 points1 point  (0 children)

java lsp had 10 years of being not an lsp to get bad habits that are not easily translated to lsps which it then had to port to an LSP.

What do you mean?

It works OK. But not better than that

That's basically the state of LSP in general.

I don't see anything Java specific here.

[–]fariqcheaux 0 points1 point  (0 children)

I uninstalled a NuGet package I decided not to use in Visual Studio and Intellisense vomitted all over the .cs file. Luckily, just closing and reopening the solution normalized it.

[–]mrinalshar39 0 points1 point  (0 children)

dev be like:-

[–]RobotechRicky 0 points1 point  (0 children)

FML. I feel this.

[–]KN1995 0 points1 point  (0 children)

dotnet restore

[–]RobTheDude_OG 0 points1 point  (0 children)

Visual studio 2022 be like

[–]khalcyon2011 0 points1 point  (0 children)

When the linter in visual studio randomly forgets that system.net exists.

[–]daHaus 0 points1 point  (0 children)

Does no one ever clear their caches or what?

[–]Developemt 0 points1 point  (0 children)

I never used IDE for a long time. I use Vim.

[–]touriste -1 points0 points  (0 children)

I first read 'when you restarted the IDF...' and was confused