Coder Social home page Coder Social logo

Interferes with ibazel about vscode-bazel HOT 11 CLOSED

bazelbuild avatar bazelbuild commented on September 14, 2024
Interferes with ibazel

from vscode-bazel.

Comments (11)

muratbeser avatar muratbeser commented on September 14, 2024 1

image
I'm still having this issue. I'm runing iBazel via npx.

also I have no idea what causes the .bazel_fix_comands.json warning.

from vscode-bazel.

allevato avatar allevato commented on September 14, 2024

When you say "every time a file is saved", do you mean any file in the workspace, or just BUILD files? We have logic to do a query when a BUILD file is saved so that the Bazel Build Targets tree view is automatically updated if you add/remove targets, but it shouldn't be triggered for other files.

I don't know much about ibazel, so it's not immediately clear to me what the resolution is here.

from vscode-bazel.

alexeagle avatar alexeagle commented on September 14, 2024

https://github.com/bazelbuild/bazel-watcher is the "watch mode" for Bazel and it's somewhere in between community contrib and Bazel first-party supported.

Yes, I believe the change I was making there was to a BUILD file.

from vscode-bazel.

mariusgrigoriu avatar mariusgrigoriu commented on September 14, 2024

This isn't just a problem with ibazel. The lock prevents regular bazel commands from running in the terminal.

from vscode-bazel.

achew22 avatar achew22 commented on September 14, 2024

Could we put together a gist that demonstrated the issue at hand? I think that would provide some much needed clarity

from vscode-bazel.

mariusgrigoriu avatar mariusgrigoriu commented on September 14, 2024

I don't have a repro available, but I observed this during a live share session.

The Bazel docs recommend setting --output_base if you are scripting queries to avoid contending for the lock. https://docs.bazel.build/versions/master/guide.html#choosing-the-output-base

from vscode-bazel.

alexeagle avatar alexeagle commented on September 14, 2024

Another major flaw is when the user runs bazel with some startup flags that differ from vscode extension. Then they see the Bazel server restarting for every command they run.

from vscode-bazel.

thomasvl avatar thomasvl commented on September 14, 2024

Another major flaw is when the user runs bazel with some startup flags that differ from vscode extension. Then they see the Bazel server restarting for every command they run.

Trunk already has prefs to allow adding other options to the invokes the extension does.

from vscode-bazel.

allevato avatar allevato commented on September 14, 2024

With #160 merged, I think we can close this out. The next version of the extension will by default use a separate --output_base for queries, which should resolve issues with ibazel (and other uses of query from the extension during long-running build tasks). Thanks to @mariusgrigoriu for pointing us at the tip about that in the docs!

from vscode-bazel.

thomasvl avatar thomasvl commented on September 14, 2024

The 0.3.0 release was in September, the fix listed here was landed in Dec, so unless you built your own copy of the extension you likely don't have the fix yet.

from vscode-bazel.

muratbeser avatar muratbeser commented on September 14, 2024

@thomasvl no it is not. with npx or with yarn ibazel commands I do have the same issue yarn ibazel has perfomance impact. it might be my setup I'm not sure. currently I run this too often.

from vscode-bazel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.