microsoft / vscode-spring-boot-dashboard

Spring Boot Dashboard for VS Code
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-spring-boot-dashboard
Other
56 stars 32 forks source link

The dashboard shows old application project name #139

Open gabipetrovay opened 3 years ago

gabipetrovay commented 3 years ago

I have renamed one Spring Boot app project. But the dashboard still displays the old project name.

I searched the entire VSCode workspace (grep -ri <old_name>) for the old name and this is not found.

Where/why is the Spring Boot Dashboard caching the project/app name?

The "Refresh" action in the Dashboard also has no effect (looks as if it would not work at all) (the other action "Start ..." is working).

If I start the app, a new launch configuration is added to the launch.json which contains the old projectName.

Also restarted the VSCode multiple times.

gabipetrovay commented 3 years ago

A workaround is to move the folder containing the app out of the workspace, open VScode and make sure it does not see the old app, then bring the app folder back in place and start VSCode again.

Eskibear commented 3 years ago

java extension is responsible for importing and compiling project. For each workspace, there is a corresponding workspace storage folder(different from your workspace folder). I guess the out-of-date data was stored there. This extension simply retrieve project information from java extension.

AFAIK, you can try below to re-import the project: Right click on your pom.xml file, and select "update project".

Let me know if it works.

Eskibear commented 3 years ago

@jdneo for awareness, as it's related to importing projects.