Skip to content
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

POM editor "Format" command is not available #1373

Closed
JoMWal opened this issue May 11, 2023 · 6 comments
Closed

POM editor "Format" command is not available #1373

JoMWal opened this issue May 11, 2023 · 6 comments

Comments

@JoMWal
Copy link

JoMWal commented May 11, 2023

IDE: "Eclipse for RCP and RAP Developers" 2023-06
Newly installed by eclipse installer 2023-05-11) with clean workspace

Project: New (simple) Maven Project, type: pom

The pom.xml of the project is opened by default with the Maven POM editor.

But it is not possible to format the pom.xml.

  • neither using keys CTRL-SHIFT-F
  • nor using context menu
  • or using the eclipse menu bar:

m2eScreenshot1

Opening the same pom.xml file in default XML editor it is possible to format file:

m2eScreenshot2o

I do not know if it's related but in the second screenshot there are two "source" entries in the eclipse menu bar.

--

Additional infos - Installed feature versions:

  • Wild Web Developer project XML support using Language Server
    -- 1.0.4.202304211433 org.eclipse.wildwebdeveloper.xml
  • Language Server Protocol client for Eclipse IDE (Incubation)
    -- 0.16.0.202303141217 org.eclipse.lsp4e
  • M2E Maven POM File Editor
    -- 2.0.300.20230130-0743 org.eclipse.m2e.editor
  • M2E Maven POM File Editor using Wild Web Developer, LemMinX and Maven LS extension (requires Incubating components)
    -- 2.0.2.20230202-1631 org.eclipse.m2e.editor.lemminx
@laeubi
Copy link
Member

laeubi commented Aug 16, 2023

@mickaelistria can you take a look here?

@mickaelistria
Copy link
Contributor

I cannot reproduce it with latest snapshots:

  • Language Server Protocol client for Eclipse IDE (Incubation) 0.17.0.202308160724 org.eclipse.lsp4e Eclipse.org
  • Wild Web Developer XML tools 1.3.0.202308101707 org.eclipse.wildwebdeveloper.xml.feature.feature.group Eclipse Wild Web Developer project
  • M2E - POM Editor using LemMinX language server (includes Incubating components) 2.0.5.20230815-1219 org.eclipse.m2e.lemminx.feature.feature.group Eclipse.org - m2e

@JoMWal please try those snapshots from the various sources (it can be a bit of a maze to get them all at once, so feel free to ask if you feel stuck).

@JoMWal
Copy link
Author

JoMWal commented Aug 17, 2023

Hi,
@mickaelistria I tried it with the suggested versions from the snapshot repositories and you are right, it works without issues.

*** Plug-in Registry:
org.eclipse.lsp4e (0.17.0.202308160724) "Language Server Protocol client for Eclipse IDE (Incubation)" [Active]
..
org.eclipse.m2e.editor (2.0.301.20230809-1423) "M2E Maven POM File Editor" [Active]
org.eclipse.m2e.editor.lemminx (2.0.4.20230815-1219) "M2E Maven POM File Editor using Wild Web Developer, LemMinX and Maven LS extension (requires Incubating components)" [Resolved]
..
org.eclipse.wildwebdeveloper.xml (1.3.0.202308101707) "XML support using Language Server" [Active]

So I guess this issue can be closed.

Thank you!

@mickaelistria
Copy link
Contributor

Thank you for testing!

@gerib
Copy link

gerib commented Dec 27, 2024

Exactly this happens here again with:

Linux 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux


Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-28-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 15,6 GiB of RAM
Graphics Processor: NV124
Manufacturer: XMG
Product Name: P7xxDM(-G)
System Version: Not Applicable


Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)

Version: 2024-12 (4.34.0)
Build id: 20241128-0757


Plug-in:
03/10/2024, 18:53 Eclipse.org - m2e M2E Maven POM File Editor using Wild Web Developer, LemMinX and Maven LS extension (requires Incubating components) 2.0.700.20240928-0605 org.eclipse.m2e.editor.lemminx

@gerib
Copy link

gerib commented Dec 27, 2024

Same issue: pom editor: format source not working #493.

And another including it Pom.xml editor doesn't have all the features it previously did #458:

  • Format source doesn't work

And a new one opened by me: POM Editor formatting doesn't work #1907.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants