Select the code in the editor and press ALT+ENTER => Get an error:
The terminal process "C:\Program Files\dotnet\dotnet.exe 'c:\Program Files\dotnet\sdk\6.0.201\FSharp', '--fsi-server-input-codepage:28591', '--fsi-server-output-codepage:65001', '--load:c:\Users\user1\.vscode\extensions\ionide.ionide-fsharp-5.12.0\watcher\watcher.fsx'" terminated with exit code: 1.
Describe the bug
I cannot run a .FSX file in VSCode.
Steps to reproduce
Setup VSCode
Install .net 6 (with Visual Studio 2022)
Install VSCode extension Name: .NET Extension Pack Id: ms-dotnettools.vscode-dotnet-pack Description: The ultimate collection of extensions for working with .NET in VS Code! Version: 1.0.8 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-pack
Open a folder in VSCode
Create a file "s1.fsx"
Add two lines of code:
Press F5 => Get input line "Select environment"
Select the code in the editor and press ALT+ENTER => Get an error:
Screenshots
Press F5 in s1.fsx
Select the two lines of code and press ALT+ENTER
Machine info