-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 broken in many modes #1045
Comments
Move company and auto-complete to a common layer. They are not enabled globally anymore, each mode using them must explicitly declare a hook. Only one frontend is supported for a given mode, we have to choose the best between the two. Only one key binding to toggle auto-completion on `SPC t a` no matter if it is company or auto-complete. The lighter in the mode-line is Ⓐ for both frontends.
Excellent list 👍 |
As mentioned in #1046, it does not work in haskell-mode either. I do get the Ⓐ but completion never pops up anymore If I use To nail the problem a little bit more if I add
then I have As an aside, how can I add a company backend without modifying the contrib file ? I used to add this line in my .spacemacs but it currently fails in the develop branch:
If I may another aside, it would be nice to add a |
@PierreR you have to push in |
Adds support for ruby, auctex, css, ledger and gtags with new auto-completion infrastructure. Ticks off many things in syl20bnr#1045
I have just updated (to cef3ca6) and it is actually worse ... When starting spacemacs, the first opening file works fine (completion works as described), then it won't work for all other buffers (same haskell mode). This is easy to reproduce. Open an haskell file, try completion (OK), open another haskell file, try completion (KO). It does not matter which file you pick first. I will try to bisect to see when the problem occurs. |
This is happening since 68ea365 ... The current situation is actually worse because there is no workaround anymore (the disable, enable dance is annoying but at least it makes completion work for all buffers ...) |
Only Haskell left, almost there :D |
OMG............... How can I be so stupid on this. I reproduced the same flaw as actual company by enabling it globally........ crap. There is no middle ground possible then, either going global company all the way down with global backend, either going the isolated company route. For now I disable the global company but I have to give it some thought. |
@PierreR Get the last develop and it will be good. Sorry for the regressions. (don't forget to restart Emacs). |
Euh no still no luck. Exactly the same symptoms. I did restart emacs ... I know the guy behind |
@syl20bnr I don't get it, what about global company interferes? The new infrastructure will override global company with its own backends list so having global company shouldn't matter, right? |
I don't seem to be able to make |
At first sight, it seems OK on my side. I will keep you updated. Cheers |
|
@carlosgaldino what kind of auto-completion are you expecting? I get basic buffer completion in Ruby with Do you have the |
@trishume I was expecting to have the same auto completion stuff I have when I'm writing other languages like existing variables/function names from the buffer I'm or any other buffer that I already opened. At least this is what I get when I'm in an |
@carlosgaldino you should get that, I certainly do. Do you have anything like an inf-ruby process running? Does it show the autocompletion 'a' in the modeline? Do you get any auto-completion popups ever? What do you get when you type To help with a problem I can't reproduce I'm going to need a lot more info than just that it happens, sorry for all the questions. |
@trishume Sure and is better that you ask the questions because I'm new to this and have no idea on what useful information I could give. So, the output for Just an FYI, the output when I'm in a Haskell file is the following: The 'a' doesn't appear when I'm in a Ruby file but it does show when it's a Haskell file. And I'm not sure about what you mean by "inf-ruby process running", could you explain? Thank you. |
@carlosgaldino got it, thanks for the help. I wasn't experiencing it because I enabled fallback global completion for modes without proper setup, and the ruby setup was missing something. Fixed with #1225. |
And with that this bug should be done. |
👍 |
Adds support for ruby, auctex, css, ledger and gtags with new auto-completion infrastructure. Ticks off many things in syl20bnr#1045
769d54d broke completion in many modes where the package itself has special functionality to configure autocomplete.
This issue tracks which modes used to be working and now do not and which have been fixed using Github's fancy checkbox feature:
company-backends
company-backends
backendscompany-capf
backendrobe
server (not possible for all projects) gets no auto-completeMost of these should be pretty easy to fix. In fact I haven't actually tested that all these are broken but based on my knowledge of the current Spacemacs codebase they will be.
As these are fixed I will check them off on the list. Comment if I miss a fix and I'll add it.
The text was updated successfully, but these errors were encountered: