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

Posted on by Zlata Kalyuzhnaya

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!

 

Comments below can no longer be edited.

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

  1. Alan Stange says:

    June 4, 2020

    Guys….the EAP link at the top of the page is broken:
    https://confluence.jetbrains.com/display/IDEADEV/EAP

    • Zlata Kalyuzhnaya says:

      June 4, 2020

      Thanks, Alan for bringing this to our attention! It is fixed now.

      • Alan Stange says:

        June 4, 2020

        Thank you! Now back to work on EAP3 😉

  2. Nontas Ravazoulas says:

    June 4, 2020

    Hi and thanks for the new EAP, noticed some issues with font rendering on mac IDE antialiasing is missing subpixel and editor antialiasing keeps returning on greyscale after restating.

  3. Alexander Roytman says:

    June 4, 2020

    My IDEA EAP updated today to (I assume) 2020.2 EAP build 202.5103.13
    and would not start after that. JetBrain JRE crashes on my Windows 10 2004 build (latest windows) I submitted bug report but I can’t work uninstalled my prev version since I am so used to EAP and practically never had any issues with it

  4. Alexander Roytman says:

    June 4, 2020

    reverting to previous EAP build resolved the issue

    see https://youtrack.jetbrains.com/issue/IDEA-242606

  5. Alexander Nozik says:

    June 4, 2020

    Really sad about JavaFX. As a framework, it is superior to Swing. The Webkit browser was bugged, and I believe that JCEF is a better alternative. But completely dropping JavaFX could be a costly solution in the long run.

Subscribe

Subscribe for updates