CommunityToolkit / Labs-Windows

A safe space to collaborate and engineer solutions from the prototyping stage all the way through polished finalized component for the Windows Community Toolkit.
Other
319 stars 43 forks source link

SourceGenerators fail when REbuilding #118

Closed mrlacey closed 2 years ago

mrlacey commented 2 years ago

Repro:

Errors include:

Source file 'C:\github\CommunityToolkit\Labs-Windows\labs\CanvasLayout\samples\CanvasLayout.Wasm\bin\Debug\net5.0\dist\package_2617c91bd86399bc0f8b6173a97918556d6bb754\SourceAssets\CanvasLayout\samples\CanvasLayout.Sample\canvaslayout.md' could not be found.
The name 'ToolkitDocumentRegistry' does not exist in the current context
The name 'ToolkitSampleRegistry' does not exist in the current context
michael-hawker commented 2 years ago

I sometimes get an issue with wasm trying to copy stuff failing, but this is a separate issue probably:

8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error : System.ApplicationException: Unable to move PACKAGE DIST H:\code\Labs-UWP\labs\CanvasLayout\samples\CanvasLayout.Wasm\obj\Debug\net5.0\dist_work to H:\code\Labs-UWP\labs\CanvasLayout\samples\CanvasLayout.Wasm\bin\Debug\net5.0\dist\package_c99f848e5cffb415b91f9d0b255891dc8849bde4: System.IO.IOException: Access to the path 'H:\code\Labs-UWP\labs\CanvasLayout\samples\CanvasLayout.Wasm\obj\Debug\net5.0\dist_work' is denied.
8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    at System.IO.Directory.InternalMove(String sourceDirName, String destDirName, Boolean checkHost)
8>C:\Users\....\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    at Uno.Wasm.Bootstrap.ShellTask_ve126791f34aac2c690e13568d8a43ec63bda6d9e.PrepareFinalDist() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 1270 ---> System.IO.IOException: Access to the path 'H:\code\Labs-UWP\labs\CanvasLayout\samples\CanvasLayout.Wasm\obj\Debug\net5.0\dist_work' is denied.
8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    at System.IO.Directory.InternalMove(String sourceDirName, String destDirName, Boolean checkHost)
8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    at Uno.Wasm.Bootstrap.ShellTask_ve126791f34aac2c690e13568d8a43ec63bda6d9e.PrepareFinalDist() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 1270
8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    --- End of inner exception stack trace ---
8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    at Uno.Wasm.Bootstrap.ShellTask_ve126791f34aac2c690e13568d8a43ec63bda6d9e.PrepareFinalDist() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 1275
8>C:\Users\...\.nuget\packages\uno.wasm.bootstrap\3.1.2\build\Uno.Wasm.Bootstrap.targets(175,5): error :    at Uno.Wasm.Bootstrap.ShellTask_ve126791f34aac2c690e13568d8a43ec63bda6d9e.Execute() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 230

Rebuilding after this resulted in the same issue though.

However, I can still just run a head and it works... So a little odd. Like a ghost issue.

FYI @Arlodotexe

Arlodotexe commented 2 years ago

This may be related to #116