Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Boot Tools extension may conflict with Java extension #3669

Closed
zjwmiao opened this issue Jun 5, 2024 · 5 comments
Closed

Spring Boot Tools extension may conflict with Java extension #3669

zjwmiao opened this issue Jun 5, 2024 · 5 comments

Comments

@zjwmiao
Copy link

zjwmiao commented Jun 5, 2024

Environment
  • Operating System: Windows 11
  • JDK version: 17
  • Visual Studio Code version: 1.89.1
  • Java extension version: 0.27.0
Steps To Reproduce
  1. Just open a Java project
Current Result

ext
Line 3 and 4, the imports should be green
Line 10, the color of args is incorrect as well

Expected Result
Additional Informations
@rgrunber
Copy link
Member

rgrunber commented Jun 6, 2024

I'm assuming you imported this as a Gradle project ? Can you check your problems view and see if there are any errors ?

I tried with a sample project and ran into eclipse-jdtls/eclipse.jdt.ls#1743 .

Status WARNING: org.eclipse.buildship.core code=4 Synchronize project initial failed due to an unsupported configuration in the referenced Gradle build. org.eclipse.buildship.core.internal.UnsupportedConfigurationException: A project with the name spring-boot already exists.

@zjwmiao
Copy link
Author

zjwmiao commented Jun 7, 2024

I'm assuming you imported this as a Gradle project ? Can you check your problems view and see if there are any errors ?

I tried with a sample project and ran into eclipse-jdtls/eclipse.jdt.ls#1743 .

Status WARNING: org.eclipse.buildship.core code=4 Synchronize project initial failed due to an unsupported configuration in the referenced Gradle build. org.eclipse.buildship.core.internal.UnsupportedConfigurationException: A project with the name spring-boot already exists.

Thanks for your reply, I opened the folder as a maven project, all the functionalities are OK, but the syntax highlighting is weird.

Just found out that the problem is caused by Spring Boot Tools extension, the syntax highlight become normal as soon as I disable the Spring Boot Tools extension.

@github-actions github-actions bot removed the need info label Jun 7, 2024
@rgrunber rgrunber changed the title The syntax highlighting seems incorrect Spring Boot Tools extension conflicts with Java extension Jun 7, 2024
@rgrunber rgrunber changed the title Spring Boot Tools extension conflicts with Java extension Spring Boot Tools extension may conflict with Java extension Jun 7, 2024
@rgrunber
Copy link
Member

rgrunber commented Jun 7, 2024

It might be worth filing the issue at https://github.com/spring-projects/sts4/issues if it happens when the VS Code Sprint Boot Tools extension happens to be present. The extension does contribute into the JDT-LS runtime : https://github.com/spring-projects/sts4/blob/d779a8466c4c261d699f49bcbb9dddbe217c0e89/vscode-extensions/vscode-spring-boot/package.json#L31-L38 .

@zjwmiao
Copy link
Author

zjwmiao commented Jun 7, 2024

It might be worth filing the issue at https://github.com/spring-projects/sts4/issues if it happens when the VS Code Sprint Boot Tools extension happens to be present. The extension does contribute into the JDT-LS runtime : https://github.com/spring-projects/sts4/blob/d779a8466c4c261d699f49bcbb9dddbe217c0e89/vscode-extensions/vscode-spring-boot/package.json#L31-L38 .

OK, I found a issue about the same problem in their repository. spring-projects/sts4#1249

@rgrunber
Copy link
Member

Looks like this should be fixed (according to the referenced issue), so I'll close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants