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

Completion fails when there are projects inside that use gradle #803

Open
plitter opened this issue Sep 23, 2018 · 3 comments
Open

Completion fails when there are projects inside that use gradle #803

plitter opened this issue Sep 23, 2018 · 3 comments

Comments

@plitter
Copy link

plitter commented Sep 23, 2018

At my work we have a large project which has a maven project root, maven middle project root and maven project. At the project level there are some javascript node modules that use gradle.
I'm using YCM with the latest jdt.ls version as of writing 0.25. ycm-core/ycmd@aa1c7b7 is the commit I'm at (thanks to Boris and micbou at YCM for help with this).

https://ptpb.pw/-B6R
https://ptpb.pw/jMe1
https://ptpb.pw/Ntt3

The above are the errorlogs from ycm with debug on.

After I removed the projects that where using gradle, the completion works.

@plitter plitter changed the title Completion fails Completion fails when there are projects inside that use gradle Sep 23, 2018
@fbricon
Copy link
Contributor

fbricon commented Oct 3, 2018

I don't know what kind of settings ycmd allows (ask their team), but by default, jdt.ls has

"java.import.exclusions": [
		"**/node_modules/**",
		"**/.metadata/**",
		"**/archetype-resources/**",
		"**/META-INF/maven/**",
	],"

That prevents node modules with gradle build files in it to be imported as Maven projects. That works well for vscode.
Does ycmd override those settings?

@bstaletic
Copy link
Contributor

For the record, ycmd doesn't override any jdt settings and allows users to set anything in the project specific .ycm_extra_conf.py.

@puremourning
Copy link
Contributor

but by default, jdt.ls has

Is that a default in the server-side, or the VSCode client ?

ycmd does not override any settings for jdt.ls by default and I would be very surprised if any user was setting any of them using the mechanism we support to set them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants