FSI sometimes gets confused by tabs.
Repro steps
-
Open Microsoft (R) F# Interactive version 12.5.0.0 for F# 7.0
-
Type in the following program
- Highlight the second line (" 3") and Send to Interactive.
Expected behavior
FSI should evaluate and return 3.
Actual behavior
Error.
System.IO.File.WriteAllText(@"C:\Users\wilso\AppData\Local\Temp\tmpE9F5.tmp.pid", string (System.Diagnostics.Process.GetCurrentProcess().Id));;
^
stdin(1,1): error FS0010: Unexpected symbol # in interaction. Expected incomplete structured construct at or before this point, ';', ';;' or other token.
Known workarounds
Un-indent code before sending it to F# interactive.
Related information
- Operating system: Windows
- .NET Runtime kind: Net Core 7.0
- Editing Tools: VS 2022 17.6.0 Preview 1.0
