-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
To Reproduce
In rules_haskell_tests:
bazel run //tests:hie-bios@bios
It outputs source files from Bazel execution root:
...
/private/var/tmp/_bazel_adrienpiquerez/c215c24f6194429899826b2b5022c4c2/execroot/rules_haskell_tests/tests/RunTests.hs
/private/var/tmp/_bazel_adrienpiquerez/c215c24f6194429899826b2b5022c4c2/execroot/rules_haskell_tests/bazel-out/darwin_arm64-fastbuild/bin/tests/generated-modules/src/BinModule.hs
/private/var/tmp/_bazel_adrienpiquerez/c215c24f6194429899826b2b5022c4c2/execroot/rules_haskell_tests/bazel-out/darwin_arm64-fastbuild/bin/tests/generated-modules/src/GenModule.hs
/private/var/tmp/_bazel_adrienpiquerez/c215c24f6194429899826b2b5022c4c2/execroot/rules_haskell_tests/tests/integration_testing/IntegrationTesting.hs
/private/var/tmp/_bazel_adrienpiquerez/c215c24f6194429899826b2b5022c4c2/execroot/rules_haskell_tests/tests/binary-with-lib/Main.hs
/private/var/tmp/_bazel_adrienpiquerez/c215c24f6194429899826b2b5022c4c2/execroot/rules_haskell_tests/tests/binary-with-lib/src/Lib.hs
Expected behavior
It should output source files from the Bazel workspace.
The problem is that neither HLS nor VSCode know those source files are hard links to the workspace source files. Consequently, they report errors in the sandboxed source files, instead of the workspace source files on which I am working, and code navigation redirects to the sandboxed source files too. I end up having two copies of the same file opened, possibly with different unsaved edits.
Environment
- OS name + version: MacOS Sequoia 15.6
- Bazel version: 6.5.0
- Version of the rules: 1.0
Additional context
I am working on the daml codebase. Is this hie-bios output working for others? Do we miss any configuration to make this work for us?