我正在尝试为vs代码设置。
我用阴谋集团安装了隐形眼镜。弹跳位置
~/.cabal/bin/hlint我还在setting.json of VSCode中添加了上述路径。
"haskell.hlint.executablePath": "~/.cabal/bin/hlint"
但是,在vs代码中仍然会出现以下错误:
Cannot hlint the haskell file. The hlint program was not found. Use the 'haskell.hlint.executablePath' setting to configure the location of 'hlint'我在用Mac操作系统。有人能帮忙吗?
编辑1:也尝试添加完整的路径,但仍然没有成功。
"haskell.hlint.executablePath": "/Users/ujjwal/.cabal/bin/hlint"
发布于 2022-10-10 16:18:01
这似乎对我有用。(Mac Intel)
在macOS上,打开我的终端并键入:哪个hlint => /=>/admin/..local/bin/hlint
如果命令找不到hlint,您可能需要找出它安装在计算机上的位置,并将其添加到路径中。
然后转到vscode设置(cmd +,) ->扩展-> haskell,然后粘贴/User/admin/..local/bin/hlint作为“可执行路径”。您将需要粘贴您自己的结果,从其中明显的闪烁。
https://stackoverflow.com/questions/62932048
复制相似问题