[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#890878: RFS: company-irony



Hi Alberto,

On Wed, Mar 14, 2018 at 12:39:44PM -0400, Nicholas D Steeves wrote:
> Hi Alberto,
> 
> On Wed, Mar 14, 2018 at 09:34:07AM +0100, Alberto Luaces wrote:
>
> > > Because for now the most pressing issue is that it doesn't initialise
> > > properly...
> > >
> > >   Company backend 'company-clang' could not be initialized:
> > >   Company found no clang executable
> > >
> > > This was both with no configuration (and M-x company-mode), and with
> > > following upstream's README in a clean sid chroot.  I opened a random
> > > cpp from kdeconnect to test.  I suspect a documentation of
> > > configuration issue because I would have expected company-irony to
> > > load rather than company-clang...but it's possibly a bug.
> > >
> > > Please let me know how you made company-irony work.
> > 
> > Oh, yes, I think this is expected.  From the documentation at
> > 
> > /usr/share/doc/elpa-company-irony/README.md
> > 
> > --8<---------------cut here---------------start------------->8---
> > 
> > ## Configuration
> > 
> > Add `company-irony` to your company backends.
> > 
> > ~~~el
> > (eval-after-load 'company
> >   '(add-to-list 'company-backends 'company-irony))
> > ~~~
> > 
> > --8<---------------cut here---------------end--------------->8---
> 
> This is exactly one of the two things that I tried.  To be fair,
> company-irony's autocomplete seems to function properly despite this
> :-)
> 
> Could you patch README.md to show how to remove company-clang from
> company-backends, and also document that this warning is harmless (if
> it's harmless).

Any progress on this?

In pseudo code:

eval company-backends to check if company-clang is an element
  if non nil (eg: if the company-clang element exists)
    remove company-clang from company-backends
(add-to-list 'company-backends 'company-irony)

Justification: company-clang and company-irony should not be used at
the same time, and company-irony replaces company-clang.

Also, here are some resources for patching the upstream description
and for improving the Debian description:

https://www.reddit.com/r/emacs/comments/26cxgl/fastest_c_completion_system/
https://github.com/Sarcasm/company-irony/issues/33
https://github.com/Sarcasm/company-irony/issues/33

Happy hacking,
Nicholas

Attachment: signature.asc
Description: PGP signature


Reply to: