Skip to content

Assertion: IncrementalBuild object has already been disposed! #4137

@cartermp

Description

@cartermp

On self-built VSIX, after opening VisualFSharp.sln and CompletionProviderTests.fs, I get the below assertion. I took no action in the IDE.

---------------------------
Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue
---------------------------
IncrementalBuild object has already been disposed!

   at Microsoft.FSharp.Compiler.IncrementalBuilder.assertNotDisposed()
   at Microsoft.FSharp.Compiler.IncrementalBuilder.DecrementUsageCount()
   at <StartupCode$FSharp-Compiler-Private>[email protected](Tuple`3 tupledArg)
   at Internal.Utilities.Collections.AgedLookup`3.strongDiscard(Value x)
   at <StartupCode$FSharp-Compiler-Private>[email protected](Value x)
   at Microsoft.FSharp.Primitives.Basics.List.iter[T](FSharpFunc`2 f, FSharpList`1 x)
   at Microsoft.FSharp.Collections.ListModule.Iterate[T](FSharpFunc`2 action, FSharpList`1 list)
   at Internal.Utilities.Collections.AgedLookup`3.AssignWithStrength[d,e](d tok, FSharpList`1 newdata, FSharpList`1 discard1)
   at <StartupCode$FSharp-Compiler-Private>[email protected](Tuple`3 _arg3)
   at Microsoft.FSharp.Compiler.AbstractIL.Internal.Library.CancellableModule.bind@711.Invoke(CancellationToken ct)
   at Microsoft.FSharp.Compiler.AbstractI......
<truncated>
---------------------------
Abort   Retry   Ignore   
---------------------------

Could this be related to #4121?

cc @dsyme @KevinRansom @dwed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions