-
Notifications
You must be signed in to change notification settings - Fork 46
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
how dose emacs-ycmd detect a java project ? #486
Comments
Currently it looks like we don't. This might be because ycmd didn't support
java when we set up the language mappings in `ycmd-file-type-map`, but I'm
not sure. It might "just work" if you add ` (java-mode . ("java"))` to
`ycmd-file-type-map`. Can you try that and let me know?
…On Sun, Oct 28, 2018 at 6:06 AM yangjiannan ***@***.***> wrote:
emacs-ycmd was installed. and then i open java file within a java
project(with gradle).
but it seems not detacted the java project, there's no auto complete.
emacs-ycmd dose not support java project ? or my emacs-ycmd installation
there's something wrong ?
the debug info shows below:
Ycmd debug information for buffer java/App.java in java-mode:
((python
(executable . "/usr/local/bin/python3")
(version . "3.7.0"))
(clang
(has_support . :json-false)
(version))
(extra_conf
(path)
(is_loaded . :json-false))
(completer))
Server is running at: 127.0.0.1:62143
Ycmd Mode is enabled
------------------------------
Ycmd version: 1.3snapshot (package: 20180724.1256)
Emacs version: 26.1
System: x86_64-apple-darwin17.5.0
Window system: ns
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#486>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE1eD3rNaM5SP41mHPFuMyxKvNK95SEks5upUlygaJpZM4X9zXC>
.
|
thanks a lot! |
i did add |
OK, that was just guessing on my part. Do you see anything in the |
yes,
|
I'm not sure what the problem is. Is your project on github? Maybe I can try it from my end. I don't do any java work, so I don't have project to test this out on. |
For me everything is fine:
It's detected, so all you need is to have |
after emacs-ycmd installed. and then i opening the java file within gradle java project.
but it seems not detect the java project, there's no auto complete. emacs-ycmd dose not support java project ? or my emacs-ycmd installation there's something wrong ?
emacs-ycmd config at init.el
the debug info shows below:
Ycmd debug information for buffer java/App.java in java-mode:
((python
(executable . "/usr/local/bin/python3")
(version . "3.7.0"))
(clang
(has_support . :json-false)
(version))
(extra_conf
(path)
(is_loaded . :json-false))
(completer))
Server is running at: 127.0.0.1:62143
Ycmd Mode is enabled
Ycmd version: 1.3snapshot (package: 20180724.1256)
Emacs version: 26.1
System: x86_64-apple-darwin17.5.0
Window system: ns
The text was updated successfully, but these errors were encountered: