Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running timer #442

Open
kb01 opened this issue Apr 22, 2016 · 18 comments
Open

Error running timer #442

kb01 opened this issue Apr 22, 2016 · 18 comments
Labels
question Further information is requested

Comments

@kb01
Copy link

kb01 commented Apr 22, 2016

Hello,

I'm getting the following errors whenever trying to include some headers on my C code:

"Error running timer 'ac-show-menu': (wrong-type-argument processp nil)"
"Error running timer 'ac-update-greedy': (wrong-type-argument processp nil)"

I'm using emacs 25.0.92.1, and currently unable to solve this issue.

Any help will be much appreciated.

Thank you.

@kb01
Copy link
Author

kb01 commented Apr 22, 2016

Note: this issue doesn't only cover the C headers, but also any attempt for auto-completing any other input from the user.

BTW I'm using auto-complete-20160416.604.

@YorkZ
Copy link
Contributor

YorkZ commented Apr 22, 2016

I also have the exact same problem from time to time.

@syohex
Copy link
Contributor

syohex commented Apr 25, 2016

Could you show us sample code for reproducing this issue and tell us how to reproduce it in detail ?

@kb01
Copy link
Author

kb01 commented Apr 25, 2016

@syohex
auto-complete-timer-bug
auto-complete-timer-bug-details

@syohex
Copy link
Contributor

syohex commented Apr 26, 2016

I cannot reproduce this issue.

  • Please disable all other minor modes. (It looks you enable flycheck, yasnippet, ggtags etc)
  • Please reinstall auto-complete and byte-compile again.
  • Please use stable version or latest pretest version because your emacs version is little old.

@kb01
Copy link
Author

kb01 commented Apr 27, 2016

@syohex I tried all what you recommended, but it didn't solve anything either.

@syohex
Copy link
Contributor

syohex commented Apr 27, 2016

Could you show us minimum configuration for reproduce this issue ?

@kb01
Copy link
Author

kb01 commented Apr 27, 2016

@syohex:

(setq inhibit-splash-screen t)
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
(package-initialize)

(add-to-list 'load-path "~/.emacs.d/elpa")
(require 'auto-complete-config)
(ac-config-default)

(defun my:ac-c-header-init ()
  (require 'auto-complete-c-headers)
  (add-to-list 'ac-sources 'ac-source-c-headers))
(add-hook 'c++-mode-hook 'my:ac-c-header-init)
(add-hook 'c-mode-hook 'my:ac-c-header-init)

;; Make a non-standard key binding.  We can put this in
;; c-mode-base-map because c-mode-map, c++-mode-map, and so on,
;; inherit from it.
(defun my-c-initialization-hook ()
  (define-key c-mode-base-map "\C-m" 'c-context-line-break))
(add-hook 'c-initialization-hook 'my-c-initialization-hook)

;; offset customizations not in my-c-style
;; This will take precedence over any setting of the syntactic symbol
;; made by a style.
(setq c-offsets-alist '((member-init-intro . ++)))

;; Create my personal style.
(defconst my-c-style
  '((c-tab-always-indent        . t)
    (c-comment-only-line-offset . 4)
    (c-hanging-braces-alist     . ((substatement-open after)
                                   (brace-list-open)))
    (c-hanging-colons-alist     . ((member-init-intro before)
                                   (inher-intro)
                                   (case-label after)
                                   (label after)
                                   (access-label after)))
    (c-cleanup-list             . (scope-operator
                                   empty-defun-braces
                                   defun-close-semi))
    (c-offsets-alist            . ((arglist-close . c-lineup-arglist)
                                   (substatement-open . 0)
                                   (case-label        . 4)
                                   (block-open        . 0)
                                   (knr-argdecl-intro . -)))
    (c-echo-syntactic-information-p . t))
  "My C Programming Style")
(c-add-style "PERSONAL" my-c-style)

;; Customizations for all modes in CC Mode.
(defun my-c-mode-common-hook ()
  ;; set my personal style for the current buffer
  (c-set-style "PERSONAL")
  ;; other customizations
  (setq tab-width 8
        ;; this will make sure spaces are used instead of tabs
        indent-tabs-mode nil)
  ;; we like auto-newline, but not hungry-delete
  (c-toggle-auto-newline 1))
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

(defun my-ac-config ()
  (add-hook 'c-mode-common-hook 'ac-cc-mode-setup)
  (add-hook 'auto-complete-mode-hook 'ac-common-setup)
  (global-auto-complete-mode t))

(my-ac-config)

@syohex
Copy link
Contributor

syohex commented May 2, 2016

Sorry late reply.
But I cannot reproduce this issue with your configuration on Emacs 25.0.93.1 and development version.

@kb01
Copy link
Author

kb01 commented May 5, 2016

@syohex Humm.. That seems little-bit odd.

But there is obviously a bug somewhere, since @YorkZ has pointed out above, that he is encountering the same issue as mine.

Could it be an OS-specific bug, then? (Note: I'm using Arch distro, and my emacs version is 25.0.93.1 BTW.)

Thank you.

@kb01
Copy link
Author

kb01 commented May 15, 2016

emacs --debug

Debugger entered--Lisp error: (file-error "Cannot open load file" "No such file or directory" "/home/kb01/.emacs.d/elpa/auto-complete-1.5.1/auto-complete-autoloads")
  load("/home/kb01/.emacs.d/elpa/auto-complete-1.5.1/auto-complete-autoloads" nil t)
  package--activate-autoloads-and-load-path([cl-struct-package-desc auto-complete (1 5 0) "Auto Completion for GNU Emacs" ((popup (0 5 0)) (cl-lib (0 5))) nil nil "/home/kb01/.emacs.d/elpa/auto-complete-1.5.1" nil nil])
  package--load-files-for-activation([cl-struct-package-desc auto-complete (1 5 0) "Auto Completion for GNU Emacs" ((popup (0 5 0)) (cl-lib (0 5))) nil nil "/home/kb01/.emacs.d/elpa/auto-complete-1.5.1" nil nil] nil)
  package-activate-1([cl-struct-package-desc auto-complete (1 5 0) "Auto Completion for GNU Emacs" ((popup (0 5 0)) (cl-lib (0 5))) nil nil "/home/kb01/.emacs.d/elpa/auto-complete-1.5.1" nil nil] nil deps)
  package-activate(auto-complete)
  package-activate-1([cl-struct-package-desc plsense (20151104 645) "provide interface for PlSense that is a development tool for Perl." ((auto-complete (1 4 0)) (log4e (0 2 0)) (yaxception (0 2 0))) nil nil "/home/kb01/.emacs.d/elpa/plsense-20151104.645" ((:keywords "perl" "completion") (:url . "https://github.com/aki2o/emacs-plsense")) nil] nil deps)
  package-activate(plsense)
  package-activate-1([cl-struct-package-desc plsense-direx (20140520 1308) "Perl Package Explorer" ((direx (0 1 -3)) (plsense (0 3 2)) (log4e (0 2 0)) (yaxception (0 3 2))) nil nil "/home/kb01/.emacs.d/elpa/plsense-direx-20140520.1308" ((:keywords "perl" "convenience") (:url . "https://github.com/aki2o/plsense-direx")) nil] nil deps)
  package-activate(plsense-direx)
  package-initialize()
  eval-buffer(#<buffer  *load*> nil "/home/kb01/.emacs" nil t)  ; Reading at buffer position 184
  load-with-code-conversion("/home/kb01/.emacs" "/home/kb01/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "�\205\266

Note: Plsense minor-modes are kept disabled on .emacs file.

@syohex
Copy link
Contributor

syohex commented May 16, 2016

Could you reinstall auto-complete(remove and install again) ?

@kb01
Copy link
Author

kb01 commented May 17, 2016

@syohex I tried re-installing + upgrading other packages as-well.

Now everything works great, and my issue is solved!

However, I'm little-bit curious about the following error I got during the upgrades:

Compiling /home/kb01/.emacs.d/elpa/dash-20160510.1127/dash.el...done
Wrote /home/kb01/.emacs.d/elpa/dash-20160510.1127/dash.elc
Checking /home/kb01/.emacs.d/elpa/dash-20160510.1127...
Done (Total of 1 file compiled, 2 skipped)
Contacting host: melpa.milkbox.net:80 [2 times]
Parsing tar file...
Warning: premature EOF parsing tar file
package-untar-buffer: Package does not untar cleanly into directory auto-complete-20160416.604/

So, what does this error suggests?

Thank you.

@syohex
Copy link
Contributor

syohex commented May 17, 2016

Sorry, I'm not sure. Network issue ? Please try again after some hours.

@davidgomes
Copy link

I am getting this error on Emacs 25.1 as well. Consistently every time I try to auto complete.

Error running timer ‘ac-update-greedy’: (wrong-number-of-arguments setq 1) [2 times]
Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
Error running timer ‘ac-update-greedy’: (wrong-number-of-arguments setq 1) [2 times]

I have tried both auto-complete v1.5.1 and auto-complete 20160827.649 and I get the same error in both of them.

@syohex
Copy link
Contributor

syohex commented Sep 24, 2016

setq issue was already fixed at #424. Did you have old byte-compiled file ?

@davidgomes
Copy link

My issue was that I had a very old auto-complete.el file in my local Lisp folder. Sorry for bothering.

(add-to-list 'load-path "~/.emacs.d/lisp/")

It has indeed been fixed.

@dickmao dickmao closed this as completed May 17, 2020
@dickmao dickmao reopened this May 17, 2020
@jcs090218
Copy link
Member

jcs090218 commented Oct 1, 2020

@kb01 Does this issue goes away after reinstalling it? 😖 Thanks!

@jcs090218 jcs090218 added the question Further information is requested label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants