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 badges1 Answer
Reset to default 0I'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
本文标签:
版权声明:本文标题:haskell - VS Code shows dummy errors despite successful builds; restarting VS Code temporarily resolves the issue—suggestions? - 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309594a1934074.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论