microsoft / microsoft/vscode-spring-boot-dashboard

"Run with Profile..." containing unit test profile, and in duplicates

Open
#366 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

When I select "Run with Profile..." or "Debug with Profile...", it shows a list of available profiles.
In that list, I have profiles used for unit tests, and in multiple duplicates, which is irrelevant.
Image

Environments

  • OS: Windows 11 Enterprise with WSL2 Debian 12
  • VS Code version: 1.102.1
  • Extension version 1.63.0

To Reproduce

In the Spring projects explorer, right click on a project to launch and "Run with Profile..." or "Debug with Profile...".
In my case, on the picture :

  • "local" is probably interpolated because of the application-local.yml file in the main resources folder, but it is also defined in the spring-boot-maven-plugin configuration.
  • "unittest" is probably interpolated because of the application-unittest.yml file in the test resources folder, but it is also defined with @ActiveProfile for some unit tests.
  • "gitlabci"... I don't know... maybe interpolated because of the .gitlab-ci.yml file ?

Expected behavior

Not having unit test profiles.
Not having duplicates.

Sample

I can't prive a sample as it is a company project.

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

Inspect the Spring projects explorer's "Run with Profile..." and "Debug with Profile..." entry points, then trace how profiles are collected from application resources, spring-boot-maven-plugin configuration, and tests. Reproduce with a minimal Spring project if possible; done means unit-test profiles are excluded and duplicate profile names appear once in both commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
spring-boot, typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.