admin管理员组

文章数量:1122832

I’m encountering some wrong errors in Haskell while coding in VS Code, such as "not in scope," "not imported-exported" or "package not found." To fix this, I have to quit VS Code and reopen it. These errors don’t affect the functionality, as the project builds, runs, and passes tests correctly, but my code ends up with lots of false errors - red underlines. Do you have any suggestions?

  • Im using Stack / Vscode (Version: 1.95.3 (Universal) Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813)
  • Mac Mini M1
  • ghcup 0.1.30.0
  • stack 3.1.1
  • hls 2.9.0.1
  • cabal 3.10.3.0 , 3.12.1.0
  • ghc 9.10.1

I tried uninstalling and reinstalling almost everything possible.

I’m encountering some wrong errors in Haskell while coding in VS Code, such as "not in scope," "not imported-exported" or "package not found." To fix this, I have to quit VS Code and reopen it. These errors don’t affect the functionality, as the project builds, runs, and passes tests correctly, but my code ends up with lots of false errors - red underlines. Do you have any suggestions?

  • Im using Stack / Vscode (Version: 1.95.3 (Universal) Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813)
  • Mac Mini M1
  • ghcup 0.1.30.0
  • stack 3.1.1
  • hls 2.9.0.1
  • cabal 3.10.3.0 , 3.12.1.0
  • ghc 9.10.1

I tried uninstalling and reinstalling almost everything possible.

Share Improve this question edited Nov 21, 2024 at 20:46 cafce25 26.9k5 gold badges41 silver badges52 bronze badges asked Nov 21, 2024 at 15:07 Danial HamediDanial Hamedi 33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I've had the same issue multiple times and clearing vscodes cache fixed it for me personally. what is your version of haskell, I'm sure your haskell version is updated to the latest.

clearing cache worked for me

本文标签: