microsoft / microsoft/vscode-spring-boot-dashboard

Add Kotlin Support: "No main class found" for kotlin projects

Open
#63 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
73
Forks
38
Avg merge
3d 5h
Merged PRs (30d)
15

Description

I have two projects lets call them A and B. B is a library to be used inside of A but for testing I want to be able to start a main that is inside of A this all work in gradle on the command line. I accomplish this by setting the following in project B

springBoot {
mainClassName = 'com.project.A.serverapp'
}

Any way to get this working by using the dashboard.

It also working in debug by setting in launch.json

"mainClass": "com.project.A.serverapp",

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how the dashboard handles the springBoot mainClassName setting and the launch.json mainClass value shown in the issue. Compare those paths for Kotlin projects; done means the configured com.project.A.serverapp main class starts from the dashboard without a “No main class found” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, spring-boot, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.