Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 252 forks source link

Auto-completition list is embeded in source code instead of popup list #780

Closed handrake0724 closed 7 years ago

handrake0724 commented 7 years ago

I have followed the instruction stated here. I think rdm is working fine and communicating with emacs (24.5.1). Problem is that auto-completition list like member variables is embed in the source code instead of showing in a popup window. As shown below figures, rtags is getting completion list correctly but the list is inserted into source code buffer.

emacs tardis_003

emacs tardis_004 my rtags setup is as follows:

;; company-mode (require 'company) (global-company-mode)

;; rtags (require 'rtags) (require 'company-rtags)

(add-hook 'c-mode-common-hook 'rtags-start-process-unless-running) (add-hook 'c++-mode-common-hook 'rtags-start-process-unless-running) (add-hook 'c++-mode-hook 'flycheck-mode) (add-hook 'c-mode-hook 'flycheck-mode)

(setq rtags-completions-enabled t) (eval-after-load 'company '(add-to-list 'company-backends 'company-rtags)) (setq rtags-autostart-diagnostics t) (setq rtags-use-helm t) (rtags-enable-standard-keybindings) (rtags-diagnostics) (require 'flycheck-rtags)

any help would be grateful.

handrake0724 commented 7 years ago

latest rtags (20160902.1359) + additional install of auto-complete did the magic.

Andersbakken commented 7 years ago

Hm. Do you have popup installed?

This sounds more like a company-problem than an rtags problem to be honest. Does it happen with company-mode in elisp buffers as well?

Anders

On Fri, Sep 2, 2016 at 9:25 AM, handrake0724 notifications@github.com wrote:

I have followed the instruction stated here. I think rcmd is working fine and communicating with emacs. Problem is that auto-complete list like member variables is embed in the source code instead of showing in a new mini window.

my rtags setup is as follows:

;; company-mode (require 'company) (global-company-mode)

;; rtags (require 'rtags) (require 'company-rtags)

(add-hook 'c-mode-common-hook 'rtags-start-process-unless-running) (add-hook 'c++-mode-common-hook 'rtags-start-process-unless-running) (add-hook 'c++-mode-hook 'flycheck-mode) (add-hook 'c-mode-hook 'flycheck-mode)

(setq rtags-completions-enabled t) (eval-after-load 'company '(add-to-list 'company-backends 'company-rtags)) (setq rtags-autostart-diagnostics t) (setq rtags-use-helm t) (rtags-enable-standard-keybindings) (rtags-diagnostics) (require 'flycheck-rtags)

any help would be grateful.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Andersbakken/rtags/issues/780, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEdSsvh4h4X5EWydzVfKFX-8vK8qE5Gks5qmE4KgaJpZM4Jz313 .

handrake0724 commented 7 years ago

Yes, popup has been installed but it did not work. After installed auto-complete mode, I could get completion list.

Andersbakken commented 7 years ago

Good to hear. Let me know if you run into other problems.

Anders

On Sun, Sep 4, 2016 at 9:16 AM, handrake0724 notifications@github.com wrote:

Yes, popup has been installed but it did not work. After installed auto-complete mode, I could get completion list.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Andersbakken/rtags/issues/780#issuecomment-244612298, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEdSnOP_bCgRSC05EK_1dcD-TW31Skkks5qmu7FgaJpZM4Jz313 .