dotnet / dotnet/fsharp

Some syntax tree tests fail in Debug

Open
#15,908 4 comments 1 reaction 1 assignee Claimed by @T-Gro View on GitHub
Area-Testing
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

https://github.com/dotnet/fsharp/pull/15343 introduced test failures when using Debug solution configuration:

Screenshot 2023-08-31 at 17 54 12

```
System.AggregateException : One or more errors occurred. (One or more errors occurred. (Unknown exception seen in compiler: JetBrains.ReSharper.TestRunner.Logging.TraceListener+AssertionException: Unknown exception seen in compiler: JetBrains.ReSharper.TestRunner.Logging.TraceListener+AssertionException: Unexpected exception raised in compiler: value does not have a valid member type
FSharp.Compiler.DiagnosticsLogger+InternalError: value does not have a valid member type(5,8--5,9)

at FSharp.Compiler.ParseAndCheckInputs.CheckOneInput@1276-2.Invoke(CancellationToken ct) in C:\Developer\fsharp-main-5\src\Compiler\Driver\ParseAndCheckInputs.fs:line 1346
at FSharp.Compiler.ParseAndCheckInputs.CheckOneInput@1275-17.Invoke(CancellationToken ct)

at FSharp.Compiler.CodeAnalysis.ParseAndCheckFile.CheckOneFile@2690-6.Invoke(CancellationToken ct) in C:\Developer\fsharp-main-5\src\Compiler\Service\FSharpCheckerResults.fs:line 2693
at FSharp.Compiler.CodeAnalysis.ParseAndCheckFile.CheckOneFile@2680-8.Invoke(CancellationToken ct)
))
```

cc @T-Gro Could you please take a look?

I really wonder, why doesn't it fail in Release? Why doesn't it fail on CI?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.