this post was submitted on 12 Sep 2023
4 points (83.3% liked)
VS Code
807 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Which terminal are you running in vscode? I think the default is powershell but I'm not sure
Whatever it is, try running that terminal outside of vscode and executing the FSI command. Do you see the same error?
If not, then the problem is with vscode and the embedded terminal.
If yes, then it's something else. You could try running FSI in other terminals like cmd.exe
that works, was there a breaking change or is my vscode setup borked?
Cool. Where does this succeed and where does it fail?
E.g. Works in powershell outside of vscode but fails in vscode's embedded powershell
Edit: Also, how do you trigger the original error? Are you clicking in vscode's UI? Using the command pallette? Using the embedded terminal?
Hi, thank you for responding, sorry for my incomplete reply.
After running
dotnet fsi
on the command line, I tried in vs code again. FSI Start...and it worked!So I don't know if it need a "first run" or something changed between last night and now....but oh well. Thank you for your help!
Oh awesome. Glad that worked for you!
Sounds like some kind of initial processing needs to run outside of vscode before it works normally. Might be worth reporting on github!