Open sbroberg opened 6 years ago
I'm not able to reproduce this. I don't normally use helm so I copied your setup for my test. I'm assuming you meant pressing tab here:
However, if I press (which opens the file, highlights the relevant line, and leaves the search results window open),
I only get a submenu saying:
[f1] Select [f2] Select other window
when I do that.
The same error with ivy (no helm). This is the configuration: `(require 'company) (global-company-mode) (require 'rtags) (cmake-ide-setup)
(defun config-rtags () "configuration of rtags"
(require 'company-rtags) (setq rtags-autostart-diagnostics t) (setq rtags-completions-enabled t) (push 'company-rtags company-backends)
(require 'flycheck) (require 'flycheck-rtags) (flycheck-select-checker 'rtags) (setq-local flycheck-highlighting-mode nil) (setq-local flycheck-check-syntax-automatically nil)
(setq rtags-display-result-backend 'ivy)
(require 'yasnippet) (yas-reload-all)
(require 'doxymacs) (doxymacs-mode 1)
(fci-mode 1)
(yas-minor-mode 1)
(hs-minor-mode 1)
(require 'clang-format) (setq clang-format-style "Mozilla")
(local-set-key (kbd "C-c r .") #'rtags-find-symbol-at-point) (local-set-key (kbd "C-c r r") #'rtags-find-references-at-point) (local-set-key (kbd "C-c r R") #'rtags-rename-symbol) (local-set-key (kbd "C-c r <") #'rtags-find-references) (local-set-key (kbd "C-c r >") #'rtags-find-symbol) (local-set-key (kbd "C-c r ;") #'rtags-find-file) (local-set-key (kbd "C-c r [") #'rtags-location-stack-back) (local-set-key (kbd "C-c r ]") #'rtags-location-stack-forward) (local-set-key (kbd "C-c c c") #'cmake-ide-compile) (local-set-key (kbd "C-c x c") #'xah-lookup-cppreference) (local-set-key (kbd "C-c x b") #'xah-lookup-boost) (local-set-key (kbd "C-c f b") #'clang-format-buffer) )
(add-hook 'c-mode-hook #'config-rtags) (add-hook 'c++-mode-hook #'config-rtags) `
Please mark appropriate
Problem description
When using helm to navigate the results of an rtags search (e.g., rtags-find-references-at-point), if I press on a search result line, the file opens normally. However, if I press (which opens the file, highlights the relevant line, and leaves the search results window open), I get the following error:
Error running timer ‘flycheck-buffer’: (user-error "Flycheck mode disabled")
It's unclear whether flycheck is actually disabled at this point; since the buffer in question is not really open for editing (it disappears when you close the search results window), I'm assuming that this is occurring because it is read-only. PressingExpected behavior
No error
Actual behavior
The error appears
Environment
Your operating system: OSX 10.12
LLVM/Clang version: 4.1
My elisp configuration:
;;; package --- Summary ;;; Commentary: ;;; Code: