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
I came across this exception showing up in the log output of the language server:
2023-11-08T15:26:08.628+01:00 ERROR 87055 --- [ct-Reconciler-1] o.s.i.v.b.v.BootVersionValidationEngine : Failed validating Spring Project version
java.lang.Exception: Unable to find build file in project while computing version validation for: spring-petclinic
at org.springframework.ide.vscode.boot.validation.generations.ProjectVersionDiagnosticProvider.getDiagnostics(ProjectVersionDiagnosticProvider.java:43) ~[classes/:na]
at org.springframework.ide.vscode.boot.validation.BootVersionValidationEngine.reconcile(BootVersionValidationEngine.java:50) ~[classes/:na]
at org.springframework.ide.vscode.boot.common.ProjectReconcileScheduler.lambda$3(ProjectReconcileScheduler.java:85) ~[classes/:na]
at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[na:na]
at org.springframework.ide.vscode.boot.common.ProjectReconcileScheduler.lambda$2(ProjectReconcileScheduler.java:83) ~[classes/:na]
at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:171) ~[reactor-core-3.5.11.jar:3.5.11]
at reactor.core.publisher.FluxOnAssembly$OnAssemblySubscriber.onNext(FluxOnAssembly.java:539) ~[reactor-core-3.5.11.jar:3.5.11]
at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181) ~[reactor-core-3.5.11.jar:3.5.11]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.5.11.jar:3.5.11]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.5.11.jar:3.5.11]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
It showed up while starting things up in VSCode and the same exception was thrown for all three projects that I had in the workspace. No idea how to reproduce this though, but I hope the exception itself can give us a hit what to do about this.
The text was updated successfully, but these errors were encountered:
Ok, I think I found a way to reproduce this issue, using the latest VSCode + the Spring Tools switched to pre-release.
start with a clean empty window in VSCode
On the welcome screen, click on More... at the bottom of the walkthrough section
select the getting started with spring item from the quick pick list appearing on the command palette
click the "open sample project" button from the first step of the walkthrough
select a new empty folder for the project
select to open the project in the current empty workspace
there are various popups appearing, most of them can be canceled - but there is one asking for which build tool to use: select "Gradle"
wait for the project to be build, open a java source, look in the outline view for spring symbols to appear
spring-specific problems appear in the problems view (two, I think)
open the log output of the spring language server (this needs to be configured in the preferences upfront, so that the spring boot language server puts everything into a file)
The above mentioned exception will appear in the log.
I have the Gradle extension from Microsoft installed as well and selected the Gradle Build Server approach to be used in the preferences, in case this makes a difference (Preferences -> Extensions -> Gradle -> Build Server:enabled)
@martinlippert thanks very much for the steps. Seems like the key part of this the Gradle extension from MS as it doesn't seem to create the container classpath entry to keep dependencies which Buildship or M2E creates. I've added a somewaht naive logic to determine Maven vs Gradle project for the case of the missing container CPE: 9478964. Seems to work.
I came across this exception showing up in the log output of the language server:
It showed up while starting things up in VSCode and the same exception was thrown for all three projects that I had in the workspace. No idea how to reproduce this though, but I hope the exception itself can give us a hit what to do about this.
The text was updated successfully, but these errors were encountered: