Skip to content

[wasm] Wasm.Build.Tests failing with Generator 'JSExportGenerator' failed to initialize.. FileNotFoundException.. Microsoft.Interop.SourceGeneration #74944

Closed

Description

@radical

Wasm.Build.Tests.WasmTemplateTests failing on multiple PRs. On #74704 it failed with:

/datadisks/disk1/work/ABD10942/w/B5030994/e/dotnet-workload/sdk/7.0.100-rc.2.22426.5/MSBuild.dll /nologo -maxcpucount -property:_IsPublishing=true --property:WasmBuildOnlyAfterPublish=true --property:AppRefDir=/datadisks/disk1/work/ABD10942/p/microsoft.netcore.app.ref --property:Configuration=Debug -restore -target:Publish -verbosity:m /v:minimal /bl:/datadisks/disk1/work/ABD10942/w/B5030994/uploads/xharness-output/logs/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.binlog ./Debug_rgbarhvz.zdp.csproj
  Determining projects to restore...
  Restored /datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj (in 4 ms).

CSC : warning CS8784: Generator 'JSExportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]
CSC : warning CS8784: Generator 'JSImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]
CSC : warning CS8784: Generator 'LibraryImportGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result.
	Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly
		'Microsoft.Interop.SourceGeneration, Version=42.42.42.42, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Program.cs(21,36):
	error CS8795: Partial method 'MyClass.GetNodeVersion()' must have an implementation part because it has accessibility modifiers. [/datadisks/disk1/work/ABD10942/w/B5030994/e/Debug_rgbarhvz.zdp/Debug_rgbarhvz.zdp.csproj]

Also seen on #74705 .

cc @maraf @pavelsavara

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    arch-wasm
    blocking-clean-ci
    on Sep 1, 2022
  2. ghost added
    untriaged
    on Sep 1, 2022
  3. removed
    untriaged
    on Sep 1, 2022
  4. changed the title [-][wasm] `Wasm.Build.Tests failing with `Generator 'JSExportGenerator' failed to initialize`.. `FileNotFoundException`.. `Microsoft.Interop.SourceGeneration`[/-] [+][wasm] `Wasm.Build.Tests` failing with `Generator 'JSExportGenerator' failed to initialize`.. `FileNotFoundException`.. `Microsoft.Interop.SourceGeneration`[/+] on Sep 1, 2022
  5. radical commented on Sep 1, 2022

    @radical
    MemberAuthor

    @ericstj could this be related to #74897 ? This is a wasm template project being built with a rc2 sdk, and wasm-tools workload installed.

    This is effectively what's being run:

    1. dotnet new wasmconsole
    2. dotnet publish -p:WasmBuildOnlyAfterPublish=true /p:AppRefDir=/datadisks/disk1/work/ABD10942/p/microsoft.netcore.app.ref /p:Configuration=Debug /nologo /v:minimal
  6. ericstj commented on Sep 1, 2022

    @ericstj
    Member

    Yes, you need #74943

  7. ghost added
    in-pr
    on Sep 1, 2022
  8. ghost removed
    in-pr
    on Sep 1, 2022
  9. ghost added
    in-pr
    on Sep 1, 2022
  10. lewing commented on Sep 2, 2022

    @lewing
    Member

    It is a bit disheartening that #74897 landed without running a test of the JSImport generator, the wasm built tests would have indicated there was a problem.

  11. radical commented on Sep 2, 2022

    @radical
    MemberAuthor

    dotnet-runtime-perf pipeline is also completely broken because of this.

  12. added
    blocking
    on Sep 2, 2022
  13. ghost removed
    in-pr
    on Sep 2, 2022
  14. removed
    blocking
    blocking-clean-ci
    on Sep 2, 2022
  15. ericstj commented on Sep 2, 2022

    @ericstj
    Member

    I'm pretty surprised that nothing in the PR validation caught this problem. I tried to go back and inspect the build for that PR but I cannot find it. cc @ViktorHofer
    It looks like the pipeline was changed around the time my PR went up. Maybe validation was never triggered as a result and the badge showed "green" so it was merged?

  16. radical commented on Sep 2, 2022

    @radical
    MemberAuthor

    The PR didn't run any pipelines at all - https://github.com/dotnet/runtime/pull/74897/checks . Probably because of the recent CI issues.

  17. ericstj commented on Sep 2, 2022

    @ericstj
    Member

    Yeah, that's my working theory. I hope we have some coverage in place that we produce a ref-pack that can be compiled against. I could imagine a gap here though, and it's something that ought to be filled.

  18. ghost locked as resolved and limited conversation to collaborators on Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions