Brand New Compiler Mode in IntelliJ IDEA 12 Leda
One of the major features in the upcoming release of IntelliJ IDEA 12 Leda is a completely revised approach to compilation of a project. We have rebuilt it from the ground up to bring a new user experience and a better performance.
There are following key principles for this new compilation approach:
- All compilation tasks are performed in a separate process, fully independent from the main IDE’s process, to get rid out of memory and other resources contention.
- Java compiler is used “in-process” via Java API for better performance and more flexible annotation processors management.
- Java classes dependency management completely rewritten for faster and more accurate search of dependent classes.
- Compilation is automatically triggered (“auto-make”) by events from the file system of the IDE if such option is enabled.
As a result of these improvements we have:
- Significantly faster rebuilds.
- Lower memory requirements for the IDE.
- Global error highlighting without explicit compilation invocation.
We’re still working on the feature and its performance, so we will provide the benchmarks later.
There are also other things coming soon:
- Eclipse Java compiler support.
- Ability to use the feature from the command-line and and Ant/shell scripts.
Integration with Eclipse Java compiler will enable better errors highlighting for the project and even running Java applications containing compilation errors.
Expect more details in the upcoming EAP releases!
Since the feature is still under development, it has constraints, which we hope will be removed soon:
- Enabled only for Java and Groovy sources, resource files, UI designer forms, artifacts, Android classes and resources, annotation processors and not-null instrumentation.
- Not supported (yet) Eclipse-based and Grails projects.
This external build feature is currently disabled by default. You can enable it in Preferences → Compiler settings:
The checkbox Use out-of-process build for project compilation enables the new compilation approach. If you enable Make project automatically checkbox, the compilation will be automatically triggered once you make any changes in the sources.
News from our neighbor teams (non-paid)
Our great keyboard-oriented issue tracker YouTrack has been just updated to the latest version.
YouTrack 4.0 introduces a completely new Agile project management module. Now Scrum teams can plan and manage their work during a series of consecutive sprints, while teams that follow Kanban process can manage and measure their work flow on the board.
Check out the YouTrack 4 What’s New page for details.
Develop with pleasure!
IntelliJ IDEA Team
Subscribe to Blog updates
Thanks, we've got you!
The What, Why, and How of JPA Buddy in IntelliJ IDEA
Master JPA entity management with JPA Buddy in IntelliJ IDEA! Our latest article shows you how to simplify your workflow and reduce boilerplate code.
The Best of IntelliJ IDEA’s HTTP Client
In today's fast-paced tech world, easy and efficient management of web services and APIs is crucial. That's where IntelliJ IDEA's HTTP Client steps in, turning complex HTTP requests into a walk in the park. The HTTP Client is a feature-rich, text-based tool in IntelliJ IDEA Ultimate. It seamlessl…
Import Postman Collections to the HTTP Client
We know that many of you use Postman collections and want to stay in the flow while working with them. This means staying inside IntelliJ IDEA and not switching to a different app. Great news! You can now effortlessly transform Postman collections into .http and use them in the HTTP Client …
What’s New in IntelliJ IDEA 2023.1 for Spring Developers
The IntelliJ IDEA 2023.1 release came packed with updates for Spring. This blog post will highlight the most noticeable changes, including full support for Lombok, a reworked Spring tool window, navigation for Spring Security rules, Spring Security 6 support, and more. Remember that these featur…