Skip to content

Exception in plugin PluginId "ghcide-code-actions-imports-exports" while processing SMethod_TextDocumentCodeAction #4175

Closed
@soulomoon

Description

@soulomoon

I open hls-test-utils/src/Test/Hls.hs, and try to use DataColumn. It throw error condition:

Error condition, please check your setup and/or the [issue tracker](https://github.com/haskell/haskell-language-server/issues): 
ghcide-code-actions-imports-exports: Internal Error: Exception in plugin PluginId "ghcide-code-actions-imports-exports" while processing SMethod_TextDocumentCodeAction: bug in srcspan parser
CallStack (from HasCallStack):
  error, called at plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs:958:22 in hskll-lngg-srvr-2.7.0.0-dbac2051:Development.IDE.Plugin.CodeAction

the logs:

024-04-14T11:54:36.631150Z | Error | ghcide-code-actions-imports-exports: Internal Error: Exception in plugin PluginId "ghcide-code-actions-imports-exports" while processing SMethod_TextDocumentCodeAction: bug in srcspan parser
CallStack (from HasCallStack):
  error, called at plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs:957:22 in hskll-lngg-srvr-2.7.0.0-227ab907:Development.IDE.Plugin.CodeAction
2024-04-14T11:54:37.526240Z | Error | ghcide-code-actions-imports-exports: Internal Error: Exception in plugin PluginId "ghcide-code-actions-imports-exports" while processing SMethod_TextDocumentCodeAction: bug in srcspan parser
CallStack (from HasCallStack):
  error, called at plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs:957:22 in hskll-lngg-srvr-2.7.0.0-227ab907:Development.IDE.Plugin.CodeAction
2024-04-14T11:54:39.420600Z | Error | ghcide-code-actions-imports-exports: Internal Error: Exception in plugin PluginId "ghcide-code-actions-imports-exports" while processing SMethod_TextDocumentCodeAction: bug in srcspan parser
CallStack (from HasCallStack):

It should suggest to import LoggingColumn(DataColumn)

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: imports plugintype: 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