You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] Wasm.Build.Tests failing with Generator 'JSExportGenerator' failed to initialize.. FileNotFoundException.. Microsoft.Interop.SourceGeneration #74944
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]
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
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.
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?
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.
ghost locked as resolved and limited conversation to collaborators on Oct 2, 2022
Activity
[-][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`[/+]radical commentedon Sep 1, 2022
@ericstj could this be related to #74897 ? This is a wasm template project being built with a rc2 sdk, and
wasm-toolsworkload installed.This is effectively what's being run:
dotnet new wasmconsoledotnet publish -p:WasmBuildOnlyAfterPublish=true /p:AppRefDir=/datadisks/disk1/work/ABD10942/p/microsoft.netcore.app.ref /p:Configuration=Debug /nologo /v:minimalericstj commentedon Sep 1, 2022
Yes, you need #74943
lewing commentedon Sep 2, 2022
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.
radical commentedon Sep 2, 2022
dotnet-runtime-perfpipeline is also completely broken because of this.ericstj commentedon Sep 2, 2022
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?
radical commentedon Sep 2, 2022
The PR didn't run any pipelines at all - https://github.com/dotnet/runtime/pull/74897/checks . Probably because of the recent CI issues.
ericstj commentedon Sep 2, 2022
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.