SLCORE-800 Clean up deprecated classes and methods #1108
Merged
Cirrus CI / test_linux
succeeded
Jan 21, 2025 in 12m 58s
Task Summary
Task successfully finished!
Details
✅ 00:01 clone
✅ 00:13 maven
✅ 12:32 main
✅ 00:01 cleanup_before_cache
✔️ 00:00 junit
✅ 00:00 Upload 'maven' cache
Annotations
cirrus-ci / test_linux
test-utils/src/main/java/org/sonarsource/sonarlint/core/test/utils/SonarLintBackendFixture.java#L681
mediumtest.issues.OpenIssueInIdeMediumTests.it_should_assist_creating_the_connection_when_server_url_unknown(SonarLintTestHarness)
Raw output
Wanted but not invoked:
fakeSonarLintRpcClient.showIssue(
"configScopeId",
<any>
);
-> at org.sonarsource.sonarlint.core.test.utils.SonarLintBackendFixture$FakeSonarLintRpcClient.showIssue(SonarLintBackendFixture.java:681)
However, there were exactly 10 interactions with this mock:
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.706] [main] INFO org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl - SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@7dcd8e74
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.815] [SonarLint Server RPC sequential executor] INFO sonarlint - Telemetry disabled on server startup
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.825] [SonarLint Server RPC sequential executor] INFO sonarlint - Started embedded server on port 64120
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.836] [SonarLint Server RPC sequential executor] DEBUG sonarlint - Starting local-only issue database from /tmp/slUserHome460267122864888791/xodus-local-only-issue-store18385043459485454733
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.864] [SonarLint Server RPC sequential executor] INFO sonarlint - Monitoring is disabled by feature flag.
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.877] [Show Issue or Hotspot Request Handler] DEBUG sonarlint - Assist connection and binding if needed for project projectKey and server http://localhost:45571/
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.876] [SonarLint Server RPC sequential executor] ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because the return value of "org.sonarsource.sonarlint.core.rpc.protocol.client.fs.ListFilesResponse.getFiles()" is null
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.forEach(java.util.function.Consumer)" because the return value of "org.sonarsource.sonarlint.core.rpc.protocol.client.fs.ListFilesResponse.getFiles()" is null
at org.sonarsource.sonarlint.core.fs.ClientFileSystemService.initializeFileSystem(ClientFileSystemService.java:118)
at org.sonarsource.sonarlint.core.commons.SmartCancelableLoadingCache.lambda$newValueAndScheduleComputation$2(SmartCancelableLoadingCache.java:99)
at org.sonarsource.sonarlint.core.commons.DebounceComputer.lambda$scheduleComputationAsync$0(DebounceComputer.java:83)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
... 3 common frames omitted
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
fakeSonarLintRpcClient.assistCreatingConnection(
org.sonarsource.sonarlint.core.rpc.protocol.client.connection.AssistCreatingConnectionParams@8e654f7,
org.sonarsource.sonarlint.core.rpc.client.SonarLintCancelChecker@18ea9bec
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$assistCreatingConnection$16(SonarLintRpcClientImpl.java:235)
fakeSonarLintRpcClient.didChangeAnalysisReadiness(
[configScopeId],
true
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$didChangeAnalysisReadiness$34(SonarLintRpcClientImpl.java:371)
fakeSonarLintRpcClient.log(
[2025-01-21T14:04:18.884] [Show Issue or Hotspot Request Handler] ERROR sonarlint - Unable to show issue
java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: The request (id: 2, method: 'assistCreatingConnection') has been cancelled
at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2118)
at org.sonarsource.sonarlint.core.embedded.server.RequestHandlerBindingAssistant.assistCreatingConnection(RequestHandlerBindingAssistant.java:222)
at org.sonarsource.sonarlint.core.embedded.server.RequestHandlerBindingAssistant.assistCreatingConnectionAndWaitForRepositoryUpdate(RequestHandlerBindingAssistant.java:141)
at org.sonarsource.sonarlint.core.embedded.server.RequestHandlerBindingAssistant.assistConnectionAndBindingIfNeeded(RequestHandlerBindingAssistant.java:107)
at org.sonarsource.sonarlint.core.embedded.server.RequestHandlerBindingAssistant.lambda$assistConnectionAndBindingIfNeededAsync$1(RequestHandlerBindingAssistant.java:92)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: The request (id: 2, method: 'assistCreatingConnection') has been cancelled
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:220)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:204)
at org.sonarsource.sonarlint.core.rpc.protocol.SingleThreadedMessageConsumer.lambda$new$0(SingleThreadedMessageConsumer.java:49)
... 5 more
);
-> at org.sonarsource.sonarlint.core.rpc.client.SonarLintRpcClientImpl.lambda$log$9(SonarLintRpcClientImpl.java:200)
at org.sonarsource.sonarlint.core.test.utils.SonarLintBackendFixture$FakeSonarLintRpcClient.showIssue(SonarLintBackendFixture.java:681)
at mediumtest.issues.OpenIssueInIdeMediumTests.it_should_assist_creating_the_connection_when_server_url_unknown(OpenIssueInIdeMediumTests.java:286)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Loading