ITADN

Erroneous error triggered on `{- # -}` (`#` is surrounded by whitespace)

#4940OpenAster89 创建于 2026-05-23
type: bugstatus: needs triage
A
Aster89commented
<!-- Before opening a bug, please take a look at the [troubleshooting guide](https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html). This explains some common issues and will also help you to find the information that the issue template asks for. --> ### Your environment <!-- Everything in this section is optional, but it does help us to debug your issue! --> Which OS do you use? ArchLinux up-to-date <!-- Windows, MacOS, Ubuntu, ArchLinux, etc... --> Which version of GHC do you use and how did you install it? 9.14.1 via GHCup <!-- 9.0.2 from stack/ghcup, etc. --> How is your project built (alternative: link to the project)? `ghc --make hello.hs && ./hello` Which LSP client (editor/plugin) do you use? Vim + YCM <!-- Neovim+LanguageClient-neovim, emacs+lsp-mode, VS Codium+vscode-haskell, etc... --> Which version of HLS do you use and how did you install it? 2.14.0.0 via GHCup <!-- 1.7.0.1 from ghcup, etc. --> Have you configured HLS in any way (especially: a `hie.yaml` file)? ### Steps to reproduce Open a file with this content ```haskell main :: IO () main = putStrLn "Hello World" {- # -} ``` ### Expected behaviour HLS should show no errors. ### Actual behaviour HLS shows the error `parse error on input ‘{’ [GHC-58481]`. Even executing `haskell-language-server-wrapper hello.hs` (so taking the IDE out of the equation) shows the same error. ### Debug information <!-- Include any useful debug information, such as relevant log snippets. -->
0 条评论