Bazel ​(EAP)​

Compatible with IntelliJ IDEA (Ultimate, Community)
Screenshot 1
Screenshot 2

Bazel by JetBrains (EAP) for IntelliJ IDEA

This plugin is available as EAP (Early Access Program). This means that it may already be useful, but many corner cases might not be supported yet.

Main features

  • Open Bazel projects in IntelliJ IDEA
  • Supports Java and Kotlin
  • Build, run, test, debug Bazel targets
  • Starlark syntax, completion, navigation support
  • Starlark debugging
  • Run and debug tests running in Bazel

To learn more about how to use the features, please check the documentation page.

This plugin depends on Build Server Protocol for IntelliJ IDEA to import Bazel projects.

What’s New

Bazel Plugin 2024.3.7

2024.3.7

This release brings improvements to project navigation and build configuration support. We've added better visualization of excluded Bazel directories, implemented Go debugger support, and enhanced dependency handling. Additionally, there are improvements in memory management and IDE navigation, along with better support for pure Kotlin projects.

Please consider switching to Nightly channel in Settings -> Build, Execution, Deployment -> Build Tools -> Bazel -> Advanced Settings
Switching to nightly you'll get newest features and fixes faster!

Please file any issue on our YouTrack or reach us directly on slack #intellij @ slack.bazel.build

Changelog:

Features

  • [feature] Added a new option to display Bazel's excluded directories (like bazel-* and .bazelbsp) as a separate node in the project tree view for better organization. | #BAZEL-1071
  • [feature] Added recursive resolution of target labels in resource references to support nested dependencies in build configurations. | #BAZEL-1549
  • [feature] Added support for detecting deprecated flags when they are used with 'no' prefix in bazelrc configuration | #BAZEL-1701
  • [feature] Implement go debugger for bazel-bsp | #GO-17733
  • [feature] Improved target support detection by implementing source-based validation alongside rule kind checking | #BAZEL-1557

Bug Fixes

  • [fix] Added JDK support for pure Kotlin projects to ensure proper functionality when using Java standard library classes. | #BAZEL-1692
  • [fix] Fixed IDE navigation to prefer source files over compiled classes in JAR files when both are available. | #BAZEL-1672
  • [fix] Optimize DelimitedMessageReader
  • [fix] Resolved compatibility issue preventing Bazel plugin from working when IntelliJ IDEA is launched from source code, adding configuration option to handle dummy modules. | #BAZEL-1466
  • [fix] Resolved out-of-memory errors during shard synchronization by addressing Bazel server memory leaks. | #BAZEL-1679

Maintenance

  • [maintenance] Changed project view creation to copy .managed.bazelproject file directly instead of importing it, allowing users to customize their default import settings | #BAZEL-1690
  • [maintenance] Removed the startup activity that checked for slow plugins since the underlying issue has been resolved | #BAZEL-1236

Feb 12, 2025
Version 2024.3.7

Rating & Reviews

4.7
8 Ratings (7,832 Downloads)
5
4
3
2
1

I like the plugin very much. I would like to see coverage runs of the several tests, such that I can see the coverage of the testcases.

0

Brian McNamara

14.10.2024

Just what I expect from JetBrains, a well integrated plugin to the JetBrains ego system. Manages the project structure much more like other build systems, making it easier to understand the project for developers.

0

Ric Huang

27.03.2024

I like it so far. Need to support starlark language.

0

Additional Information

Vendor:
Plugin ID:
org.jetbrains.bazel