Closed kvaneesh closed 6 years ago
Using e8ebd12ac692761018872283ad808056f3bb2ae1 fix the issue. Also with melpa version even lsp-cquery-enable gives error.
Can you paste the error message?
Welcome to be an early Melpa version user!... https://github.com/melpa/melpa/pull/5235
It was my negligence a few days ago. I think it should be good now. The Melpa version also has the (if (= lo hi) (max (1- hi) 0) (+ lo (% stable-id (- hi lo))))))))
fix.
`Debugger entered--Lisp error: (void-variable it-index)
macroexpand((cquery-use-default-rainbow-sem-highlight) nil) macroexp-macroexpand((cquery-use-default-rainbow-sem-highlight) nil) macroexp--expand-all((cquery-use-default-rainbow-sem-highlight)) macroexpand-all((cquery-use-default-rainbow-sem-highlight)) eval-sexp-add-defvars((cquery-use-default-rainbow-sem-highlight)) elisp--eval-last-sexp(nil)
eval-sexp-fu-flash-doit-simple(#[(&rest _it) " !\211\207" [ad--addoit-function eval-last-sexp-arg-internal ad-return-value] 2] #[128 "\302\300\303\301\"\"\207" [esf-hl-highlight-bounds ((1 . 43) eval-sexp-fu-flash #<buffer scratch>) apply append] 6 "\n\n(fn &rest ARGS2)"] #[128 "\302\300\303\301\"\"\207" [esf-hl-unhighlight-bounds ((1 . 43) #<buffer scratch>) apply append] 6 "\n\n(fn &rest ARGS2)"]) eval-sexp-fu-flash-doit(#[(&rest _it) " !\211\207" [ad--addoit-function eval-last-sexp-arg-internal ad-return-value] 2] #[128 "\302\300\303\301\"\"\207" [esf-hl-highlight-bounds ((1 . 43) eval-sexp-fu-flash #<buffer scratch>) apply append] 6 "\n\n(fn &rest ARGS2)"] #[128 "\302\300\303\301\"\"\207" [esf-hl-unhighlight-bounds ((1 . 43) #<buffer scratch>) apply append] 6 "\n\n(fn &rest ARGS2)"]) esf-flash-doit(#[(&rest _it) " !\211\207" [ad--addoit-function eval-last-sexp-arg-internal ad-return-value] 2] #[128 "\302\300\303\301\"\"\207" [esf-hl-highlight-bounds ((1 . 43) eval-sexp-fu-flash #<buffer scratch>) apply append] 6 "\n\n(fn &rest ARGS2)"] #[128 "\302\300\303\301\"\"\207" [esf-hl-unhighlight-bounds ((1 . 43) #<buffer scratch>) apply append] 6 "\n\n(fn &rest ARGS2)"] #[128 "\302\300\303\301\"\"\207" [esf-flash-error-bounds ((1 . 43) #<buffer scratch> eval-sexp-fu-flash-error) apply append] 6 "\n\n(fn &rest ARGS2)"]) ad-Advice-eval-last-sexp(#[257 "\204 \303!\207 \303!\n)B\211A =\204 \211A\211@\207" [eval-expression-debug-on-error elisp--eval-last-sexp-fake-value debug-on-error elisp--eval-last-sexp] 4 2276000 "P"] nil) apply(ad-Advice-eval-last-sexp #[257 "\204 \303!\207 \303!\n)B\211A =\204 \211A\211@\207" [eval-expression-debug-on-error elisp--eval-last-sexp-fake-value debug-on-error elisp--eval-last-sexp] 4 2276000 "P"] nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) `
That is the error I get when using melpa. But if i have the same package as local via ;;(cquery :location local)
it works fine.
`Debugger entered--Lisp error: (void-variable it-index)
[0 "\305\306!\210\307\310\311\312\313\314\315\"!\316\317\320 ECD\321BBB\n\"\322\323\310\311\312\313\314\324\"!\316\317\320 ECD\325BBB\312\313\314\326\"!\316\317\327\330\320 \257CD\331BBBD\"\"\332\323\310\311\312\313\314\333\"!\316\317\320 ECD\334BBB\312\313\314\335\"!\316\317\327\330\320 \257CD\336BBBD\f\"\"\337&B\207" [it-index it cquery-rainbow-sem-type-colors cquery-rainbow-sem-func-colors cquery-rainbow-sem-var-colors require dash progn append --map-indexed defface intern format "cquery-sem-type-face-%S" quote t :foreground (".") ((setq cquery-sem-type-faces (apply (function vector) (loop for i to 10 collect (intern (format "cquery-sem-type-face-%S" i)))))) apply "cquery-sem-free-func-face-%S" (".") "cquery-sem-member-func-face-%S" :slant italic (".") ((setq cquery-sem-free-func-faces (apply (function vector) (loop for i to 10 collect (intern (format "cquery-sem-free-func-face-%S" i))))) (setq cquery-sem-member-func-faces (apply (function vector) (loop for i to 10 collect (intern (format "cquery-sem-member-func-face-%S" i)))))) "cquery-sem-free-var-face-%S" (".") "cquery-sem-member-var-face-%S" (".") ((setq cquery-sem-free-var-faces (apply (function vector) (loop for i to 10 collect (intern (format "cquery-sem-free-var-face-%S" i))))) (setq cquery-sem-member-var-faces (apply (function vector) (loop for i to 10 collect (intern (format "cquery-sem-member-var-face-%S" i))))))] 18 ("/home/kvaneesh/.emacs.d/elpa/develop/cquery-20180121.2203/cquery.elc" . 7652)]()
macroexpand((cquery-use-default-rainbow-sem-highlight) nil) macroexp-macroexpand((cquery-use-default-rainbow-sem-highlight) nil) macroexp--expand-all((cquery-use-default-rainbow-sem-highlight)) macroexpand-all((cquery-use-default-rainbow-sem-highlight)) eval-sexp-add-defvars((cquery-use-default-rainbow-sem-highlight)) elisp--eval-last-sexp(nil)
[257 "\204`