haskell-ide-engine
haskell-ide-engine copied to clipboard
HIE crashing: Index too large
I'm getting the following error in hie:
hie-8.6.5: Data.Text.Internal.Fusion.Common.index: Index too large
CallStack (from HasCallStack):
error, called at libraries/text/Data/Text/Internal/Fusion/Common.hs:943:24 in text-1.2.3.1:Data.Text.Internal.Fusion.Common
This is showing up in the hie:stderr buffer in my emacs.
I have hie running with the debug log, but it's quite large and might need some help figuring out what I need to look for.
Is there anything else I can add to help debug the issue?
Thanks.
Do you have a repeatable test-case or did it just happen once?
It only happened once. I'll keep my eye out and see if it's something that I can easily trigger.
Happened to me today on a quite large but not huge project (64 modules): https://github.com/GaloisInc/what4 (though some modules are fairly huge, e.g. https://github.com/GaloisInc/what4/blob/master/what4/src/What4/Expr/Builder.hs )
It also happened in this issue that was closed: https://github.com/haskell/haskell-ide-engine/issues/518
This looks almost certainly to be a bug in the text
library.
Similar in flavour to https://github.com/haskell/text/pull/230 perhaps.
Just to give an update: I haven't seen this issue again. Is there anything I can do to possibly trigger it?