-
Notifications
You must be signed in to change notification settings - Fork 74
Ensure the XMLLanguageServer process inherits user.name and user.home #1644
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
Ensure the XMLLanguageServer process inherits user.name and user.home #1644
Conversation
|
For testing, I frequently provision installations to specify a explicit This is also very useful environments where developers wish to provision multiple installations with completely independent content, including separate global preferences and even separate global maven caches. In an IDE with the above system property, the m2e preferences default to values based on that But I noticed in the editor, that the hover links for nagivating to a parent pom were "leaking" information that could only come from my real |
|
Can you please also bump the version of the feature as suggested by CI build? |
- Increment the bundle and feature versions.
|
Yes, I noticed the first failure was the bundle needed incrementing and the next one was the feature needed incrementing. Fortunately I have some experience reading the tea leaves to recognized the errors. |
| if (logLevelString != null) { | ||
| commands.add("-Dlog.level=" + logLevelString); // defined in org.eclipse.lemminx.logs.LogHelper | ||
| } | ||
| commands.add("-Duser.name=" + System.getProperty("user.name")); |
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.
Wouldn't it be better if the process would simply inherit all system properties?
|
I doubt that’s a good idea. It has the potential to have unintended consequences. I don’t think we just want to just transfer all the properties documented here https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/System.html#getProperties() let alone all properties with unknown meaning. |
|
Changing
but maybe its fine to just export those if required (like here) as a first step. |
|
Thanks @mickaelistria note the I interpret the documentation’s API note to mean changing the value via the setProperty API and because of course any of the values might be used before one can change it via System.setProperty but via the command line a property will start with the value of the command line anyway it does work well and is really important when testing anything that relies on and pollutes the user home folder |

No description provided.