-
Notifications
You must be signed in to change notification settings - Fork 211
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
No format for pom.xml in the Maven POM editor #1457
Comments
@foal Thanks for reporting, let's see if we can get to the bottom of this. So far I failed to reproduce this, installing a fresh Spring Tools 4 for Eclipse 4.27.0, starting it with an empty new workspace, creating a Rest Service guide project, opening the So we need to figure out what is different on your end that causes the |
I confirm the problem. I have did the following:
Here is my full configuration https://pastebin.com/QqMBfjBs |
For 4.28 on Windows - the same issue.
|
Do you have XML language server enabled? |
If it is enabled by default - yes. As I said I do not change nothing, just unpack, run import project and try to format pom.xml |
@anatoly-spb @foal Can you try to reproduce this with a plain Eclipse JEE 2024-12 installation from https://www.eclipse.org/downloads/packages/ (Since I can't reproduce this locally, I am trying to identify where the problem might be coming from, therefore the various checks to see where the root cause might be) |
@martinlippert Thank you for your time. I have downloaded https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-12/R/eclipse-java-2024-12-R-win32-x86_64.zip&mirror_id=1285 and there is no problem with formatting pom, it works as expected:
|
@martinlippert, yes, I can confirm in eclipse-jee-2024-12-R-win32-x86_64.zip the XML formatting on pom.xml works too from the box. |
I try to compare Spring Tool Suite 4.28.0.RELEASE with eclipse-jee-2024-12-R-win32-x86_64.zip. There are several remarks:
STS outputs only the following without messages from org.eclipse.wildwebdeveloper.xml:
May be it will be helpfull. |
Describe the bug
There is no option to format pom.xml in the Maven POM editor.
There is no Source menu with Format option, Ctrl+Shift+F does nothing.
Context menu contains Source -> Format Ctrl+Shift+F , but selection of this command also does nothing.
Spring Tool Suite 4
Version: 4.27.0.RELEASE
Build Id: 202411281622
Revision: a0cb489
A clear and concise description of what the bug is.
To Reproduce
In the XML editor the same file is formatted without any issues.
The text was updated successfully, but these errors were encountered: