[GHC] #7859: runghc should give an error when the path to ghc is invalid

#7859: runghc should give an error when the path to ghc is invalid ----------------------------------------------+----------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Component: None Version: 7.6.3 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Blockedby: Blocking: | Related: ----------------------------------------------+----------------------------- runghc has a -f option which allows to specify the path to GHC. However, it uses `rawSystem` and if the path is incorrect, we only get a nonzero exit code. For example, attempting to use "ghc -fdefer-type-errors X.hs" gives absolutely no output. Attached patch uses `findExecutable` and gives an error message if the executable is not found. This is not the ideal solution, but I think it's better than the current state. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7859 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7859: runghc should give an error when the path to ghc is invalid ----------------------------------------------+----------------------------- Reporter: monoidal | Owner: Type: bug | Status: patch Priority: normal | Component: None Version: 7.6.3 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Blockedby: Blocking: | Related: ----------------------------------------------+----------------------------- Changes (by monoidal): * status: new => patch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7859#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7859: runghc should give an error when the path to ghc is invalid ---------------------------------+------------------------------------------ Reporter: monoidal | Owner: igloo Type: bug | Status: patch Priority: normal | Milestone: Component: None | Version: 7.6.3 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: Incorrect warning at compile-time Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by simonpj): * owner: => igloo * difficulty: => Unknown -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7859#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7859: runghc should give an error when the path to ghc is invalid ------------------------------------------------+--------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: None | Version: 7.6.3 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ------------------------------------------------+--------------------------- Changes (by igloo): * owner: igloo => * status: patch => new * milestone: => 7.8.1 Comment: I'd like to fix this differently; see http://www.haskell.org/pipermail/libraries/2013-April/019752.html for details. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7859#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7859: runghc should give an error when the path to ghc is invalid ------------------------------------------------+--------------------------- Reporter: monoidal | Owner: igloo Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: None | Version: 7.6.3 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ------------------------------------------------+--------------------------- Changes (by igloo): * owner: => igloo -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7859#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7859: runghc should give an error when the path to ghc is invalid ------------------------------------------------+--------------------------- Reporter: monoidal | Owner: igloo Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: None | Version: 7.6.3 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Difficulty: Unknown Testcase: T7859 | Blockedby: Blocking: | Related: ------------------------------------------------+--------------------------- Changes (by igloo): * status: new => closed * testcase: => T7859 * resolution: => fixed Comment: We now get: {{{ runghc: defer-type-errors: rawSystem: runInteractiveProcess: exec: does not exist (No such file or directory) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7859#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (2)
-
GHC
-
GHC