bazel-contrib / bazel-contrib/vscode-bazel

Extension cannot find bazel root without a WORKSPACE file

Open
#428 3 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
TypeScript
Stars
296
Forks
108
Avg merge
3d 22h
Merged PRs (30d)
5

Description

In pure bzlmod projects where there is no WORKSPACE file, the extension cannot find the root of the project and all paths become absolute as seen in the screenshot below. Is this intended?

![image](https://github.com/user-attachments/assets/b8cc20b5-d819-4c68-a4bc-8c7992886857)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in a pure bzlmod project without a WORKSPACE file, then trace how the extension determines the Bazel project root. Done means the root is found in this setup and displayed paths remain project-relative rather than becoming absolute.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.