Closed pkese closed 2 years ago
The diagnostic says that you have to add the preview flag to the FSI parks in order to use this feature. You can do this in ionide via the fsharp.fsiAdditionalArgs setting. Can you try this and report back if it doesn't work?
Thanks
Setting
"FSharp.fsiExtraParameters": [ "--langversion:preview" ]
in settings.json
fixed the problem.
I assumed that since from-end slicing was introduced as preview
in FSharp 5.0,
that this would imply that it is then enabled by default in 6.0.
But it is not.
Closing because it's a preview feature.
Describe the bug
From-end indices in
.fsx
files get marked as errors:Hovering over the squiggle says that it requires language > 5.0 even though my dotnet is 6.0.201
Machine info