Sensitivity to symlinks in flags from hie-bios #3510
Labels
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
For context, in rules_haskell we output compilation options as described in the hie-bios documentation, and encountered a case where two different paths to the same directory (because of symlinks) are not equivalent.
See the following repro: https://github.com/ylecornec/hls-symlink-repro.
The repro was made on NixOS but we encountered the same thing on Ubuntu and Windows as well.
In this example ,
haskell-language-server
is setup using ahie-bios
script which outputs the following flags:where
subdir_alias
is a symbolic link tosubdir
.Running the following command:
fails with error:
whereas using either
subdir
orsubdir_alias
in both places works fine.(running
ghci $(./hie-bios | tr '\n' ' ')
as indicated in hie-bios documentation also seems to work fine)Versions:
This behavior seems present since
haskell-language-server
version1.6
as the following commands fail:While this one succeeds:
The text was updated successfully, but these errors were encountered: