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

Click on "The artifact is managed in..." link in pom.xml editor opens empty editor. #1922

Open
foal opened this issue Feb 6, 2025 · 3 comments

Comments

@foal
Copy link

foal commented Feb 6, 2025

Describe the bug
Click on "The artifact is managed in..." link in pom.xml editor opens empty editor.

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

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

To Reproduce

  1. Open pom.xml
  2. Point the mouse on any dependency managed in external pom
  3. The popup with version info appeared
  4. Click on the link "The managed version is 2.70.0. The artifact is managed in org.springframework.boot:spring-boot-dependencies:3.2.12
  5. Empty editor will be opening

File Q:/.lemminx-maven/org/springframework/boot/spring-boot-dependencies/3.2.12/spring-boot-dependencies-3.2.12.pom exists on the disk and is not empty, line 879 exists too.

Image

Sample

Image

Image

Another example

Image

@foal
Copy link
Author

foal commented Feb 6, 2025

This is a copy of the issue initially opened for sts4 - spring-projects/sts4#1456

@mickaelistria
Copy link
Contributor

Could you please provide a very minimal reproducer for this issue?

@foal
Copy link
Author

foal commented Feb 6, 2025

@mickaelistria

The steps are:

  1. Download Eclipse 2024-12: https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-12/R/eclipse-jee-2024-12-R-win32-x86_64.zip
  2. Unpack it to any folder (I used D:\Development\eclipse\eclipse)
  3. Run as is without any changes with workspace in new folder: I started the eclipse.exe and select C:\Users\horto\eclipse-workspace for workspace
  4. Import Maven project: I used https://github.com/foal/gwt-locale
  5. Open pom/pom.xml file un default editor (m2e editor)
  6. Hover the mouse pointer over (you can use any dependency, which version is managed by another POM file outside of the project sources).
    <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>test</scope>
     </dependency>
  1. The popup " The artifact is managed" will appear. It contains the link to another POM file that manage the version

Image

  1. Try to click on the link to open referenced file - empty editor. The hover on the tab shows the path to the file that exists on the disk.
    Image

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

2 participants