irony-mode
irony-mode copied to clipboard
Newly written functions and classes cannot be completed unless irony-server is restarted.
Newly written functions and classes cannot be completed unless irony-server is restarted, even after a long time (up to several hours). However, methods of classes can be completed without restarting.
Experience the same issue, configured irony as follows:
Enable company mode
(add-hook 'after-init-hook 'global-company-mode)
;; Configure irony-mode
(add-hook 'c++-mode-hook 'irony-mode)
(add-hook 'c-mode-hook 'irony-mode)
(add-hook 'objc-mode-hook 'irony-mode)
(add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
;; Add irony to company backends
(eval-after-load 'company
'(add-to-list 'company-backends 'company-irony))