[GHC] #15660: source file modify race leads to inconsistent error message

GHC ghc-devs at haskell.org
Sat Oct 6 10:01:54 UTC 2018


#15660: source file modify race leads to inconsistent error message
-------------------------------------+-------------------------------------
        Reporter:  joeyhess          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by osa1):

 Does anyone know how do other compilers (gcc, clang, ...) do this? I see
 two options:

 - Copy the files to /tmp/ before reading, use the files in /tmp/ in
 consecutive
   reads. We need to make sure we clean /tmp/ after each run.
 - Keep the parsed source in memory, use it in caret diagnostics.

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


More information about the ghc-tickets mailing list