Strange characters in VSCode FSharp Interactive Terminal

I'm trying to play with fsharp under Ubuntu (and yes, I slowly understand that this is more than fun), I have already installed the Mono, VSCode and Ionide extension, and I can create and create F # projects. Unfortunately, when I run a simple F # script through F # Interactive:

printfn "bar" 

In the terminal window, I get:

 > - printfn "bar" - - ;; bar val it : unit = () F# 4.0 (Open Source Edition) > ^?^?414;3R^?^?^?^?^?^? the Apache 2.0 Open Source License 

Strange sequence ^?^? looks like unrecognized terminal escape codes, but when I use bash from VSCode, there is nothing like that.

The more a strange sequence appears after each command executed in FSI:

 > let j = 9;; val j : int = 9 > printfn "foo";; foo val it : unit = () > ^?^? 

Does anyone have the same problem and know the solution (or maybe just know the solution)?

EDIT: The problem mainly occurs when executing commands using the Ionide Alt + Enter shortcut

+6
source share
1 answer

It looks like an error https://github.com/Microsoft/vscode/issues/19766 . VS Code 1.9 introduces a new terminal.integrated.flowControl parameter, which is true by default. Symbols ^? that you see (and any ^S and ^Q characters that may be displayed) come from this flow control function, which doesn't work very well with F # Interactive. Change the VS code settings to set terminal.integrated.flowControl to false and your problem should go away.

+4
source

Source: https://habr.com/ru/post/1014925/


All Articles