Repository navigation
Fix for issue #2864 - #2865
Fix for issue #2864#2865
Conversation
|
Thanks @silkfire, I'll look more closely later tonight. For now can you please fix the formatting to match our left-aligned convention? |
|
Is there some script I can run to do that? ReSharper formats things differently. |
|
I'm not sure, when I format the whole file in VS it ignores some newline alignments like yours, but when I just press enter it does the right thing by default. |
timcassell
left a comment
There was a problem hiding this comment.
Thanks for the quick fix @silkfire!
|
@silkfire I just pulled latest master and tried to build the sln locally with the new dotnet 10 sdk and I'm getting errors (apparently they don't manifest with the dotnet 8 sdk we use in the CI). BenchmarkDotNet.IntegrationTests net462 failed with 3 error(s) (1.8s)
C:\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\ArgumentsTests.cs(441,24): error BDN1502: Unexpected type for argument value 'expectedString'. Expected 'System.ReadOnlySpan<char>' but found 'string'.
C:\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\ArgumentsTests.cs(776,55): error BDN1502: Unexpected type for argument value '(SomeEnum)(-100)'. Expected 'BenchmarkDotNet.IntegrationTests.ArgumentsTests.WithUndefinedEnumValue.SomeEnum' but found 'BenchmarkDotNet.IntegrationTests.ArgumentsTests.WithUndefinedEnumValue.SomeEnum'.
C:\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\ParamsTests.cs(172,24): error BDN1502: Unexpected type for argument value 'Json'. Expected 'string' but found 'string'.
BenchmarkDotNet.Exporters.Plotting.Tests net8.0 succeeded (1.9s) → tests\BenchmarkDotNet.Exporters.Plotting.Tests\bin\Debug\net8.0\BenchmarkDotNet.Exporters.Plotting.Tests.dll
BenchmarkDotNet.IntegrationTests net8.0 failed with 2 error(s) (2.0s)
C:\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\ArgumentsTests.cs(776,55): error BDN1502: Unexpected type for argument value '(SomeEnum)(-100)'. Expected 'BenchmarkDotNet.IntegrationTests.ArgumentsTests.WithUndefinedEnumValue.SomeEnum' but found 'BenchmarkDotNet.IntegrationTests.ArgumentsTests.WithUndefinedEnumValue.SomeEnum'.
C:\BenchmarkDotNet\tests\BenchmarkDotNet.IntegrationTests\ParamsTests.cs(172,24): error BDN1502: Unexpected type for argument value 'Json'. Expected 'string' but found 'string'.Can you PTAL? |
|
I added multi-targeting in #2866, and now the errors manifest in the CI. I conditionally compiled out the |
|
I figured it out. Switched to using semantic model instead of syntax model. |
|
Do you have a branch I can test with? Can we create a test for this or tweak any of the existing ones? |
|
Yes my branch in #2866. Still WIP, but you can play with it. |
|
Added some comments to the PR |
No description provided.