This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Couldn't load subscription status.
- Fork 205
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Could not obtain flags for: "Setup.hs" #1650
Open
@jneira
Description
- Opening a new specific issue from Could not obtain flags for test files with cabal-helper cradle using stack #1564 , reported by:
- 0xd34df00d in Could not obtain flags for test files with cabal-helper cradle using stack #1564 (comment)
- Maybe @kirillFedorov1 in Could not obtain flags for test files with cabal-helper cradle using stack #1564 (comment) (pending on comfirm it is the same error)
- Citing @fendor:
We are currently not supporting diagnostics for Setup.hs. E.g. we can not load this into the IDE.
The workaround could be creating a implicit configuration with a hie.yaml file to make hie ignore Main.hs
More drastic one: if Setup.hs is the default one, like this:
import Distribution.Simple main = defaultMain
and you build-type is simple (the default one) in your <pkgname>.cabal file, afaik you can delete it.