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

Newly written functions and classes cannot be completed unless irony-server is restarted. #517

Open PhoenixStarEclipse opened 5 years ago

PhoenixStarEclipse commented 5 years ago

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.

ocelaiwo commented 4 years ago

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