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

no candidates presented in web-mode #358

Open
sunilw opened this issue Sep 5, 2014 · 3 comments
Open

no candidates presented in web-mode #358

sunilw opened this issue Sep 5, 2014 · 3 comments

Comments

@sunilw
Copy link

sunilw commented Sep 5, 2014

Using the latest versions of web-mode and auto-complete from git:
No candidates are presented for selection in web-mode.

Here are examples of files that I'm editing:
https://gist.github.com/sunilw/8d8e209ff01b7d0603ca
https://gist.github.com/sunilw/ba9453c5a089288bb9bf

I definately have auto-complete-mode loaded: I can see AC in the modeline.

My config for auto-complete looks like this:
https://gist.github.com/sunilw/32720ffc0eedc81c99d6

@syohex
Copy link
Contributor

syohex commented Sep 5, 2014

I suppose this is web-mode issue.

ac-sources which is a variable for saving completion sources becomes nil
when I use web-mode for a while. If this variable is nil, no candidates are presented.

@sunilw
Copy link
Author

sunilw commented Sep 6, 2014

How can I create more data on this issue?

@syohex
Copy link
Contributor

syohex commented Sep 6, 2014

(defun my-web-mode-hook ()
  (setq orig-ac-sources (copy-list ac-sources)))
(add-hook 'web-mode-hook 'my-web-mode-hook)

Add above setting and open HTML file with web-mode.
ac-sources is nil after saving buffer however ac-sources is not nil
at first. You can see original value via orig-ac-sources.

@dickmao dickmao closed this as completed May 17, 2020
@dickmao dickmao reopened this May 17, 2020
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

3 participants