Skip to content

Data.Text.Internal.Fusion.Common.index: Index too large #2602

Closed
@fendor

Description

@fendor

Your environment

Which OS do you use: Ubuntu
Which LSP client (editor/plugin) do you use: VSCode
Describe your project (alternative: link to the project):
bios project with custom hie.yaml. I do not believe the project itself is important, but it does use TH.

Noticeably, this HLS version is installed via nix, is based on the hackage release 1.5.1, and applies the patch #2359.

Steps to reproduce

Open HLS and perform some arbitrary editing of files.

Expected behaviour

HLS should be happy and report diagnostics.

Actual behaviour

Stops responding and shows no diagnostics any more. Logs contain:

haskell-language-server: Data.Text.Internal.Fusion.Common.index: Index too large
CallStack (from HasCallStack):
  error, called at libraries/text/src/Data/Text/Internal/Fusion/Common.hs:943:24 in text-1.2.4.1:Data.Text.Internal.Fusion.Common

Include debug information

Since HLS has been installed via nix, I am not sure at the moment, whether an outdated dependency might cause the issue.
The error was thrown while all non-essential plugins were disabled via the VSCode settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triagetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions