Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
901 stars 98 forks source link

Async timeout with args #495

Open storvik opened 5 years ago

storvik commented 5 years ago

Hello,

Trying to set up irony, company-irony and flycheck-irony, using Ubuntu 18.04 (clang 6.0.0). When opening a new cpp file and trying to autocomplete something in the buffer I often receive the following message: Company: backend company-irony async timeout with args (candidates)

Sometimes autocompletion works, and the chance of that happening is greater if flycheck-irony have identified a error. Have tried to increase the value of company-async-timeout but no luck there. Also tried to reinstall irony-server.

Is there anything I might be missing?

Config:

(use-package irony
  :defer t
  :init
  (progn
    (add-hook 'c++-mode-hook 'irony-mode)
    (add-hook 'c-mode-hook 'irony-mode)
    (add-hook 'objc-mode-hook 'irony-mode))
  :config
  (progn
    (defun my-irony-mode-hook ()
      (define-key irony-mode-map
        [remap completion-at-point] 'counsel-irony)
      (define-key irony-mode-map
        [remap complete-symbol] 'counsel-irony))
    (add-hook 'irony-mode-hook 'my-irony-mode-hook)
    (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)))

  (use-package company-irony
    :defer t
    :init
    (eval-after-load 'company
      '(add-to-list 'company-backends 'company-irony)))