sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[dotnet watch] Cannot open project Lib.fsproj because extension fsproj is not associated with a language

Open carlossanlop opened this issue 10 months ago • 16 comments

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=932408 Build error leg or test failing: dotnet-sdk-public-ci

Error Message

{
  "ErrorMessage" : "because the file extension '.fsproj' is not associated with a language",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
  • PR: https://github.com/dotnet/sdk/pull/46255
  • Queue: FullFramework: windows (x64)
  • Job result: https://dev.azure.com/dnceng-public/public/_build/results?buildId=932408&view=logs&j=2709a726-7db6-5829-ca7b-958b9d664f9e&t=9c6bf218-1bed-58a8-ccb2-7aefc7e3994e
  • Log file: https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-sdk-refs-pull-46255-merge-f03a79adaa674a1187/dotnet-watch.Tests.dll.1/1/console.1a860fa0.log?helixlogtype=result
  • Output:
 dotnet watch ⚠ msbuild: [Failure] Cannot open project 
'C:\h\w\B34E099A\t\dotnetSdkTests\geksol2n.pb2\RenameSourceF---5F6BBE1E\FSharp\Lib.fsproj' 
because the file extension '.fsproj' is not associated with a language.

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=932408 Error message validated: [because the file extension '.fsproj' is not associated with a language] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 1/28/2025 10:53:09 PM UTC

Report

Build Definition Step Name Console log Pull Request
2732227 dotnet-sdk Run dotnet-format on dotnet/aspnetcore AspNetCore.sln Log #50989
Build Definition Test Pull Request
1075041 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49454
1074797 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49454
1074204 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49454
2732403 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #51011
2732285 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #50939
2732284 dotnet-sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.MauiBlazor #51000
2731748 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #50943
1070309 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49326
1069918 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49444
2731715 dotnet-sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.MauiBlazor #50938
1069692 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49421
1068620 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49408
1068007 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49389
1067512 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49374
1067583 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49393
2729237 dotnet-sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.MauiBlazor #50855
1066921 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49375
1066696 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49374
1065747 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49290
1065794 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49357
1065706 dotnet/sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Aspire dotnet/sdk#49352
1065782 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49288
1065766 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49306
1065689 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49329
1065749 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49356
1065631 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49118
1064368 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49242
1060792 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49280
1065610 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49310
2728318 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution
1065477 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49332
1065487 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49306
1064445 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49290
1064363 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49239
1065543 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49288
1064753 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49306
1065101 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49288
1065102 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49330
1065083 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49336
1065159 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#48906
1065055 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49329
1064899 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49348
1064897 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49346
1064858 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49308
1064808 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49315
1064765 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#48387
1064741 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49287
1064729 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49311
2727783 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution
1064585 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49306
1064372 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49336
1064242 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49287
1064474 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49306
2727354 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution
1064303 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49166
1064298 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49334
1064268 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49332
1064272 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49150
1064250 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49328
1064248 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49315
1064233 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49314
1064216 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#48906
1064222 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49312
1064208 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49330
1064206 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49329
1064207 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49186
1064212 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49284
1064194 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#48819
1064304 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49290
1064090 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49323
1063209 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49306
1063970 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49057
1063972 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49061
1064038 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49316
1063978 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49134
1063897 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49150
1063957 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#45548
2726722 dotnet-sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.MauiBlazor #50201
2726630 dotnet-sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.MauiBlazor #50201
1063031 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49150
1062871 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49150
1062741 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49304
1062089 dotnet/sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Aspire dotnet/sdk#49150
2724327 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution
1060444 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49238
1060434 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49239
1060349 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#48575
1059964 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49241
1059871 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49263
1059786 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49260
1059624 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49061
1059627 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49072
2723417 dotnet-sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.MauiBlazor #50201
2723288 dotnet-sdk dotnet-watch.Tests.dll.1.WorkItemExecution #50201
1059289 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49238
1059063 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49238
1058233 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#48575
1058256 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49238
1057752 dotnet/sdk dotnet-watch.Tests.dll.1.WorkItemExecution dotnet/sdk#49181
1057640 dotnet/sdk Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.Aspire dotnet/sdk#48910
Displaying 100 of 110 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 12 111

carlossanlop avatar Jan 28 '25 22:01 carlossanlop

I thought @tmat already fixed this with a servicing fix to the 9.0.1xx releases? It should be in 102 or 103?

baronfel avatar Jan 28 '25 22:01 baronfel

The warning is not the reason why the test failed.

tmat avatar Jan 28 '25 23:01 tmat

This commit hasn't been integrated to main yet: https://github.com/dotnet/sdk/commit/3cd7c654c9052b5e08be0927d7dea9b01ac3b8c3

tmat avatar Jan 28 '25 23:01 tmat

@tmat, just hit this issue in https://github.com/dotnet/sdk/pull/45419, which is targeting release/9.0.3xx. I don't think this worked.

Forgind avatar Feb 12 '25 20:02 Forgind

@Forgind You can ignore Mac ARM64 failures. The machines are slow and the tests time out.

tmat avatar Feb 12 '25 23:02 tmat

@Forgind You can ignore Mac ARM64 failures. The machines are slow and the tests time out.

Can you explain that a bit further? @marcpopMSFT told me that those machines should actually be faster than the x64 machines. That said, we've also had a lot of timeouts and are actively working on figuring out why (without success as of yet, hence the PR I linked). It may be that we've just misunderstood where the issue is on that leg, and we should just increase the timeout across the board.

Forgind avatar Feb 13 '25 00:02 Forgind

@Forgind Not sure what the status is right now, but the Mac ARM64 CI leg has been optional for a while.

tmat avatar Feb 13 '25 00:02 tmat

It's optional right now because it's been timing out, but we've been trying to figure out why it keeps timing out so we can turn it back on. I don't know that it's just automatically slow.

Forgind avatar Feb 13 '25 00:02 Forgind

Oh, I see. So in this specific case the logs show that dotnet build is taking very long time. Not sure where it gets stuck:

Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.AddSourceFile [OUTPUT] dotnet watch 🚀 Launched '/private/tmp/helix/working/B2910953/p/d/dotnet' with arguments 'build /private/tmp/helix/working/B2910953/w/A696090A/e/testExecutionDirectory/AddSourceFile---E93D266F/AppWithDeps/App.WithDeps.csproj -consoleLoggerParameters:NoSummary;Verbosity=minimal': process id 96065

Seems like memory dumps were saved but I don't see them in the artifact list.

tmat avatar Feb 13 '25 01:02 tmat

To clarify, forgind was trying to get context on your comment that the arm64 machines are slow. Ever since we added that leg, it has been fairly consistently timing out. When I asked the codeflow chat, they indicated that arm64 should be faster than x64 so it wasn't a machine issue and we should dig further. That's when we made them optional, later turned them off, and have been trying to find out why they are timing out ever since. Do you have a reason to believe the mac arm64 machines are slower than the x64 ones?

marcpopMSFT avatar Feb 13 '25 22:02 marcpopMSFT

Do you have a reason to believe the mac arm64 machines are slower than the x64 ones?

No specific reason. I didn't know forgind is trying to figure out why. Just stating that we have been skipping the CI leg because it's been timing out.

tmat avatar Feb 13 '25 22:02 tmat

@tmat, hit this again in https://github.com/dotnet/sdk/pull/47110

Please fix this.

Forgind avatar Feb 26 '25 00:02 Forgind

This fixes a potential race condition: https://github.com/dotnet/sdk/pull/47117 It looks like this race is hit by https://github.com/dotnet/sdk/pull/47110 based on the test logs.

tmat avatar Feb 26 '25 02:02 tmat

@tmat, hit this again in #48081

Forgind avatar Apr 01 '25 19:04 Forgind

@Forgind I don't see dotnet-watch failure in that PR.

Found this though:

xUnit.net 00:00:31.22]       System.TypeLoadException : Could not load type 'FluentAssertions.Execution.Execute' from assembly 'FluentAssertions, Version=8.0.2.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a'.
projecttoolscommandresolver: invalid commandResolverArguments
[xUnit.net 00:00:31.22]       Stack Trace:
[xUnit.net 00:00:31.22]            at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass()
[xUnit.net 00:00:31.22]            at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass()
[xUnit.net 00:00:31.22]         /_/test/Microsoft.NET.TestFramework/TestAsset.cs(268,0): at Microsoft.NET.TestFramework.TestAsset.Restore(ITestOutputHelper log, String relativePath, String[] args)
[xUnit.net 00:00:31.22]         D:\a\_work\1\s\test\Microsoft.DotNet.CommandFactory.Tests\GivenAProjectToolsCommandResolver.cs(170,0): at Microsoft.DotNet.Tests.GivenAProjectToolsCommandResolver.ItReturnsACommandSpecWithArgsContainingCommandPathWhenReturningACommandSpecAndCommandArgumentsAreNull()
[xUnit.net 00:00:31.22]            at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
[xUnit.net 00:00:31.22]            at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[xUnit.net 00:00:31.22]            at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

tmat avatar Apr 01 '25 20:04 tmat

Closing. This shouldn't be considered known failure.

tmat avatar Oct 08 '25 23:10 tmat