[Hackage] #164: bad error message when using configuration flags that were not defined

#164: bad error message when using configuration flags that were not defined ------------------------------+--------------------------------------------- Reporter: duncan | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal | Version: 1.2.0 Severity: minor | Keywords: Difficulty: easy (<4 hours) | Ghcversion: 6.4.2 Platform: Linux | ------------------------------+--------------------------------------------- Using a flag in an if condition when that flag has not been previously defined gives an unhelpful error message: {{{ -- flag foo never declared: if flag(foo) blah: else other: }}} We get the error message: {{{ cabal-setup: Environment not defined for all free vars }}} The error is reported by {{{Distribution.Configuration.simplifyCondTree}}} but the error should probably be checked for much earlier. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/164 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#164: bad error message when using configuration flags that were not defined ----------------------------+----------------------------------------------- Reporter: duncan | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.4 Component: Cabal library | Version: 1.2.0 Severity: minor | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.4.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * platform: Linux => * milestone: => Cabal-1.4 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/164#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#164: bad error message when using configuration flags that were not defined ----------------------------+----------------------------------------------- Reporter: duncan | Owner: byorgey@gmail.com Type: defect | Status: new Priority: normal | Milestone: Cabal-1.4 Component: Cabal library | Version: 1.2.0 Severity: minor | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.4.2 | Platform: ----------------------------+----------------------------------------------- Changes (by guest): * owner: => byorgey@gmail.com -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/164#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#164: bad error message when using configuration flags that were not defined
----------------------------+-----------------------------------------------
Reporter: duncan | Owner: byorgey@gmail.com
Type: defect | Status: closed
Priority: normal | Milestone: Cabal-1.4
Component: Cabal library | Version: 1.2.0
Severity: minor | Resolution: fixed
Keywords: | Difficulty: easy (<4 hours)
Ghcversion: 6.4.2 | Platform:
----------------------------+-----------------------------------------------
Changes (by duncan):
* status: new => closed
* resolution: => fixed
Comment:
Fixed with:
{{{
Sat Jan 26 23:30:57 GMT 2008 Brent Yorgey
participants (1)
-
Hackage