Skip to content

cquery.elc failed to define function lsp-cquery-enable #58

@jeffpollock9

Description

@jeffpollock9

After doing a package update lsp-cquery-enable doesn't seem to work for me, on startup I get this in my messages:

File mode specification error: (error Autoloading file /home/jeff/.emacs.d/elpa/cquery-20181203.1829/cquery.elc failed to define function lsp-cquery-enable)

My emacs skills are somewhat lacking so please forgive me if I have done something stupid here. Relevant part of my .emacs.d/init.el (which I mostly took from the wiki):

  (use-package cquery
    :ensure t
    :bind
    (:map c++-mode-map
          ("C-b" . clang-format-buffer)
          ("C-d" . duplicate-thing))
    :commands lsp-cquery-enable
    :init
    (defun cquery//enable ()
      (condition-case nil (lsp-cquery-enable) (user-error nil)))
    (add-hook 'c-mode-hook #'cquery//enable)
    (add-hook 'c++-mode-hook #'cquery//enable))

and the full config is here

Any help is much appreciated and please let me know if there is anything I can do to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions