microsoft / microsoft/vscode-java-pack
Import order in referenced Libraries for unmanaged projects
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 352
- Forks
- 166
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 32
Description
Suggestion
When importing libraries in settings.json in "java.project.referencedLibraries" on a unmanaged project the order in which we import is not taken into account if there are conflicts between libraries.
Use Cases
I have a project that comes from Eclipse where the order of the entry on the .classpath is important, it will always take the first of the list in case of multiple occurence. I removed the classpath to be able to add libraries manually so it's now a unmanaged project and not an eclipse project anymore.
Examples
In my project i have many jars and some 3rd party libraries that have jars inside of them aswell, and there is some overlap between the ones i use and the ones these 3rd party libraries use, and these are not always the same version as the one i use.
So i have many errors in my project due to the fact that it takes the wrong version of the library and some function changed or does not exist anymore.
Thanks for reading me !
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the unmanaged-project setting in settings.json under java.project.referencedLibraries and compare its behavior with the ordering described for the Eclipse .classpath. Trace how referenced libraries are processed, then verify that the configured order determines which conflicting library version is used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100