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

Eclim server isn't working properly #3012

Closed
LuoPX-15510486969 opened this issue Sep 13, 2015 · 16 comments
Closed

Eclim server isn't working properly #3012

LuoPX-15510486969 opened this issue Sep 13, 2015 · 16 comments

Comments

@LuoPX-15510486969
Copy link

filrst,when i and java layer and have set the eclim variables i have to open a java file to use the keybinding, it seems not so good . And in holy mode M-m does not work while SPC can work.
second , it seems that eclimed server does not work with java mode ,for example when i use auto-complete it does not complete the library function it can only complete in comtext.

@geo7
Copy link
Contributor

geo7 commented Sep 14, 2015

@LuoPX-15510486969 sorry I can't help - other than to say that titling the issue something along the lines of "Eclim server isn't working properly" might help others find this and maybe others help solve. I initially thought you were just commenting that it was working well ;)

@LuoPX-15510486969
Copy link
Author

i put all config in the docspacemacs/config function which comes from the auther document and i do not know whether it is related with spacemacs.

@LuoPX-15510486969 LuoPX-15510486969 changed the title eclim does work well Eclim server isn't working properly Sep 14, 2015
@Kethku
Copy link
Contributor

Kethku commented Sep 14, 2015

I use eclim every day and although pretty slow it works fine. Do you have eclim installed properly in eclipse?

@LuoPX-15510486969
Copy link
Author

thanks for your comment that let me know the default java layer can work. it is possilbe my incorrect setting to result in eclim working badly. I will check it out.

@LuoPX-15510486969
Copy link
Author

thanks for these guys , i have find the reason: after i set auto-completion-enable-snippets-in-popup to t , it works well.

@geo7
Copy link
Contributor

geo7 commented Sep 16, 2015

@LuoPX-15510486969 👍 maybe close this if alls good ;)

@LuoPX-15510486969
Copy link
Author

but there is still another question here: when i edit xml files in the same project ,the auto-complete does not work.any body who know how to fix it ?

@TheBB
Copy link
Contributor

TheBB commented Sep 16, 2015

Well, this issue was about eclim, not XML. But anyway... what kind of completions are you expecting in XML? XML is a meta-language where basically anything goes. There are no keywords, variables or functions to complete. What is it you're typing and what is it you're expecting to see?

For example, I get HTML autocompletion in XML mode:

XML

Do you have the html layer enabled?

@LuoPX-15510486969
Copy link
Author

this is the screenshot in eclipse, what i expect is just auto-complete something like keywords and some constants. i have add html layer ,but it seems none of android xml files.
image

@TheBB
Copy link
Contributor

TheBB commented Sep 16, 2015

Okay, you want some kind of special auto-completion for android XML. I'm not sure something like that exists for comany-mode. You can probably get some of it done by using the company-capf backend, e.g. something like

(push '(company-web-html company-capf) company-backends-web-mode)

But it's not going to be as good as a specific backend for the language you're working with.

@TheBB
Copy link
Contributor

TheBB commented Sep 16, 2015

It sounds like it shouldn't be so hard to write such a backend yourself, though, so long as you have a list of all the valid attributes and tags.

@LuoPX-15510486969
Copy link
Author

sorry, i am new to emacs and elisp ,so it sounds hard for me to write something .what is worse my major is civil engeering . so you know.....

@TheBB
Copy link
Contributor

TheBB commented Sep 16, 2015

Yeah, sorry... I didn't mean to suggest that it had to be you, necessarily. Maybe it's a feature request for eclim(d).

@Kethku
Copy link
Contributor

Kethku commented Sep 16, 2015

emacs-eclim doesn't have that much in the way of support for other languages than java at the moment. Eclim proper does have some support, so it might be possible in the future, but at the moment I don't think it is supported. That on top of the fact that the emacs-eclim project appears to be losing steam :(

@Kethku
Copy link
Contributor

Kethku commented Sep 16, 2015

@TheBB is totally right though, its likely that you could add a separate company backend to fill the gap. I'd be interested to hear if you find something.

@StreakyCobra
Copy link
Contributor

As the original issue was solved and the discussion moved to some points not directly related to Spacemacs, I'm closing this issue. Anyway, feel free everybody to open a new issue in case of problem ☺️

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

6 participants