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

auto-complete error: (void-variable ac-source-js2) #21

Open
computersarecool opened this issue Apr 28, 2015 · 2 comments
Open

auto-complete error: (void-variable ac-source-js2) #21

computersarecool opened this issue Apr 28, 2015 · 2 comments

Comments

@computersarecool
Copy link

That is the error I get when trying to use ac-js2 mode:

It shows no errors but as soon as I try to type something I get:

auto-complete error: (void-variable ac-source-js2) 

Thank you for any help!

@computersarecool
Copy link
Author

I think I have isolated the code down to this:

Debugger entered--Lisp error: (invalid-function ac-define-source)                                                                                                                                        
  ac-define-source("js2" ((candidates . ac-js2-ac-candidates) (document . ac-js2-ac-document) (prefix . ac-js2-ac-prefix) (requires . -1)))                                                              
  ac-js2-setup-auto-complete-mode()                                                                                                                                                                      
  ac-js2-mode()                                                                                                                                                                                          
  run-hooks(change-major-mode-after-body-hook prog-mode-hook js2-mode-hook)                                                                                                                              
  apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook js2-mode-hook))                                                                                                                      
  run-mode-hooks(js2-mode-hook)                                                                                                                                                                          
  js2-mode()                                                                                                                                                                                              
  set-auto-mode-0(js2-mode nil)                                                                                                                                                                          
  set-auto-mode()                                                                                                                                                                                        
  normal-mode(t)                                                                                                                                                                                          
  after-find-file(nil t)                                                                                                                                                                                  
  find-file-noselect-1(#<buffer #wow.js#> "~/Documents/overflow/emacsTest/#wow.js#" nil nil "~/Documents/overflow/emacsTest/#wow.js#" (59027515 16777220))                                                
  find-file-noselect("/Users/Startec/Documents/overflow/emacsTest/#wow.js#" nil nil nil)                                                                                                                  
  find-file("/Users/Startec/Documents/overflow/emacsTest/#wow.js#")                                                                                                                                      
  dired-find-file()                                                                                                                                                                                      
  call-interactively(dired-find-file nil nil)                                                                                                                                                            
  command-execute(dired-find-file)

But can not debug further

@dunn
Copy link

dunn commented Aug 5, 2015

This is fixed for me by the patch here: #18 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants