haskell / haskell/haskell-language-server

Wrong `could not execute: tasty-discover` (revisit after haskell/hie-bios#187)

オープン
#176 コメント 14 件 リアクション 11 件 担当者 0 名 GitHub で見る
build tool: cabal can-workaround component: hie-bios status: blocked type: bug
主要言語
Haskell
スター
3k
フォーク
455
平均マージ
2日 19時間
マージ済み PR(30日)
11

説明

When using a preprocessor (`tasty-discover`) for our tests, we get a wrong error from HLS, while compilation is fine.

See minimal repo to reproduce the issue: https://github.com/Sir4ur0n/hls-bug-preprocessor

* `stack test` works fine
* `haskell-language-server` returns an error:
```
File: /home/sir4ur0n/sandbox/hls-bug-preprocessor/test/Spec.hs
Hidden: no
Range: 1:0-2:0
Source: compiler
Severity: DsError
Message: haskell-language-server: could not execute: tasty-discover
Files that failed:
[INFO] finish: User TypeCheck (took 0.57s) * /home/sir4ur0n/sandbox/hls-bug-preprocessor/test/Spec.hs
```

While we **might** tell `hie.yaml` to ignore (cradle `none`) the `Spec.hs` file in particular, I don't see a reason why this even fails. HLS should support such files.

Thank you!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。