-
Notifications
You must be signed in to change notification settings - Fork 401
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
java.project.referencedLibraries should resolve paths leading with ~ #1739
Conversation
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.
Nice. So we had ResourceUtils#expandPath(..) all along but just working on the maven user/global settings. I think this is a nice improvement. Technically users can have file/folders like ${foo} (at least on Linux). Does this still allow such a file/folder to be used assuming the user hasn't defined ${foo} in system properties/env ?
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/ResourceUtils.java
Outdated
Show resolved
Hide resolved
see 199653e#diff-8699e13c637b9d38b7ec8c77ffc66ecd9443e94dde8d57347fdea1115560631fR266 |
Before, ResourceUtils#expandPath(..) was just replacing leading ~. |
Overall, looks good to me. @fbricon let me know your thoughts. Only thing I can think of that really isn't our issue, is if a user of some client becomes confused by the fact that the client itself doesn't support such a feature. Then again, we already supported '~' . We didn't really document this on the server side, so it's up to clients to decide whether they want to mention this ability. |
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/ResourceUtils.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java
Outdated
Show resolved
Hide resolved
test this please |
I would modify the commit to include the things in your main PR comment. From what I can see, the commit only has the title, but no reference to the issue, or the additional enhancements listed in #1739 (comment) . |
test this please |
Fixed. |
test this please |
1 similar comment
test this please |
@snjeza can you just wrap each line of the commit message body to <= 72 characters, and then I think we can merge. |
- replaces paths leading with ~ with the user.home system property - replaces ${} with their matching values from the environment variables and system properties - resolves java.project.referencedLibraries, java.import.gradle.home, java.import.gradle.java.home, java.import.gradle.user.home, java.configuration.maven.userSettings, java.configuration.maven.globalSettings, java.project.outputPath, java.project.sourcePaths, java.format.settings.url, java.settings.url, java.configuration.runtimes Signed-off-by: Snjezana Peco <[email protected]>
Done. |
Fixes #1735
Signed-off-by: Snjezana Peco [email protected]