microsoft / microsoft/vscode-java-dependency
Java FX projekt add dependency failed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 199
- Forks
- 105
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 27
Description
Since yesterday's "Project Manager for Java" release, additional dependencies added to JavaFX do not work.
I am making a Java FX project. This is based on Maven. It works.
When I add an extra dependency like Gson.
com.google.code.gson gson 2.11.0I write in the code:
Gson gson = new Gson();
I import as usual.
The dependency cannot be used. VSCode says Gson cannot be resolved. It is there in the pom.xml file, and the import is also there in the code.
I saw that other people had previously written that, due to modularization, the following must be entered in the module-info.java file:
requires com.google.gson;
But even this instruction gives me trouble, you can't even find the module here.
I used it 3 days ago and there were no problems with it.
Contributor guide
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
Reproduce the failure in a JavaFX Maven project using the dependency shown in pom.xml, then compare behavior with and without the requires com.google.gson entry in module-info.java. Check the Project Manager for Java integration around dependency resolution; done means Gson can be imported and used without unresolved-dependency errors in VS Code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100