artur-shaik / vim-javacomplete2

DEPRECATED in favor of jc.nvim
Vim License
973 stars 83 forks source link

How to add generated sources to the source path #342

Closed marcelo140 closed 6 years ago

marcelo140 commented 7 years ago

Hi, I'm building a java project with gradle where I use protocol buffers. The thing with protocol buffers is that some code must be generated from .proto files into .java files that are then saved in a different directory than other sources: build/generated/source/proto/main/java.

I tried to add this directory to the JavaComplete_SourcesPath without success. Can someone point me to the right direction so that the generated files are also recognized as sources?

artur-shaik commented 7 years ago

Can you, please, create minimal project that we can reproduce this issue and fix it?

marcelo140 commented 7 years ago

Here it is: https://github.com/marcelo140/jc-gradle-demo

artur-shaik commented 7 years ago

You can try to set your build/generated path in your vimrc, than run JCclasspathGenerate and your generated sources should be included.