bazelbuild / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
231 stars 76 forks source link

Tasks broken #374

Closed aishfenton closed 2 months ago

aishfenton commented 2 months ago

When running "bazel" tasks the the "run task" menu I get the following error:

There is no task provider registered for tasks of type "bazel".

Using VSCode 1.88, and Bazel Extension 0.9.0 (latest in extension market place).

vogelsgesang commented 2 months ago

Support for defining tasks in your tasks.json was added only recently and does not work in 0.9, yet. We will need to release a new version for this to work.

@cameron-martin do you have any thoughts on when we should cut the next release?

I think we have enough new functionality by now such that a new release is worth it. Maybe we should still try to get #372 merged before cutting the release (it's essentially a rather straightforward 10-line change), but that's purely optional.

At the same time, I think it would make sense to cut the release before merging #366. #366 bumps the required VSCode version. By cutting a release before doing the version bump, users on older VS Code versions will still be able to profit from all the other improvements

aishfenton commented 2 months ago

Ahh you're right.

cameron-martin commented 2 months ago

I think we're ready to cut a release, I was just waiting for #367 and that's now merged. I'll try do that tomorrow along with reviewing #372.

vogelsgesang commented 2 months ago

Amazing! Thank you 🙂

trinque commented 1 week ago

I'm still seeing this issue in 0.10.0 using a Mac as client, editing a Bazel project on a Linux server. Builds via the "Bazel Build Targets" pane work fine, but I cannot turn these into tasks in tasks.json. When I try to re-run a build using "Run Task" I receive the following error:

There is no task provider registered for tasks of type "bazel".

What debugging info would be helpful for me to provide?