Skip to content

tools: Enable the VSCode completion db to use bazelisk if available#2277

Merged
goaway merged 1 commit intoenvoyproxy:mainfrom
abeyad:compdb_bazelisk
May 16, 2022
Merged

tools: Enable the VSCode completion db to use bazelisk if available#2277
goaway merged 1 commit intoenvoyproxy:mainfrom
abeyad:compdb_bazelisk

Conversation

@abeyad
Copy link
Contributor

@abeyad abeyad commented May 14, 2022

Running tools/vscode_compdb.py to generate the code completion symbols for VSCode produces an error because the .bazelversion in Envoy may not be available in certain environments. The recommendation is to use bazelisk, but the compilation database script defaults to using bazel. This change enables the VSCode compilation database generation script to use bazelisk if it is available on the system; if not, it will use bazel.

Signed-off-by: Ali Beyad abeyad@google.com

Risk Level: low
Testing: local
Docs Changes: N/A
Release Notes: N/A

Copy link
Contributor

@goaway goaway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@goaway goaway merged commit 420c005 into envoyproxy:main May 16, 2022
jpsim added a commit that referenced this pull request May 17, 2022
…atcher-again

* main:
  envoy: update to d88f31b (#2279)
  api: disallow setting 'host' header directly (#2275)
  android: add support for registering a platform KV store (#2134)
  Bump Lyft Support Rotation (#2278)
  tools: Enable the VSCode completion db to use bazelisk if available (#2277)

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim added a commit that referenced this pull request May 17, 2022
Follow-up to #2277.

Signed-off-by: JP Simard <jp@jpsim.com>
@jpsim
Copy link
Contributor

jpsim commented May 17, 2022

Sorry I was slow to review, but we have a wrapper around bazel that we use to have a consistent experience no matter what the user has installed and available in their environment. Updating to use that in #2284

@abeyad
Copy link
Contributor Author

abeyad commented May 17, 2022

Oh nice, didn't know about bazelw, thanks JP!

jpsim added a commit that referenced this pull request May 17, 2022
* origin/main: (97 commits)
  docs: update python packages to work with Python 3.10 (#2286)
  test: adding a cancel test, cleaning up copy-paste code (#2283)
  envoy: update to d88f31b (#2279)
  api: disallow setting 'host' header directly (#2275)
  android: add support for registering a platform KV store (#2134)
  Bump Lyft Support Rotation (#2278)
  tools: Enable the VSCode completion db to use bazelisk if available (#2277)
  Release v0.4.6.20220513-4
  Fix android_release_deploy
  Release v0.4.6.20220513-3
  Release v0.4.6.20220513-2
  net: enable happy eyeballs by default (#2272)
  git: avoid merge conflicts when adding changelog entries (#2273)
  docs: fix sphinx reference mismatch warning (#2274)
  tests: add -Xcheck:jni to kotlin integration tests by default (#2269)
  configuration: enable h2 ping by default (#2270)
  Add version history entries for user-facing changes (#2271)
  configuration: filter unroutable addresses on Android by default (#2267)
  Integrate rules_xcodeproj (#2263)
  Add assert when failing to get_env (#2253)
  ...

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim added a commit that referenced this pull request May 17, 2022
Follow-up to #2277.

Signed-off-by: JP Simard <jp@jpsim.com>
@abeyad abeyad deleted the compdb_bazelisk branch June 28, 2022 15:17
jpsim added a commit to envoyproxy/envoy that referenced this pull request Nov 29, 2022
Follow-up to envoyproxy/envoy-mobile#2277.

Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants