-
Notifications
You must be signed in to change notification settings - Fork 30
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
#320 Show active profiles on BootApp description when attached to liv… #321
#320 Show active profiles on BootApp description when attached to liv… #321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@testforstephen You are right about that. I presumably overdid on that 😁. New changes should take the profiles from the launch/prompt dialog and resets after the One profile: Multiple profiles: Default profile: |
- Take the launched profiles from the prompt at launch instead of system properties. - App description change and skip default profile being displayed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new experience looks better, just some minor comments on the label format.
@testforstephen, the test cases tend to fail everytime. Anything else to be done as part of this PR? |
Looks like the test case is not stable, we need to find some time to improve the test case implementation. |
Yes, seems so. In that case, I guess rest of the changes are good to go now? @testforstephen |
@testforstephen this PR is pending for a while. Good to merge please? |
LGTM. I'd merge this one. I'd also create an issue on the Boot LS side to implement the command to fetch all available profiles from a Spring Boot project... A single YAML properties file may define multiple profiles, surprisingly same goes for the |
@karthik20 on the second thought I think it'd be best to get active profile directly from the running app if live data is available. export async function getActiveProfiles(processKey: string) {
const result = await stsApi?.getLiveProcessData({
processKey: processKey,
endpoint: "profiles"
}) as string[];
return result;
} This should be available via the Spring Boot Tools extension snapshot with this commit: f52967d9f81e6b18369aa6cbac229c5a58bb94b8 Then once |
Makes sense, and yes. I saw your commit on sts4; I tested the changes with live process with the Spring Boot tools (v1.54.2024040604 (pre-release)) and functionality works as expected. Help to review the latest changes and let me know. This PR is almost a year old ;) |
LGTM. Good to merge from my standpoint. |
Tests still fail I guess. @testforstephen and @BoykoAlex, can be merged then? |
I attempted to locally test this PR using the spring-petclinic sample project. However, despite the application having started successfully, the app icon is still spinning in the dashboard view. It might be an environment issue in my machine, I need find some time to test it again. |
@BoykoAlex when I start spring-petclinic in VS Code, I got the error "Failed to refresh live data from process service:jmx:rmi:///jndi/rmi://127.0.0.1:55504/jmxrmi after retries: 10" from Spring Boot Tools extension a few times. Do you have any idea on what happens? |
@testforstephen looks like it is me to blame... We are re-working the UI and the backend logic for connecting to live process in order to prepare the Boot LS to be compiled into native image. One of the blockers for native compilation was the usage of Virtual VM API which helped us to list local JVM process and to setup JMX connection etc. If this API is not available then the Boot App process needs to be setup for the JMX connection by us via launch config. Hence you see the JMX URL in the "trying to connect" progress status bar. The consequence of this change is I'd wait for the April 9 build at the bottom of this page, download and install the VSIX. The pre-release went out tonight without the change you're looking for :-\ |
Glad you mentioned in detail. For my testing as well couple times I had to toggle the process type from remote to local. I assumed that since I was using WSL2 and VSCode remote for my testing, the process type was remote. Your explanation helps. |
@BoykoAlex Thanks. I used the VSIX and I can see that the process type is now local as opposed to remote last time. I don't see that spinning wheel anymore either (WSL2 tested). @testforstephen please verify from yourside. P.S: Please note that I updated the spring-petclinic project git sub-module to the latest that brings Spring boot 3.2.x. |
…t has spring-boot-parent 3.2.x
it works fine in the latest Spring Boot Tools v1.54.2024041104 (pre-release). |
Addresses improvement of #320 .
The changes include updating the BootApp description along with the
systemProperty
=>spring.profiles.active
.Inline with the previous logic to display the other description items like
contextPath
andport
, the property values need to be exposed for the IDE to display the comma separated profiles instead of astericks (****)Quick video of how it works:
show_profiles-onstartup-comma.mp4