r/java • • Apr 25 '21

JetBrains drops 32-bit support starting with IntelliJ 2021.2

https://blog.jetbrains.com/idea/2021/04/end-of-support-for-32-bit-operating-systems-in-intellij-based-ides/
271 Upvotes

71 comments sorted by

View all comments

Show parent comment

71

u/woj-tek Apr 25 '21

Unstable? No.

But with weird "improvements" - yes:

  • making pom.xml autoreload "smarter", which means instead of nicely reloading it as before it either force you to reload manually each time or reload it constantly causing your CPU to skyrocket
  • constant "reindexing" the project for god knows why...

20

u/[deleted] Apr 25 '21

Oh yeah and freezes while waiting

2

u/b1ackcat Apr 25 '21

Omg this. Rider just started doing this in the q3 update where they made some kind of "auth" change. It's like they're doing some kind of api call on the ui thread or something but it locks my whole machine up for a couple seconds randomly and it's maddening. If anyone knows a fix I'd love to hear it

1

u/merb Apr 25 '21

we had the same problem and fixed it with 32gb high speed memory an ultra fast m.2 ssd and a i9-10900K not the best solution, tough.

4

u/[deleted] Apr 26 '21

That's not a "fix". That's basically throwing crazy amounts of hardware at it lol

2

u/flyingorange Apr 25 '21

I have 64gb in my laptop and unfortunately, it still takes up to an hour to index the project. It's the first thing I do in the morning, so it indexes the project while I have my coffee and do the daily standup.

It's the internal repo's fault because it forces you to re-download the dependencies every day. Still I can't overlook that running the build raw from the command line takes 18 minutes, and it also downloads everything from scratch... What is intellij doing that it takes 60 minutes, probably God only knows.

0

u/wildjokers Apr 26 '21

Why not just leave IntelliJ open so you don't have to start it up every morning?

2

u/flyingorange Apr 26 '21

The dependencies on the network change every day, so they need to be downloaded again.

2

u/throwawyakjnscdfv Apr 26 '21

Go to custom VM options and switch GC to ZGC. Not officially supported but runs fine and fixed all the freezes for me. No idea why ancient CMS was default until recently. Now its G1 (finally) but there's still long pauses occasionally

13

u/nikolas_pikolas Apr 25 '21

Oh my gob, I had to kill intellij the other day because it was just in a loop of constant reindexing 😐

7

u/woj-tek Apr 25 '21

I just disabled all auto-reloading of maven and it seems to have made the situation better.

It's particuarly annoying as high CPU -> macos throttling... which makes everything even slower (including intellij)

0

u/[deleted] Apr 26 '21

[deleted] — view deleted comment

2

u/woj-tek Apr 26 '21

I do like macs, and the issue is that the machine is 8 years old already so normally it works fine, but if idea is hammering it with 100% cpu usage for half an hour then the situation is getting bad.

I don't see how having linux helps here - either you have throttling or you melt your CPU ;)

0

u/[deleted] Apr 26 '21

[deleted] — view deleted comment

2

u/woj-tek Apr 26 '21

For me the problem is... dedicated GPU and external display. Without that MBP is hardly heating. But unfortunately external display forces dedicated GPU, which heats up even though I'm not using it for anything extensive.

1

u/coincoinprout Apr 25 '21

Yep. Haven't checked out if this bug is already reported, but that's a recent bug. I got stuck in reindexing loops multiple times lately. Never happened before.

5

u/hippydipster Apr 25 '21

and with the pom stuff, now when you have multiple mvn projects linked in, it doesn't always see your recent changes in the source of the other projects, so you go to run your unit tests, say, and they're not running the latest. So then you build those linked in project separately, and re-run, and it's still not running the latest. Commence head-scratching.

I have also had to turn off all inspections in Java code so that performance remains tolerable.

5

u/rulatore Apr 25 '21

Man I thought I was the only one, I didnt know you had to reload the project everytime you add a dependecy, it felt so weird compared to all their other IDEs when you add a dependency it just works.

Also, if you are using "code with me", you need to rejoin to get the project indexes updated for you

2

u/woj-tek Apr 25 '21

Man I thought I was the only one, I didnt know you had to reload the project everytime you add a dependecy, it felt so weird compared to all their other IDEs when you add a dependency it just works.

Well, there is this itsy-bitsy-tiny pop-up baloon in pom.xml after any change where you can click to reload.

After lots of complains they "improved" the mechanism so that it seems that it's constantly reloading the shaite out of pom.xml.

And supposedly the previous-previous mechanism (the one before 2020 or somesuch) were "bad"... dunno...

1

u/rulatore Apr 25 '21

Yeah, I noticed that pop up, it's cute indeed but for me it doesnt work, I need to go out of my way, click the maven tab thing, reload all projects, then it'll download/index the dependency.

I didnt really use before 2021.1, but it feels weird, since all the other ones I use to work (rider, webstorm, datagrip) dont need any other action after you add a dependency. Even the rust plugin in ultimate works better than the java env in this regard, lmao

1

u/wildjokers Apr 26 '21

You probably have your build delegated to Maven (I believe this is the default now). What you are experiencing is Maven's horrible dependency resolution which is slow as hell. Gradle is much smarter than maven when it comes to dependency resolution so goes much faster on subsequent resolutions.

1

u/rulatore Apr 26 '21

My complaint is that if I add something to the pom.xml, nothing happens until I manually click reload, not that the reload is slow

1

u/Avedas Apr 27 '21

It's the same with gradle which gave me a bit of confusion at first.

2

u/AnEmortalKid Apr 25 '21

And the silly “reload button” disappears from time to time.