r/java • u/jhg023123 • Apr 09 '20
IntelliJ IDEA 2020.1: Java 14, dataflow analysis assistance in the debugger, LightEdit mode, and more!
https://blog.jetbrains.com/idea/2020/04/intellij-idea-2020-1-released/5
u/gauvoz Apr 09 '20
Does Vim mode works with LightEdit mode?
2
u/wildjokers Apr 09 '20
yes
2
u/gauvoz Apr 09 '20
Yeah, it works when there is another project window opened, but not when LightEdit window is the first and only window, dunno if this is intended or a bug.
1
u/wildjokers Apr 09 '20
Ahh, I never tested light-edit without already having another project open. I bet to make light-edit mode fast they don't load plugins.
1
1
u/1chriis1 Apr 10 '20
How do you even open lightEdit mode? I can't for the love of god.
It shows up IntelliJ Idea as a process running, but no window appears
1
u/wildjokers Apr 10 '20
Go to a terminal and type
idea fileNameYou may have to create a command-line launcher first: Tools -> Create Command-line Launcher.
2
u/ObscureCulturalMeme Apr 09 '20
There's a Vim mode?!
IDEA, I take back at least a third of the bad things I've said about you in the last hour.
All I've ever wanted out of an IDE was "you know, like GVim but with better cross references". If I finally have it, then I can die a reasonably happy man when the virus takes me.
The only thing that would make the editor part of the experience better would be if some unicorn started manufacturing the TouchStream keyboard again.
Off to the plugins menu I go.
3
u/vqrs Apr 09 '20
You know, they tell you about the Vim plugin when you launch IntelliJ the first time under the featured plugin, or at least they did for years. Haven't seen the setup wizard in a while.
They even added a prominent special cased warning just for that plugin so people don't accidentally install it and can't exit IntelliJ anymore :P
1
u/ObscureCulturalMeme Apr 10 '20
The "first time featured plugin" for my new 2019.3 install was for one of the optional appearance themes. It might be another random, or whatever's been most recent released, etc
1
u/DrunkensteinsMonster Apr 10 '20
I think they stopped having IdeaVim be a featured plugin, I had to reinstall ultimate a few days ago and it wasn’t there
4
3
Apr 09 '20
Last time i checked i had trouble using jdk14,i used the most recent version of ijidea but i wasnt able to use records.is this fixed by now?
2
u/wildjokers Apr 09 '20
2020.1 adds Java 14 support.
If it doesn't work open an issue. Did you test out the EAP versions? Did you test Java 14 records in it? If so did you open an issue if they didn't work?
2
Apr 09 '20
There has been an open issue about it when i checked it.the main problem was the jdk wasnt choosable in the project settings.ill check again tho
1
u/thatsIch Apr 09 '20
In the latest EAP it is possible to select JDK 14 and auto-detection with Maven.
1
5
u/ObscureCulturalMeme Apr 09 '20
I really wish I could get more out of the compiler warnings (from an actual build pass) without having to crank up the annoying "inspections" faculties. In the more general case, I wish we had more control over the simple things, and fewer features trying to be smarter than the programmer.
Still, the support for 14 makes me very happy! Looking forward to downloading this once I get home from scavenging for toilet paper.
2
u/vqrs Apr 09 '20
I really wish I could get more out of the compiler warnings (from an actual build pass) without having to crank up the annoying "inspections" faculties.
What exactly do you mean by that?
IntelliJ doesn't have its own compiler and the inspections work based on IJ's own parser and semantic analysis, you couldn't really have the compiler put out the warnings IJ does as far as I understand it.
2
u/ObscureCulturalMeme Apr 10 '20
I don't want the compiler giving me IJ's warnings. I want IJ to understand the compiler warnings. I mean that the compiler emits a warning, and IJ does nothing with it. Doesn't even parse out the line number and highlight the line in the editor; even other very basic IDEs will do that.
With inspections active, of course, it'll warn about all kinds of stuff. A great deal of it is just noise, and sometimes it doesn't warn me about what the actual compiler is warning about.
Trying to change that state of affairs is endless frustration. There used to be a light bulb that would hover over the text we were trying to read until we killed that fucking tedious thing. There's a little slider in the bottom right to reduce the noise from "random advice from our company" down to syntax checking, but (a) it's not simple syntax that causes warnings, and (b) more importantly, the slider is per-file. Tickets requesting a global/per-project control were snidely closed.
I've tried on and off to edit the set of active inspections. It's a mess. The defaults are basically what Jet Brains likes, but to be blunt, I don't give a shit about their opinion because they're not producing the bytecode going to the users. I want to know what the fucking compiler is having beef with.
So yeah, I get compiler warnings, and the IDE doesn't really help me solve them. I click on a line the compiler warns me about, I don't see what the problem is at first, I try their "alt+enter for suggestions", and it offers to... split the arguments to a function call into multiple lines of source. /facepalm
I've long ago learned to live with it. I don't ask it for suggestions and hints and advice. It's not even doing the formal builds. It's just a very good editor with excellent cross reference capabilities, and that's all we use it for. Beyond that it interferes so much it just pisses us all off, so we don't go beyond that. Some tools aid their operators, other tools are speedbumps. IJ keeps trying to be smarter than the humans and it ends up being only a speedbump.
1
u/vqrs Apr 10 '20
Honestly, if it's too much to adjust the inspections to your liking, maybe it isn't the software for you.
0
u/ObscureCulturalMeme Apr 10 '20
Well, for the last year Eclipse randomly crashes and loses the source file -- yes, there's an open bug report, yes it's been reproduced, no nobody has any idea why it's happening -- and Netbeans is fucking garbage. All I want is a good editor with good cross reference and completion capabilities, it's just that I have to keep turning shit off to get that.
1
u/vqrs Apr 10 '20
Well, if you turned them off, no wonder alt-enter won't help you...
1
u/ObscureCulturalMeme Apr 10 '20
It was doing that before I turned them off. That's why I turned them off; they consume resources but don't actually help me do my job.
7
u/nerdyhandle Apr 09 '20
When are they going to fix all the issues with Gradle?
I've been using IntelliJ at work for the past year and it has so many issues with Gradle. It frequently can't run test, fails to sync, tried to sync indefinitely until it runs out of stack space, worse it doesn't even understand build.gradle files, dependencies don't automatically get imported to the build.gradle either eventhough the setting is on, and "enable-auto import" constantly asks if I want it on and I say "yes" every damn time. As for the build.gradle files it always has everything underlined saying it's not correct or some error when there isn't.
Also, there's an annoying bug that when I set my settings for a Project some how these settings get applied to every project I have open. It's as if the multiple instance of IntelliJ are sharing the project settings. It's fucking annoying to have to go back in each project and reset the damn settings.
They need to update the way projects are viewed as well. Multi-level Gradle projects are atrocious compared to Netbeans which is much more easy to navigate.
18
u/wildjokers Apr 09 '20 edited Apr 09 '20
I have none of the Gradle issues you indicate. The gradle support in IntelliJ appears rock-solid to me. Have you opened issues for your problems at https://youtrack.jetbrains.com? A sample project that recreate the issue(s) would help them greatly.
0
u/nerdyhandle Apr 09 '20
I've seen the tickets for every problem I've mentioned on here. They usually get closed after some snarky replies from one of the developers about being unable to reproduce it. I've given up hopes on them ever fixing. I currently have Community 2019.3.3. Some of the issues like the "No test events received" when running tests through IntelliJ have been in their youtrack off and on for years.
18
u/wildjokers Apr 09 '20
They can't fix it if they can't recreate it. For best results try to provide a small sample project that recreates the problem. Issues that include those tend to get fixed pretty quickly.
0
u/thecuseisloose Apr 10 '20
I had the no test events received issue the other day but it was due to a dependency conflict with multiple versions of junit on the classpath. Gradle integration has otherwise been rock solid for me
5
u/MajestryMe Apr 09 '20
Be aware! Lombok plugin doesn't work yet on new version.
10
u/jebbbe Apr 09 '20
If you uninstall, restart IDE and install plug in. It works again. That's the order what did the trick for me. May be there were unnecessary steps.
4
u/zman0900 Apr 09 '20
You can download the latest EAP release from their github and install the zip.
3
u/wildjokers Apr 09 '20
Lombok plugin works for me.
3
u/FoolMan29 Apr 09 '20
There is a warning that says the Lombok plugin is incompatible when you go to update to 2020.1
2
1
u/vxab Apr 10 '20 edited Apr 10 '20
I got the warning and did nothing and it worked anyway. Guess I was lucky.
EDIT: problems appeared, I had to uninstall and reinstall the plugin and it worked.
1
7
0
1
u/HR_Paperstacks_402 Apr 10 '20
I got that warning but went to Plugins in Settings and there was an upgrade that made it work again.
3
1
u/friekert Apr 09 '20
Great stuff. I don’t fancy the new default font and the color scheme however. Changed it back right away.
0
1
1
-57
u/sternone_2 Apr 09 '20
No thank you, Eclipse is doing just fine.
22
u/wildjokers Apr 09 '20
There always has to be one person that wants to start the IntelliJ vs Eclipse vs Netbeans flame war in release threads for IDEs.
-1
u/mc_hambone Apr 10 '20
Is Netbeans still a thing?
3
u/wildjokers Apr 10 '20
Yes, they just had a release last week. Some people really like it. To each their own.
2
-2
0
Apr 09 '20
[deleted]
3
u/DrunkensteinsMonster Apr 10 '20
Alt-enter -> suppress inspection for this file
Or did you mean something else?
2
Apr 10 '20 edited Apr 10 '20
Add the suppressions, along with an explanation of why they’re necessary. They’re more valuable than you think, and your worry about the code clutter is less important than you think. We’re building machines, not living rooms for characters in a Kubrick film.
e: Also, they don’t look completely identical. The kerning on the first is ... nonexistent. The kerning on the second, I think, is still less than would be on an ASCII “Te” (yep, definitely, on an iphone at least).
Tе # First from your comment
Те # Second from your comment
Te # ASCII, quoted just to show the kerning differenceFor those on other platforms: https://imgur.com/gallery/wb1XVDT
22
u/BestKillerBot Apr 09 '20
I like the new commit flow better - I always had trouble with the previous modal dialog that I could not easily check things without closing the dialog (and always had to resize the diff window).