IntelliJ plugin for Bazel projects
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.bazelci Fix YAML list syntax in .bazelci. Mar 26, 2018
aspect Import of bazel plugin using copybara Aug 17, 2018
aswb Import of bazel plugin using copybara Aug 7, 2018
base Import of bazel plugin using copybara Aug 17, 2018
build_defs Import of bazel plugin using copybara Jul 26, 2018
clwb Import of bazel plugin using copybara Aug 2, 2018
common Import of bazel plugin using copybara Aug 17, 2018
cpp Import of bazel plugin using copybara Aug 9, 2018
dart Import of bazel plugin using copybara Jul 26, 2018
golang Import of bazel plugin using copybara Aug 17, 2018
ijwb Import of bazel plugin using copybara Aug 17, 2018
intellij_platform_sdk Import of bazel plugin using copybara Jul 26, 2018
java Import of bazel plugin using copybara Aug 17, 2018
kotlin Import of bazel plugin using copybara Aug 9, 2018
plugin_dev Import of bazel plugin using copybara Aug 2, 2018
proto Import of bazel plugin using copybara Jul 26, 2018
python Import of bazel plugin using copybara Aug 17, 2018
scala Import of bazel plugin using copybara Aug 7, 2018
sdkcompat Import of bazel plugin using copybara Aug 7, 2018
skylark Import of bazel plugin using copybara Aug 2, 2018
terminal Import of bazel plugin using copybara Mar 15, 2018
testing Import of bazel plugin using copybara Jul 26, 2018
third_party Import of bazel plugin using copybara Aug 9, 2018
.gitignore Import of bazel plugin using copybara Mar 14, 2018
AUTHORS Initial import of ijwb, an IntelliJ plugin for Bazel Jul 8, 2016
BUILD Import of bazel plugin using copybara Jul 26, 2018
CHANGELOG Import of bazel plugin using copybara Aug 7, 2018
CONTRIBUTING.md Initial import of ijwb, an IntelliJ plugin for Bazel Jul 8, 2016
CONTRIBUTORS Add tomlu@ to CONTRIBUTORS Jul 12, 2016
LICENSE.txt Initial import of ijwb, an IntelliJ plugin for Bazel Jul 8, 2016
README.md README: Inform how to build for different IDEs Jul 12, 2018
WORKSPACE Import of bazel plugin using copybara Aug 17, 2018
version.bzl Import of bazel plugin using copybara Aug 31, 2017

README.md

An IntelliJ plugin for Bazel projects

This is an early-access version of our Bazel plugins for IntelliJ, Android Studio, and CLion.

This repository is currently updated semi-regularly. It's generally in a state matching the most recently uploaded plugins in the JetBrains' plugin repository.

Installation

You can find our plugin in the Jetbrains plugin repository by going to Settings -> Browse Repositories, and searching for Bazel.

Usage

To import an existing Bazel project, choose Import Bazel Project, and follow the instructions in the project import wizard.

Detailed docs are available here.

Building the plugin

Install Bazel, then build the target *:*_bazel_zip for your desired product:

  • bazel build //ijwb:ijwb_bazel_zip --define=ij_product=intellij-latest
  • bazel build //clwb:clwb_bazel_zip --define=ij_product=clion-latest
  • bazel build //aswb:aswb_bazel_zip --define=ij_product=android-studio-latest

from the project root. This will create a plugin zip file at bazel-bin/<PRODUCT>/<PRODUCT>_bazel.zip, which can be installed directly from the IDE. <PRODUCT> can be one of ijwb, clwb, aswb.

If the IDE refuses to load the plugin because of version issues, specify ij_product manually. A mapping of product latest to direct versions can be found in intellij_platform_sdk/build_defs.bzl.

Contributions

We welcome contributions! Some caveats:

  • Please consider filing an issue, and discussing potential changes with the devs, prior to investing a lot of time in a patch.
  • In general, we prefer contributions that fix bugs or add features (as opposed to stylistic, refactoring, or "cleanup" changes).