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

.lemminx-maven directory is created in a strange place #514

Open
Madjosz opened this issue Sep 25, 2023 · 3 comments
Open

.lemminx-maven directory is created in a strange place #514

Madjosz opened this issue Sep 25, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Madjosz
Copy link

Madjosz commented Sep 25, 2023

Since I updated to Eclipse 2023-09 together with M2E - POM Editor using LemMinX language server 2.0.5.20230815-1219 a .lemminx-maven directory appeared in an unwanted place. I would assume that this directory would be created in %USERPROFILE% like other tools (.m2, .p2, .ssh and even .lemminx) or maybe %APPDATA% but for some reason it is created

  • as a sibling directory of my local maven repository OR
  • in the parent directory of my workspace OR
  • in the parent directory of my running Eclipse

(which are the same in my setting). Since this is a directory I want to keep clean I don't want any autogenerated directories there.

System information
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

Eclipse IDE for RCP and RAP Developers (includes Incubating components)
Version: 2023-09 (4.29.0)
Build id: 20230907-1323

openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode, sharing)

Windows 10 Pro 22H2
build 19045.3448

@angelozerr
Copy link
Contributor

At first see #497 for more explanation why we need .lemminx-maven.

Any contribution are welcome to generate this folder in an another location.

@vrubezhny vrubezhny added the bug Something isn't working label Sep 25, 2023
@Madjosz
Copy link
Author

Madjosz commented Sep 25, 2023

Ok but why when you cannot take ${userName}/.m2/.lemminx-maven (which seems like a strange choice since no directory in .m2 starts with a dot in my case) why not just take ${userName}/.lemminx-maven as a default? Instead you do

return new File(localRepositoryDir.getParentFile(), LEMMINX_MAVEN);

@angelozerr
Copy link
Contributor

Ok but why when you cannot take ${userName}/.m2/.lemminx-maven (which seems like a strange choice since no directory in .m2 starts with a dot in my case) why not just take ${userName}/.lemminx-maven as a default? Instead you do

I agree with you, it is better to use ${userName}/.lemminx-maven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants