The Bazel roadmap http://bazel.io/roadmap.html says that a feature is scheduled for March, "Interface for IDE Support." No link.Is there some documentation or a PR or something talking about this interface? What will the interface be like?
Is the intention that Bazel will include IDE support directly, or that IDE support would be supported via external plugins?
Is there a prototype I could play around with?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2146df0c-f96b-4864-aff5-5c1c68ba1a20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Feb 22, 2016 at 5:45 PM Dan Fabulich <danfa...@gmail.com> wrote:The Bazel roadmap http://bazel.io/roadmap.html says that a feature is scheduled for March, "Interface for IDE Support." No link.Is there some documentation or a PR or something talking about this interface? What will the interface be like?Dmitry can probably give a better answer than I can, but the idea is that an aspect (a mechanism in bazel that attaches itself to each rule in a build and performs some action) creates IDE-specific information that is output for each package. The aspect is enabled by adding some extra command line arguments to bazel.Is the intention that Bazel will include IDE support directly, or that IDE support would be supported via external plugins?Could you elaborate on what you mean by supporting an IDE directly? I image it would be IDE-specific. The aspect could be written to directly output a file that's consumable by the IDE, or you could have some additional program that converts the output files of the aspect to something consumable by the IDE, or there could be an IDE plugin that consumes the aspect output directly.Is there a prototype I could play around with?We currently have this:That's the Android Studio aspect written in java ("native aspect"), and we also have this one for testing the skylark aspect:That will work for java targets (java_* and android_*). You can invoke it like this:bazel build --aspects AndroidStudioInfoAspect --output_groups "ide-info" <java target>and you'll get .aswb-build files in the genfiles tree, which contain binary serialized protos of https://github.com/bazelbuild/bazel/blob/master/src/main/protobuf/android_studio_ide_info.protoIf you specify "ide-info-text" for the output_group, you'll get text serialized proto. There is also "ide-resolve" which builds only the files that are required for the ide (e.g. if you specify an android_binary target, the apk won't be built because the ide doesn't need it until it wants to deploy). If you do "+ide-info", that will cause all the normal outputs of the specified target to build built plus the ide files.One thing that I think is missing at the moment is nice way to discover all the .aswb-build files, I'm not sure if we have something better than walking the genfiles tree and looking for them.
----
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2146df0c-f96b-4864-aff5-5c1c68ba1a20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAAvaYBnfKHaY3_NmaNQZ_AeyWffVrKzWQsFPXDNwD8AAgqgVdg%40mail.gmail.com.
On Tue, Feb 23, 2016 at 1:22 AM 'Alex Humesky' via bazel-discuss <bazel-...@googlegroups.com> wrote:On Mon, Feb 22, 2016 at 5:45 PM Dan Fabulich <danfa...@gmail.com> wrote:The Bazel roadmap http://bazel.io/roadmap.html says that a feature is scheduled for March, "Interface for IDE Support." No link.Is there some documentation or a PR or something talking about this interface? What will the interface be like?Dmitry can probably give a better answer than I can, but the idea is that an aspect (a mechanism in bazel that attaches itself to each rule in a build and performs some action) creates IDE-specific information that is output for each package. The aspect is enabled by adding some extra command line arguments to bazel.Is the intention that Bazel will include IDE support directly, or that IDE support would be supported via external plugins?Could you elaborate on what you mean by supporting an IDE directly? I image it would be IDE-specific. The aspect could be written to directly output a file that's consumable by the IDE, or you could have some additional program that converts the output files of the aspect to something consumable by the IDE, or there could be an IDE plugin that consumes the aspect output directly.Is there a prototype I could play around with?We currently have this:That's the Android Studio aspect written in java ("native aspect"), and we also have this one for testing the skylark aspect:That will work for java targets (java_* and android_*). You can invoke it like this:bazel build --aspects AndroidStudioInfoAspect --output_groups "ide-info" <java target>and you'll get .aswb-build files in the genfiles tree, which contain binary serialized protos of https://github.com/bazelbuild/bazel/blob/master/src/main/protobuf/android_studio_ide_info.protoIf you specify "ide-info-text" for the output_group, you'll get text serialized proto. There is also "ide-resolve" which builds only the files that are required for the ide (e.g. if you specify an android_binary target, the apk won't be built because the ide doesn't need it until it wants to deploy). If you do "+ide-info", that will cause all the normal outputs of the specified target to build built plus the ide files.One thing that I think is missing at the moment is nice way to discover all the .aswb-build files, I'm not sure if we have something better than walking the genfiles tree and looking for them.--experimental_show_artifacts :)
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS_e%2Bzp7mqbx%3DCGympot7Kps-mKnrGG%2B%2Bc4ioRGMubG3wA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAM%3Ddnves_b4-kHKdBJd%3DaD%3D3YruCDUTb9KvMgVSdg6W9%3D4vDvA%40mail.gmail.com.
We plan to publish documentation as well as some working IDE support. We still have some small blockers for the later. Sorry for the delay. You can follow on GitHub, the list of blockers are marked for milestone 0.3.