dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.93k stars 786 forks source link

Index out of range when building with shipped compiler #14879

Open vzarytovskii opened 1 year ago

vzarytovskii commented 1 year ago

While working on building FCS with shipped compiler, I'm getting the following error for dotnet build FSharp.Compiler.Service.sln in CI:

error FS0193 : internal error : Index was outside the bounds of the array. [C:\projekty\fsharp\dotnet-build\src\FSharp.Compiler.Interactive.Settings\FSharp.Compiler.Interactive.Settings.fsproj::TargetFramework=netstandard2.0]

Which may indicate, that a shipped compiler in 7.0.201 has some bug.

edgarfgp commented 2 weeks ago

I have seen this issue regularly lately.

Image

krauthaufen commented 5 days ago

This occasionally happens in some of my projects too. Actually I never saw it in a real compile, but VS tooling sometimes reports it.

I never saw it in rider yet, if that helps.

vzarytovskii commented 5 days ago

This should've been fixed in latest versions of fcs. I think. So if you see it again, please report with versions of tooling