Not able to use FSI on VS code

Viewed 4702

since few days, I'm not able to use FSharp Interactive interpreter(Alt + Enter), it's giving me this message: *Failed to spawn FSI, please ensure it's in PATH*

also, if I run the script, it give me connect ENONNREFUSED 127.0.0.1.8397

I'm using: - Ubuntu 16.04 - Visual Studio Code 1.28.2 - Ionide-sharp 3.28.0

anyone have an idea to fix this?

Thanks in advance

2 Answers

I think the main cause is the last update done. I have made a rollback and now everything is back to normal:

  1. remove ionide-fsharp from VS code
  2. click on https://github.com/ionide/ionide-vscode-fsharp/releases/download/3.27.0/Ionide-fsharp-3.27.0.vsix to download previous version of ionide (v 3.27.0)
  3. unzip the file. once the file is unziped, you will have 2 text files and a folder named extension. Rename that folder ionide.ionide-fsharp-3.27.0
  4. on your terminal, type:
    • 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. it should add ionide.ionide-fsharp-3.27.0 into VS Code extensions
  6. you need to turn off auto-update in VS Code (in VS Code, in the bottom left conner, click on Setting icon > click on Settings > in the field Search setting, type update and search, you should then search in the result for Extensions: Auto Update)
Related