Comments (11)
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.
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.
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.
This isn't just a problem with ibazel. The lock prevents regular bazel commands from running in the terminal.
from vscode-bazel.
Could we put together a gist that demonstrated the issue at hand? I think that would provide some much needed clarity
from vscode-bazel.
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.
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.
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.
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.
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.
@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)
- bazel.commandLine.queryExpression not used by all queries
- *.bzl files not recognized by completion provider
- [Question] Why is Master different from Version 0.8.1? HOT 1
- Debugger doesn't run on windows
- How to add breakpoint when “Build Target with Starlark Debugger” HOT 2
- Feature request: shortcut to jump to BUILD or BUILD.bazel file HOT 7
- ELI5 how to use this extension HOT 2
- Display coverage results from `bazel coverage`
- Auto-install tools HOT 14
- Tasks broken HOT 5
- Extension adds MODULE.bazel and MODULE.bazel.lock in local repositories HOT 2
- Marketplace release for v0.10.0 HOT 8
- Relative paths for buildifier still trigger warning on startup
- Allow override of query with cquery HOT 3
- Why does commandArgs not apply to Run targets? HOT 1
- Extension defaults cause other bazel commands to hang on a significantly large repos HOT 3
- Syntax highlighting of `and`/`or`/`not`/`in` in Starlark HOT 8
- make buildifier warning less aggressive HOT 5
- Make test explorer functionality optional HOT 2
- Integrate vscode-bazel with web extensions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-bazel.