Skip to content

Support build-tool-depends #1159

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
amesgen opened this issue Jan 5, 2021 · 1 comment
Closed

Support build-tool-depends #1159

amesgen opened this issue Jan 5, 2021 · 1 comment

Comments

@amesgen
Copy link
Contributor

amesgen commented Jan 5, 2021

It would be nice if build-tool-depends could be supported, especially for compiler plugins like autoexporter or tasty-discover. In particular, running haskell-language-server-wrapper manually fails as the required binaries are not in scope. This can be fixed manually by placing the binaries in PATH, but that contradicts using build-tool-depends (at least with nix-style builds) in the first place.

Example

git clone --single-branch --branch hls-build-tool-depends https://github.com/amesgen/stuff.git && cd stuff

Then

haskell-language-server-wrapper

fails with

File:     /tmp/tmp.omchVSmVF6/stuff/app/Words.hs
Hidden:   no
Range:    1:1-2:1
Source:   compiler
Severity: DsError
Message:  haskell-language-server-8.10.3: could not execute: autoexporter
[INFO] finish: User TypeCheck (took 0.03s)
Files that failed:
 * /tmp/tmp.omchVSmVF6/stuff/app/Main.hs
 * /tmp/tmp.omchVSmVF6/stuff/app/Words.hs

Completed (2 files worked, 2 files failed)

but

cabal exec -- haskell-language-server-wrapper

works just fine.

@amesgen
Copy link
Contributor Author

amesgen commented Jan 5, 2021

Duplicate of #176 (I only searched for "build-tool-depends"...)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant