Skip to content

fix: fix missing service register for IScriptCompletionService #169

fix: fix missing service register for IScriptCompletionService

fix: fix missing service register for IScriptCompletionService #169

Triggered via push June 29, 2024 12:17
Status Failure
Total duration 5m 48s
Artifacts

dotnet.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 12 warnings
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
UnitTest.ScriptCompletionServiceTest.ExpectedTest (1s 113ms): Error Message: Assert.NotNull() Failure: Value is null
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
at UnitTest.ScriptCompletionServiceTest.ExpectedTest() in /Users/runner/work/dotnet-exec/dotnet-exec/tests/UnitTest/ScriptCompletionServiceTest.cs:line 79
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
--- End of stack trace from previous location ---
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
UnitTest.ScriptCompletionServiceTest.CompletionTest(code: "Guid.", expectedCompletion: "NewGuid") (40ms): Error Message: Assert.NotEmpty() Failure: Collection was empty
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
at UnitTest.ScriptCompletionServiceTest.CompletionTest(String code, String expectedCompletion) in /Users/runner/work/dotnet-exec/dotnet-exec/tests/UnitTest/ScriptCompletionServiceTest.cs:line 30
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
--- End of stack trace from previous location ---
Running tests on macOS-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
UnitTest.ScriptCompletionServiceTest.ExpectedTest (649ms): Error Message: Assert.NotNull() Failure: Value is null
Running tests on ubuntu-latest
The job was canceled because "macOS-latest" failed.
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
UnitTest.ScriptCompletionServiceTest.ExpectedTest (3s 83ms): Error Message: Assert.NotNull() Failure: Value is null
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
at UnitTest.ScriptCompletionServiceTest.ExpectedTest() in /home/runner/work/dotnet-exec/dotnet-exec/tests/UnitTest/ScriptCompletionServiceTest.cs:line 79
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
--- End of stack trace from previous location ---
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
UnitTest.ScriptCompletionServiceTest.CompletionTest(code: "Guid.", expectedCompletion: "NewGuid") (21ms): Error Message: Assert.NotEmpty() Failure: Collection was empty
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
at UnitTest.ScriptCompletionServiceTest.CompletionTest(String code, String expectedCompletion) in /home/runner/work/dotnet-exec/dotnet-exec/tests/UnitTest/ScriptCompletionServiceTest.cs:line 30
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
--- End of stack trace from previous location ---
Running tests on ubuntu-latest: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
UnitTest.ScriptCompletionServiceTest.ExpectedTest (1s 636ms): Error Message: Assert.NotNull() Failure: Value is null
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
UnitTest.ScriptCompletionServiceTest.ExpectedTest (8s 492ms): Error Message: Assert.NotNull() Failure: Value is null
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
at UnitTest.ScriptCompletionServiceTest.ExpectedTest() in D:\a\dotnet-exec\dotnet-exec\tests\UnitTest\ScriptCompletionServiceTest.cs:line 79
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
--- End of stack trace from previous location ---
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
UnitTest.ScriptCompletionServiceTest.ExpectedTest (12s 868ms): Error Message: Assert.NotNull() Failure: Value is null
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
at UnitTest.ScriptCompletionServiceTest.ExpectedTest() in D:\a\dotnet-exec\dotnet-exec\tests\UnitTest\ScriptCompletionServiceTest.cs:line 79
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L79
--- End of stack trace from previous location ---
windows-build: tests/UnitTest/ScriptCompletionServiceTest.cs#L30
UnitTest.ScriptCompletionServiceTest.CompletionTest(code: "Guid.", expectedCompletion: "NewGuid") (12ms): Error Message: Assert.NotEmpty() Failure: Collection was empty
Running tests on macOS-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
windows-build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
windows-build: src/ReferenceResolver/NuGetHelper.cs#L25
Refactor your code not to use hardcoded absolute paths or URIs. (https://rules.sonarsource.com/csharp/RSPEC-1075)
windows-build: src/ReferenceResolver/AnalyzerReferenceLoader.cs#L19
Replace this call to 'Assembly.LoadFrom' with 'Assembly.Load'. (https://rules.sonarsource.com/csharp/RSPEC-3885)
windows-build: src/ReferenceResolver/NuGetReference.cs#L33
Correct one of the identical expressions on both sides of operator '|'. (https://rules.sonarsource.com/csharp/RSPEC-1764)
windows-build: src/ReferenceResolver/ProjectReferenceResolver.cs#L23
Extract this nested ternary operation into an independent statement. (https://rules.sonarsource.com/csharp/RSPEC-3358)
windows-build: src/ReferenceResolver/NuGetHelper.cs#L142
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
windows-build: src/ReferenceResolver/NuGetHelper.cs#L167
Loop should be simplified by calling Select(item => item.Identity)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
windows-build: src/ReferenceResolver/NuGetHelper.cs#L294
Refactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
windows-build: src/ReferenceResolver/NuGetHelper.cs#L451
Extract this nested ternary operation into an independent statement. (https://rules.sonarsource.com/csharp/RSPEC-3358)
windows-build: src/ReferenceResolver/NuGetHelper.cs#L484
Collection-specific "Exists" method should be used instead of the "Any" extension. (https://rules.sonarsource.com/csharp/RSPEC-6605)
windows-build: src/dotnet-exec/Program.cs#L29
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)