Early Access Program

IntelliJ IDEA 2020.2 EAP2 Is Here with Advanced Exception Stack Trace Analysis, Emoji Support on Linux, and More

The next IntelliJ IDEA 2020.2 EAP build is here with a pack of new features! Download this EAP build from our website, or update to it from the Toolbox App.

As usual, the EAP builds for IntelliJ IDEA Ultimate are free to use, but they expire within 30 days of the build date.

Java
Analyzing the exception stack trace with dataflow analysis

To make it easier for you to investigate why a Java program is failing, we’ve supplemented exception stack trace analysis with dataflow analysis. The IDE will help you find out exactly what happened to cause the variable to have an unexpected value.

When you click on the stack trace, the IDE may navigate you to the relevant place where the exception happened (and not simply to the beginning of the line). Now, we’ve improved this feature to support more exception types, notably ClassCastException and NullPointerException (JEP-358). Also, in some cases, the IDE may suggest you start a ‘Dataflow to here’ analysis when navigating from the stack trace.

image2

You can now filter “Dataflow to here” by target value. For example, you can specify that the target value is null, true or false, enum constant, string constant, or integer constant. In this case, the analysis will not display the paths where a given value cannot appear.

image4

One more improvement in this area is better NPE analysis, which is made possible thanks to the implemented support of the Helpful NullPointerExceptions feature (JEP 358) introduced in Java 14. To take advantage of it, simply run your program with the XX:+ShowCodeDetailsInExceptionMessages option.

The IDE now parses new NPE messages to the exact NPE cause when possible and to move the caret to the relevant position when navigating from the stack trace to the code.

image1

IntelliJ IDEA’s NotNull instrumentation for parameters is also supported, so even if there are several @NotNull parameters, you’re navigated to the appropriate one.

image3

Emoji Support on Linux
The upcoming IntelliJ IDEA 2020.2 will correctly handle Unicode emoji characters on Linux😀💗💪.

image

JCEF

Starting with v2020.2, we’ve decided to deprecate support for the JavaFX runtime in IntelliJ Platform plugins. This is because using JavaFX (via JFXPanel) for implementing UIs in Swing applications has some known limitations that have been causing performance and rendering issues.

As an alternative to JavaFX APIs, we are providing new integration with JCEF. JCEF is a Java port of the CEF framework for embedding Chromium-based browsers in applications using Swing.

We believe that JCEF is a great alternative to JavaFX, as it will provide better stability and performance. It will also make it easier to implement new features that show web content in the IDE.

Check out the release notes for the other closed tickets in this EAP build.

Give this new EAP build a thorough try, and do please share your feedback with us: here in the comments, in our issue tracker, or on Twitter. Thank you!

Happy Developing!

 

image description