Redundant symbol containing Unicode character may cause HLS to hang #2859
Labels
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Describe your project (alternative: link to the project): A simple project using GHC 9.02 consisting of the following two modules:
Types.hs
:Lib.hs
Steps to reproduce
Lib.hs
and wait a moment.ε
gets reported and HLS stops responding.Expected behaviour
HLS should continue working and provide some code action to remove
ε
from the list.Actual behaviour
HLS hangs and stop responding indefinitely.
If we rename
ε
so that it doesn't include any unicode character, then the panic goes away.Also note that removing the definition of
a
fromLib.hs
and stop importingA(..)
, then HLS won't panic anymore - it seems that at least one extra imported item are needed to reproduce the situation. In other words, the followingLib.hs
won't make HLS panic:Include debug information
Debug Output here:
panic.log
The following
panic
lines from the above illustrates the situation:\949
corresponds toε
.The text was updated successfully, but these errors were encountered: