[GHC] #10101: ghci :e throws exception after type error

GHC ghc-devs at haskell.org
Mon Jun 1 07:15:37 UTC 2015


#10101: ghci :e throws exception after type error
-------------------------------------+-------------------------------------
        Reporter:  diatchki          |                   Owner:  archblob
            Type:  bug               |                  Status:  merge
        Priority:  normal            |               Milestone:  7.10.2
       Component:  GHCi              |                 Version:  7.10.1-rc2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  GHCi crash        |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D930
-------------------------------------+-------------------------------------

Comment (by Austin Seipp <austin@…>):

 In [changeset:"4756438962a76d2dcedf63b90ec789cb054f9556/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="4756438962a76d2dcedf63b90ec789cb054f9556"
 Catch canonicalizePath exceptions, fix #10101

 Summary:
 Introduce by #95 'canonicalizePath' throws and exception when given
 an invalid file in a call to 'sameFile'.

 There are two cases when this can happen when using ghci:
   1) If there is an error at the interactive prompt, "<interactive>"
      file is searched for and not found.
   2) If there is an error in any loaded file and editing an inexistent/new
      file with 'e: foo'.

 Both cases are now tested.

 Test Plan: validate

 Reviewers: austin, #ghc

 Reviewed By: austin, #ghc

 Subscribers: bgamari, thomie

 Differential Revision: https://phabricator.haskell.org/D930

 GHC Trac Issues: #10101
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10101#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list