Closed alchemylove closed 7 months ago
addtiionnal info:
i created some build.gradle by spring initializr. all com.example.demo couldn't work.
lombok: compileOnly 'org.projectlombok:lombok:1.18.30' annotationProcessor 'org.projectlombok:lombok:1.18.30'
I can't reproduce the issue using JDK 21, gradle 8.6, spring demo @alchemylove Could you attach a project example or your build.gradle?
■build.gradle
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.4'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
■setting.gradle
rootProject.name = 'demo'
■vscode extensions
>code --list-extensions
ms-ceintl.vscode-language-pack-ja
redhat.java
visualstudioexptteam.intellicode-api-usage-examples
visualstudioexptteam.vscodeintellicode
vmware.vscode-boot-dev-pack
vmware.vscode-spring-boot
vscjava.vscode-gradle
vscjava.vscode-java-debug
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
vscjava.vscode-maven
vscjava.vscode-spring-boot-dashboard
vscjava.vscode-spring-initializr
I'm experiencing the same issue with both vscode and cursor. My teammates are facing the same issue as well. We have set the JAVA_HOME and other configurations. It's completely unclear what the problem is. Could someone please advise?
I still can't reproduce the issue. @alchemylove Could you try the following:
"java.gradle.buildServer.enabled": "off",
@snjeza Amazing! So it worked. thanks so much.
[provide a description of the issue]
Environment
Steps To Reproduce