Member-only story

If you hate Eclipse, be cautious about the VS Code Coding Pack for Java

VS Code for Java development is better than past but still not good enough

Saeed Zarinfam
3 min readJan 11, 2023
VS Code Coding Pack for Java has an Eclipse inside!

VS Code is faster than IntelliJ, and because of this important reason (at least for me), I usually try to run my real Java project on VS Code, and every time I find the result better than past. This time I tried to run Cloud Native Spring in Action, With Spring Boot and Kubernetes sample project on VS code.

My VS Code setup
What was the problem?
Problem root
What is the quick solution?
What is the permanent solution?
·
Conclusion

My VS Code setup

The most important thing in VS Code is its extensions. I installed the following extensions for my development:

What was the problem?

When I tried to run BookRepositoryJdbcTests in the catalog-service microservice (chapter 7) using Test Runner for Java extension in VS Code, I got the following error:

java.lang.IllegalStateException: For queries with named parameters you need to provide names for method parameters. Use @Param for query method parameters, or when on Java…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Saeed Zarinfam
Saeed Zarinfam

Written by Saeed Zarinfam

✍️ I write about Software Development, including Java, Go, Spring, Containers, K8s, AI, Observability, and more ⋈

Responses (1)

Write a response

I had the same issue on Intellij IDEA with the repository yesterday, and spring data couldn't find named arguments used in SpEL and queries written by myself. Using @Param was the only solution that I should use without hacking into the…