Sarcasm / irony-mode

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

latest use-package-20171203.1313 broke irony #452

Closed mambolevis closed 6 years ago

mambolevis commented 6 years ago

Hi,

It is just for information: With the latest update of (use-package-20171203.1313) from MELPA, Irony mode doesn't work. They provide several workarounds to temporarily solve the problem of use-package but they not necessarily work for irony. [https://github.com/jwiegley/use-package/issues/533]

Sarcasm commented 6 years ago

thanks for letting me know, they seem quite active on the issue, maybe it's fixed now?

mambolevis commented 6 years ago

I tested the new "fixed"version of use-package (use-package-20171204.1703) and irony did not work.

On the oder hand, If I used a previous version, for example, use-package-20171030.1428 irony works properly.

This is my irony configuration. Do you have any idea or suggestion?

(use-package irony
  :ensure t
  ;;:load-path "~/.emacs.d/user/site-lisp/irony-20171110.1151"
  ;;:commands irony-mode
  :defer t
  ;; needs to declare irony-cdb for autoloads to work when taken from github
  ;; :config (use-package irony-cdb)
  :after cc-mode
  :config
  (progn
    (setq irony-server-install-prefix
          "~/.emacs.d/user/site-lisp/irony-20171110.1151")
    (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)
    ;;--------------------------------------------------------------------------
    ;;;  Windows perfomance tweaks
    ;;--------------------------------------------------------------------------
    (when (boundp 'w32-pipe-read-delay)
      (setq w32-pipe-read-delay 0))
    ;; Set the buffer size to 64K on Windows (from the original 4K)
    (when (boundp 'w32-pipe-buffer-size)
      (setq irony-server-w32-pipe-buffer-size (* 64 1024)))
    ;;--------------------------------------------------------------------------
    ))
mambolevis commented 6 years ago

The explanation and solution of this issue can be found in the following link: https://github.com/jwiegley/use-package/issues/561#issuecomment-349449818