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

update log from melpa: warnings and error #510

Closed
kevgs opened this issue Dec 6, 2018 · 3 comments
Closed

update log from melpa: warnings and error #510

kevgs opened this issue Dec 6, 2018 · 3 comments

Comments

@kevgs
Copy link

kevgs commented Dec 6, 2018

Hi.

I'm using emacs-lsp through MELPA. Today I was updating packages and there was two: emacs-lsp and dash.

Here is a log:

Leaving directory ‘/home/kevg/.emacs.d/elpa/spinner-1.7.3’

Compiling file /home/kevg/.emacs.d/elpa/spinner-1.7.3/spinner.el at Thu Dec  6 16:46:37 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/spinner-1.7.3/’

Compiling no file at Thu Dec  6 16:46:38 2018
Leaving directory ‘/home/kevg/.emacs.d/elpa/ht-20180129.2234’

Compiling file /home/kevg/.emacs.d/elpa/ht-20180129.2234/ht.el at Thu Dec  6 16:46:38 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/ht-20180129.2234/’

Compiling no file at Thu Dec  6 16:46:39 2018
Leaving directory ‘/home/kevg/.emacs.d/elpa/s-20180406.808’

Compiling file /home/kevg/.emacs.d/elpa/s-20180406.808/s.el at Thu Dec  6 16:46:39 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/s-20180406.808/’

Compiling no file at Thu Dec  6 16:46:40 2018
Leaving directory ‘/home/kevg/.emacs.d/elpa/f-20180106.922’

Compiling file /home/kevg/.emacs.d/elpa/f-20180106.922/f.el at Thu Dec  6 16:46:40 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/f-20180106.922/’

Compiling no file at Thu Dec  6 16:46:41 2018
Leaving directory ‘/home/kevg/.emacs.d/elpa/dash-functional-20180107.1618’

Compiling file /home/kevg/.emacs.d/elpa/dash-functional-20180107.1618/dash-functional.el at Thu Dec  6 16:46:41 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/dash-functional-20180107.1618/’

Compiling no file at Thu Dec  6 16:46:44 2018
Leaving directory ‘/home/kevg/.emacs.d/elpa/lsp-mode-20181206.532’

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-clients.el at Thu Dec  6 16:46:44 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/’

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-common.el at Thu Dec  6 16:46:44 2018
lsp-common.el:24:1:Warning: cl package required at runtime

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-flycheck.el at Thu Dec  6 16:46:44 2018

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-imenu.el at Thu Dec  6 16:46:44 2018

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-io.el at Thu Dec  6 16:46:44 2018

In end of data:
lsp-io.el:355:1:Warning: the function ‘json-parse-string’ is not known to be
    defined.

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-methods.el at Thu Dec  6 16:46:44 2018

In lsp--make-response:
lsp-methods.el:451:8:Warning: function lsp--make-response used to take 2
    arguments, now takes 3

In lsp-register-client-capabilities:
lsp-methods.el:721:8:Warning: function lsp-register-client-capabilities used
    to take 0+ arguments, now takes 2
lsp-methods.el:1433:1:Warning: Unused lexical variable ‘buf’

In lsp--cur-line-diagnotics:
lsp-methods.el:1535:43:Warning: reference to free variable ‘lsp--diagnostics’

In lsp--render-on-hover-content:
lsp-methods.el:1808:8:Warning: function lsp--render-on-hover-content used to
    take 2 arguments, now takes 3
lsp-methods.el:1864:1:Warning: Unused lexical argument ‘from-cache’

In lsp-hover:
lsp-methods.el:1881:23:Warning: reference to free variable ‘range’
lsp-methods.el:1885:23:Warning: reference to free variable ‘contents’

In lsp-signature-help:
lsp-methods.el:1905:28:Warning: ‘(sig-i (gethash "activeSignature"
    signature-help))’ is a malformed function
lsp-methods.el:1905:28:Warning: ‘(parameter-i (gethash "activeParameter"
    signature-help))’ is a malformed function
lsp-methods.el:1912:49:Warning: reference to free variable ‘sig-i’
lsp-methods.el:1912:63:Warning: reference to free variable ‘sigs’
lsp-methods.el:1915:73:Warning: reference to free variable ‘sig’
lsp-methods.el:1915:78:Warning: reference to free variable ‘parameter-i’
lsp-methods.el:1916:59:Warning: reference to free variable ‘parameter’
lsp-methods.el:1917:78:Warning: reference to free variable ‘param’
lsp-methods.el:1918:57:Warning: reference to free variable ‘parts’
lsp-methods.el:2349:1:Warning: Unused lexical variable ‘old-file-name’

In end of data:
lsp-methods.el:2368:1:Warning: the following functions are not known to be defined:
    projectile-project-root, when-let*, sigs, sig, if-let*,
    parameter, param, parts

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-mode.el at Thu Dec  6 16:46:44 2018

In lsp-define-stdio-client:
lsp-mode.el:118:14:Warning: macro lsp-define-stdio-client used to take 0+
    arguments, now takes 4+

In lsp-define-tcp-client:
lsp-mode.el:227:14:Warning: macro lsp-define-tcp-client used to take 0+
    arguments, now takes 6+

In lsp-diagnostics:
lsp-mode.el:427:3:Warning: reference to free variable ‘lsp--diagnostics’

In end of data:
lsp-mode.el:431:1:Warning: the function ‘lsp--start’ is not known to be
    defined.

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp-notifications.el at Thu Dec  6 16:46:45 2018
lsp-notifications.el:98:1:Warning: Unused lexical argument ‘workspace’

Compiling file /home/kevg/.emacs.d/elpa/lsp-mode-20181206.532/lsp.el at Thu Dec  6 16:46:45 2018
lsp.el:575:1:Warning: Unused lexical argument ‘params’

In lsp--position-to-point:
lsp.el:584:29:Warning: reference to free variable ‘line’
lsp.el:585:29:Warning: reference to free variable ‘character’

In lsp--make-diag:
lsp.el:769:16:Warning: reference to free variable ‘severity’
lsp.el:770:12:Warning: reference to free variable ‘code’
lsp.el:771:14:Warning: reference to free variable ‘source’
lsp.el:772:50:Warning: reference to free variable ‘message’

In lsp--server-register-capability:
lsp.el:1109:43:Warning: reference to free variable ‘id’
lsp.el:1109:54:Warning: reference to free variable ‘method’
lsp.el:1109:70:Warning: reference to free variable ‘registerOptions’
lsp.el:1752:1:Error: Wrong type argument: listp, kind

Compiling no file at Thu Dec  6 16:46:47 2018
Leaving directory ‘/home/kevg/.emacs.d/elpa/dash-20180910.1856’

Compiling file /home/kevg/.emacs.d/elpa/dash-20180910.1856/dash.el at Thu Dec  6 16:46:47 2018
Entering directory ‘/home/kevg/.emacs.d/elpa/dash-20180910.1856/’

I have almost no experience with emacs-list so I barely can give you more info. But I hope log will be fine for you to understand what's wrong.

Please ask me if you need some help.

@yyoncho
Copy link
Member

yyoncho commented Dec 6, 2018

Most of the errors were related to the fact that dash was updated after lsp thus lsp-mode was compiled against old incompatible version of dash. The other set of errors will disappear when we delete the legacy lsp-mode.el

@kevgs
Copy link
Author

kevgs commented Dec 6, 2018

Thank for your answer!

Most of the errors were related to the fact that dash was updated after lsp thus lsp-mode was compiled against old incompatible version of dash.

Was it my fault of some MELPA bug?

The other set of errors will disappear when we delete the legacy lsp-mode.el

Great! I've thought that you might already know about my issue. Now I know for sure this will be fixed and will close this issue.

@kevgs kevgs closed this as completed Dec 6, 2018
@yyoncho
Copy link
Member

yyoncho commented Dec 6, 2018

Was it my fault of some MELPA bug?

It is coincidence - if you do clean install you wont see most of the errors/warnings.

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