haskell / haskell/haskell-language-server

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

未关闭
#176 14 条评论 11 个 reaction 已指派 0 人 在 GitHub 查看
build tool: cabal can-workaround component: hie-bios status: blocked type: bug
主要语言
Haskell
星标
3k
派生
455
平均合并
2 天 19 小时
30 天内合并 PR
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 摘要。