Skip to content

Separate global declaration from initialization #1645

Separate global declaration from initialization

Separate global declaration from initialization #1645

Triggered via pull request November 14, 2024 15:39
Status Failure
Total duration 2m 2s
Artifacts

run-build-and-unit-tests.yml

on: pull_request
Matrix: main
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 24 warnings
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,37): error CS0117: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,53): error CS1061: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' and no accessible extension method 'Initializer' accepting a first argument of type 'GlobalVariableDefinition' could be found (are you missing a using directive or an assembly reference?) [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,37): error CS0117: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,53): error CS1061: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' and no accessible extension method 'Initializer' accepting a first argument of type 'GlobalVariableDefinition' could be found (are you missing a using directive or an assembly reference?) [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
Target "CompileAll" has thrown an exception
main (ubuntu-latest)
Process completed with exit code 255.
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,37): error CS0117: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,53): error CS1061: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' and no accessible extension method 'Initializer' accepting a first argument of type 'GlobalVariableDefinition' could be found (are you missing a using directive or an assembly reference?) [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,37): error CS0117: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Lowering/BlockItemLowering.cs(420,53): error CS1061: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' and no accessible extension method 'Initializer' accepting a first argument of type 'GlobalVariableDefinition' could be found (are you missing a using directive or an assembly reference?) [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
Target "CompileAll" has thrown an exception
main (macos-latest)
Process completed with exit code 255.
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Lowering\BlockItemLowering.cs(420,37): error CS0117: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Lowering\BlockItemLowering.cs(420,53): error CS1061: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' and no accessible extension method 'Initializer' accepting a first argument of type 'GlobalVariableDefinition' could be found (are you missing a using directive or an assembly reference?) [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Lowering\BlockItemLowering.cs(420,37): error CS0117: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Lowering\BlockItemLowering.cs(420,53): error CS1061: 'GlobalVariableDefinition' does not contain a definition for 'Initializer' and no accessible extension method 'Initializer' accepting a first argument of type 'GlobalVariableDefinition' could be found (are you missing a using directive or an assembly reference?) [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
Target "CompileAll" has thrown an exception
main (windows-latest)
Process completed with exit code 127.
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Extensions/TranslationUnitEx.cs(84,21): warning CS0162: Unreachable code detected [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/usr/share/dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/home/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Extensions/TranslationUnitEx.cs(84,21): warning CS0162: Unreachable code detected [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (ubuntu-latest)
/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/home/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Extensions/TranslationUnitEx.cs(84,21): warning CS0162: Unreachable code detected [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Extensions/TranslationUnitEx.cs(84,21): warning CS0162: Unreachable code detected [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Ir/Types/StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [/Users/runner/work/Cesium/Cesium/Cesium.CodeGen/Cesium.CodeGen.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (macos-latest)
/Users/runner/.dotnet/sdk/8.0.404/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [/Users/runner/work/Cesium/Cesium/Cesium.Ast/Cesium.Ast.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.404\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.404\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Extensions\TranslationUnitEx.cs(84,21): warning CS0162: Unreachable code detected [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Types\StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.404\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.C.Syntax [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
C:\Program Files\dotnet\sdk\8.0.404\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): warning NU5104: A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "Yoakke.SynKit.Lexer [2024.1.6-15.18.30-nightly, )" or update the version field in the nuspec. [D:\a\Cesium\Cesium\Cesium.Ast\Cesium.Ast.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Extensions\TranslationUnitEx.cs(84,21): warning CS0162: Unreachable code detected [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]
main (windows-latest)
D:\a\Cesium\Cesium\Cesium.CodeGen\Ir\Types\StructType.cs(15,28): warning CS0169: The field 'StructType.AnonType' is never used [D:\a\Cesium\Cesium\Cesium.CodeGen\Cesium.CodeGen.csproj]