gpt4 book ai didi

f# - 无法在 VS 代码上使用 FSI

转载 作者:行者123 更新时间:2023-12-04 02:56:36 25 4
gpt4 key购买 nike

几天以来,我无法使用 FSharp Interactive interpreter(Alt + Enter),它给我这条消息:*未能生成 FSI,请确保它在 PATH 中*

此外,如果我运行脚本,它会给我 connect ENONNREFUSED 127.0.0.1.8397

我正在使用:- Ubuntu 16.04- Visual Studio Code 1.28.2- Ionide-sharp 3.28.0

有人有解决这个问题的想法吗?

提前致谢

最佳答案

我认为主要原因是最后一次更新完成。我已经回滚了,现在一切都恢复正常了:

  1. 从 VS 代码中删除 ionide-fsharp
  2. 点击https://github.com/ionide/ionide-vscode-fsharp/releases/download/3.27.0/Ionide-fsharp-3.27.0.vsix下载以前版本的 ionide (v 3.27.0)
  3. 解压缩文件。文件解压缩后,您将拥有 2 个文本文件和一个名为 extension 的文件夹。重命名该文件夹 ionide.ionide-fsharp-3.27.0
  4. 在您的终端上,输入:
    • cd ~/.vscode

    • cd extensions/

    • mv /home/####/Downloads/Ionide-fsharp-3.27.0.vsix_FILES/ionide.ionide-fsharp-3.27.0 . (don't forget the dot at the end to move the folder to the new location )

  5. 它应该将 ionide.ionide-fsharp-3.27.0 添加到 VS Code 扩展中
  6. 您需要在 VS Code 中关闭自动更新(在 VS Code 中,在左下角,单击“设置”图标 > 单击“设置”> 在搜索设置字段中,键入update 和搜索,然后您应该在结果中搜索 Extensions: Auto Update)

关于f# - 无法在 VS 代码上使用 FSI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52906508/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com