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

change of property value in ancestor module is not reflected in descendant module unless a new XML Language server is started #546

Open
eliasbalasis opened this issue Jan 21, 2024 · 2 comments

Comments

@eliasbalasis
Copy link

In Eclipse 2023-12

when the of a Maven property that is inherited from an ancestor module changes,
hovering over a reference to the changed property in a descendant module,
displays the old value.

If a new XML Language Server is started, the new value is displayed.

@mickaelistria
Copy link
Contributor

I think it may depend on the project layout, what is imported as a project in the IDE and what's not imported. In general, Lemminx-Maven doesn't monitor the whole pom hierarchy to trigger re-resolution of pom (and I think it should).
Can you please provide a minimal test case to reproduce with Eclipse m2e? We could then try to convert it into a test-case for lemminx.

@eliasbalasis
Copy link
Author

I have a structure for testing Maven editor behaviors (see #345)

https://github.com/eliasbalasis/eclipse-lemminx-maven-issue-345-root
https://github.com/eliasbalasis/eclipse-lemminx-maven-issue-345-tools

Import these into an Eclipse workspace in the order mentioned and experiment with the value of property net.upperlimit.root.property1 on the first project in relation to property net.upperlimit.root.property1.ref on the second project.

Changing the value on the first project does not display the new value on the second project,
until a new XML Language server is started.

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