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

Company can't provide proper auto completions #26

Closed
Compro-Prasad opened this issue Dec 23, 2018 · 1 comment
Closed

Company can't provide proper auto completions #26

Compro-Prasad opened this issue Dec 23, 2018 · 1 comment

Comments

@Compro-Prasad
Copy link

Compro-Prasad commented Dec 23, 2018

Type view_ in buffer then doing M-x company-complete.

In *Messages* buffer:

Company: An error occurred in post-command
Company: frontend company-pseudo-tooltip-unless-just-one-frontend error "Company: backend company-lsp error "Invalid function: incf" with args (match view_widget() -> Gtk::Widget *)" on command post-command

Backtrace:

Debugger entered--Lisp error: (void-function incf)
  incf(0)
  company-lsp--compute-match(#("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t)))))
  company-lsp(match #("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t)))))
  apply(company-lsp (match #("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t))))))
  company-call-backend-raw(match #("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t)))))
  apply(company-call-backend-raw (match #("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t))))))
  company--force-sync(company-call-backend-raw (match #("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t))))) company-lsp)
  company-call-backend(match #("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t)))))
  company-fill-propertize(#("view_widget() -> Gtk::Widget *" 0 30 (lsp-completion-item #<hash-table equal 8/65 0x226daf9> lsp-completion-prefix #("view_" 0 5 (fontified t)))) " thittam::ResourcesControllerImpl (Method)" 78 t " " " 1 ")
  company--create-lines(0 10)
  company-pseudo-tooltip-show(23 2 0)
  company-pseudo-tooltip-show-at-point(1243 5)
  company-pseudo-tooltip-frontend(post-command)
  company-pseudo-tooltip-unless-just-one-frontend(post-command)
  company-call-frontends(post-command)
  company-post-command()
@Compro-Prasad
Copy link
Author

Fixed it by updating company-lsp and restarting Emacs.

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

1 participant