question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FR: Use configurable buildozer + buildifier for BUILD file modify + formatting

See original GitHub issue

For build file modification the plugin uses simple text modifier

For build file formatting the plugin uses hardcoded version of buildifier. Currently set to 0.12.0 when the last released version is 0.20.0

We should use buildozer for modifications and allow configuring local binaries

Feature requests:

  1. Use buildozer for build file modification. Have a built-in buildozer binary as well. Change buildModifier to drive the binary and not change text manually. (note: buildozer expects to find buildifier on PATH, but I’m sure we can solve it, eg: modifying the PATH according to configured buildifier)
  2. Allow overriding the built-in tools by providing path to locally installed tools (so we can use newer versions). We already have configuration for bazel binary - let’s add configuration for those tools as well.

Related issues

https://github.com/bazelbuild/intellij/issues/261

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ignaslcommented, Feb 21, 2019

Another use-case for having buildifier and buildozer configuration is that on MacOS X (at least on 10.14) /usr/local/bin does not appear in PATH that Java gets from environment and this is where these tools would normally be installed if access to /usr/bin, `/bin’ or other system folders is restricted.

0reactions
kylecordescommented, Dec 1, 2019

I notice this issue starkly while switching back and forth between this plugin and VScode with its plugin… which (while not without its own open issues) “just works” with the buildifier already on the PATH.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buildifier
Use buildifier to create standardized formatting for BUILD and .bzl files in the same way that clang-format is used for source files. $...
Read more >
buildifier - Go Packages
This repository contains developer tools for working with Google's bazel buildtool. buildifier For formatting BUILD, BUILD.bazel and BUCK files ...
Read more >
Release 0.11 Kivy's Developers - Buildozer's documentation!
It will use the specification file to create a package for ... sudo apt update ... But just add these requirements to a...
Read more >
Python Rules for Bazel - Morioh
Documentation lives in the docs/ directory and in the Bazel Build Ency. ... Also consider using the -r flag to modify an entire...
Read more >
FreeBSD New Ports Index
configuration * execute, edit and bookmark any SQL-statement, even batch-queries * load text files into tables * create and read dumps of tables...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found