-
Notifications
You must be signed in to change notification settings - Fork 92
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
Unable to get autocompletion for dependencies in pom.xml #311
Comments
The autocompletion retrieves info from a) local repository, b) maven central repository. For a), the path is hard-coded for the moment, as mentioned in #195 (comment) , which I suppose is broken in your case. For b), it calls Maven search API to get info of artifacts. I think this one should at least work for you, can you give it a try to manually trigger completion? Note that the API accepts word-based keywords as input parameter, so see following examples Case 1<dependency>
<groupId>com.github|</groupId>
..... It queries with "com" and "github", and get reasonable results. Case 2<dependency>
<groupId>com.githu|</groupId>
..... It queries with "com" and "githu", and it should get NO reasonable results. |
Indeed, a) won't work in my case, thanks for pointing that out. For b), I'm still unable to get autocompletion working with Case 1. I'm only getting an "Emmet abbreviation" suggestion, and with Maybe irrelevant, but when starting VS Code with Let me know if there's anything else I can do to debug this further. |
Maybe its me but I have a similar issue. I just started using vs code for java development this week, coming from intellij. I am on centos 7, vs code 1.33.1, extension 0.16.1 In my case i have a few simple projects set up, two of them are maven based. When I make changes to the individual pom files, the maven logs show it builds successfully. It can even run the life-cycle commands properly but I have 0 intellisense for any pom elements (outside of keys already present in the file which are provided by default). |
Confirmed it's a regression introduced since 0.16.0. |
vscode-maven-0.16.1-fix-completion.vsix.zip @steven87vt @anthonyvdotbe Above is a private build, please give it a try, see if the auto-completion gets back to work. |
@Eskibear I can't get auto-completion to work with the private build (just for the record: after installing the language pack, I uninstalled the Maven extension that came with it, and installed the private build instead) |
@anthonyvdotbe As I didn't change the version in the private build (i.e. 0.16.1), VS Code might directly load the extension from its cache. Can you try the following steps and share the result again?
|
@Eskibear yes, it was a caching issue indeed. Autocompletion works perfect now, thanks! |
Shipped in 0.16.2 |
Describe the bug
I'm unable to get autocompletion for dependencies in pom.xml, as provided by #195
To Reproduce
Steps to reproduce the behavior:
<dependencies>
section, add<dependency><groupId></groupId><artifactId></artifactId><version></version></dependency>
Expected: autocompletion is available when typing in groupId, then in artifactId, then in version
Actual: I'm unable to get any kind of autocompletion working
Environments
Additional context
I thought maybe it was due to my Maven's settings.xml (as it uses
localRepository
andmirrors
, a.o.), but even when trying with an empty settings.xml, the issue still reproduces.The text was updated successfully, but these errors were encountered: