Skip to content

.ghci file is kept open while ghci is running

Given a .ghci file in the current directory, when I start ghci it loads that file. However, ghci keeps that file open and locked while running. As a result, any attempts to edit the file give an error from my text editor of "Encountered a sharing violation while accessing .ghci".

The solution would be for ghci to strictly read the .ghci file before it starts, rather than leaving the handle to the file open.

Reported against 7, but it's been this way for a while. Could well be Windows specific.

Trac metadata
Trac field Value
Version 7.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information