- Clone and re-open in devcontainer
- Open FSharp file from F# Solution explorer
- errors are found, as dependencies have not been downloaded yet
- Restore dependencies:
- cd
accessviolationexception-repro/src
- dotnet restore
- errors are still shown
- cd
- Reload window (cmd palette:
Developer: Reload Window
) - Open an FSharp file from F# Solution explorer
- no errors or tooltips
- Review F# Output log
- see
System.AccessViolationException
- see
Not really a workaround, but it does affect the behavior:
- Remove the fsproj from the solution:
cd accessviolationexception-repro/src && dotnet sln remove AccessviolationexceptionRepro
- Reload window
- There are still no errors, tooltip hovers or hints, but there are also no AccessViolationException logs
Not really a workaround, but this highlight that the issue is in one of the dependencies:
- Delete the
bin
andobj
folders inaccessviolationexception-repro/src/AccessviolationexceptionRepro
- Reload window
- It reverts to the previous state - types from dependencies are marked as unknown but otherwise the F# language features are correct