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

Can't make irony mode work on Manjaro #564

Open
louhmmsb opened this issue Jul 29, 2020 · 1 comment
Open

Can't make irony mode work on Manjaro #564

louhmmsb opened this issue Jul 29, 2020 · 1 comment

Comments

@louhmmsb
Copy link

louhmmsb commented Jul 29, 2020

I'm trying for several hours to make irony's autocomplete work but I keep getting the following error
Irony I/O task: error in callback: (irony-server-error complete-error "failed to perform code completion". I think I'm setting things up wrong, sorry I'm pretty new to this.
Besides the cpp file, what should I have in the folder, and how do i know if irony is being able to locate libclang?

The relevant part of my init.el is

`
(use-package company
:ensure t
:config
(setq company-idle-delay 0)
(setq company-minimum-prefix-length 3))

 (use-package company-irony
   :ensure t
   :config
   (require 'company)
   (add-to-list 'company-backends 'company-irony))

 (use-package irony
   :ensure t
   :config
   (add-hook 'c++-mode-hook 'irony-mode)
   (add-hook 'c-mode-hook 'irony-mode)
   (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options))

 (with-eval-after-load 'company
   (add-hook 'c++-mode-hook 'company-mode)
   (add-hook 'c-mode-hook 'company-mode))

`

@Sasanidas
Copy link

It is not recommended to use require inside use-package , use :after or :require instead (use-package), also you can set up hook with use-package too (hooks).

Did you run irony-install-server? If it is the case, check the version of the irony server, and try to parse some file with the command line (with the default location):
~/.emacs.d/irony/bin/irony-server parse FILE
If all is correct, try to autocomplete with the interactive mode

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants