Skip to content

Can't make irony mode work on Manjaro #564

Open
@louhmmsb

Description

@louhmmsb

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))

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions