ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
856 stars 277 forks source link

problem evaluating code with string literal using fsx #849

Closed halfAbee closed 4 years ago

halfAbee commented 6 years ago

Problem

strange incorrect behaviour dependent on presence of a comment doing string operation on attached fsx ac7bug.fsx.txt file.

Steps to reproduce

If you select and evaluate the whole attached fsx.txt file, the string [] data has an empty string as its penultimate value.

If you ignore the comment and only evaluate from line 48, the expected array is made, without the empty string entry. Using triple quotes on the input avoids the error, but I think single quotes are legal too?

The whole file with comment and single quotes evaluates correctly in Rider.

Machine infos

halfAbee commented 6 years ago

this derailed me for a while doing the advent of code 2017 challenge question 7.