emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.79k stars 888 forks source link

File mode specification error #1009

Closed ratnesh1729 closed 5 years ago

ratnesh1729 commented 5 years ago

Describe the bug This error happens when I open any python file.

To Reproduce Just open a python file.

Expected behavior The bug cause lsp to fail and it does not start. I am expecting lsp to start.

Which Language Server did you use Mention which server/language did you use (e. g. lsp-python, lsp-ccls, lsp-java, etc) lsp-python OS Which os do you use? ubuntu 16.04

Error callstack If there is an error please reproduce the issue with toggle-debug-on-error and after setting lsp-print-io to t, and then include the callstack and attach the content of *lsp-log* buffer.

(setq lsp-print-io t)

My first bug report to this. I am using lsp regularly. Please let me know if I am missing anything. The lsp-log is null as the lsp mode did not start.

Below is from emacs --debug-init

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-name-absolute-p(nil)
  f-absolute\?(nil)
  f-relative\?(nil)
  f-join(nil "angular.json")
  #f(compiled-function (&rest args) #<bytecode 0x18819c5>)("/home/ratneshk/monoloc-code-json-kitti/convert_json_to_kitti.py" python-mode)
  lsp--matching-clients\?(#s(lsp--client :language-id nil :add-on? t :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xe9f17d>) :test\? #f(compiled-function () #<bytecode 0xe9f195>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1a0564d> :request-handlers #<hash-table equal 0/65 0x1a0566d> :response-handlers #<hash-table eql 0/65 0x1a0568d> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1691b0d> :action-handlers #<hash-table equal 0/65 0xe4635d> :major-modes nil :activation-fn #f(compiled-function (&rest args) #<bytecode 0x18819c5>) :priority -1 :server-id angular-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil))
  -filter(lsp--matching-clients\? (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1ce75b9>) :test\? #f(compiled-function () #<bytecode 0xf4b0d5>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xf4b0e1> :request-handlers #<hash-table equal 0/65 0xf4b185> :response-handlers #<hash-table eql 0/65 0x1d820c9> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1c6e439> :action-handlers #<hash-table equal 0/65 0x1ebf7e9> :major-modes (python-mode) :activation-fn nil :priority -1 :server-id pyls :multi-root nil :initialization-options nil :library-folders-fn #f(compiled-function (workspace) #<bytecode 0x1ce73c1>) :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1ce73f5>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1f3f7c5>) :test\? #f(compiled-function () #<bytecode 0x1b64a69>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 1/65 0x1b64a75> :request-handlers #<hash-table equal 0/65 0x1e37e85> :response-handlers #<hash-table eql 0/65 0x1f3f065> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1f3f085> :action-handlers #<hash-table equal 1/65 0x1e37e65> :major-modes (rust-mode rustic-mode) :activation-fn nil :priority -1 :server-id rls :multi-root nil :initialization-options ((omitInitBuild . t) (cmdRun . t)) :library-folders-fn #f(compiled-function (workspace) #<bytecode 0x1f3e171>) :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1f3e189>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1d83691>) :test\? #f(compiled-function () #<bytecode 0x1d836a9>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1d836b5> :request-handlers #<hash-table equal 0/65 0x1d3f49d> :response-handlers #<hash-table eql 0/65 0x1d3f6cd> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1d3f6ed> :action-handlers #<hash-table equal 0/65 0x1d3f70d> :major-modes (ruby-mode enh-ruby-mode) :activation-fn nil :priority -1 :server-id ruby-ls :multi-root t :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1b64af5>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1f091f5>) :test\? #f(compiled-function () #<bytecode 0x1f0920d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1f09219> :request-handlers #<hash-table equal 0/65 0x144b3f5> :response-handlers #<hash-table eql 0/65 0x1f09239> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x19c01a1> :action-handlers #<hash-table equal 0/65 0x19c01c1> :major-modes (html-mode sgml-mode mhtml-mode web-mode) :activation-fn nil :priority -4 :server-id html-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #<bytecode 0x144b26d>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1de176d>) :test\? #f(compiled-function () #<bytecode 0x1de1781>)) :ignore-regexps nil :ignore-messages ("readFile .*? requested by Vue but content not available") :notification-handlers #<hash-table equal 0/65 0x1dd764d> :request-handlers #<hash-table equal 0/65 0x1dd766d> :response-handlers #<hash-table eql 0/65 0x1dd768d> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1eebc61> :action-handlers #<hash-table equal 0/65 0x1eebc81> :major-modes nil :activation-fn #f(compiled-function (filename mode) #<bytecode 0x14e47a1>) :priority -1 :server-id vls :multi-root t :initialization-options #f(compiled-function () #<bytecode 0x14e47c9>) :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x14e47e9>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1480759>) :test\? #f(compiled-function () #<bytecode 0x1480771>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 2/65 0x148077d> :request-handlers #<hash-table equal 0/65 0x148079d> :response-handlers #<hash-table eql 0/65 0x14807bd> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x14807dd> :action-handlers #<hash-table equal 0/65 0x18296fd> :major-modes (php-mode) :activation-fn nil :priority -1 :server-id iph :multi-root t :initialization-options #f(compiled-function () #<bytecode 0x1480625>) :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1dfb75d>) :test\? #f(compiled-function () #<bytecode 0x1dfb771>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1dfb79d> :request-handlers #<hash-table equal 0/65 0x1dfb7bd> :response-handlers #<hash-table eql 0/65 0x1fda2e9> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1ebf489> :action-handlers #<hash-table equal 1/65 0x1dfb77d> :major-modes (css-mode less-mode less-css-mode sass-mode scss-mode) :activation-fn nil :priority -1 :server-id css-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xc74aa5>) :test\? #f(compiled-function () #<bytecode 0xc75ab5>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xc74ac5> :request-handlers #<hash-table equal 0/65 0xc74d9d> :response-handlers #<hash-table eql 0/65 0xc74e41> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xc74635> :action-handlers #<hash-table equal 0/65 0xc74e61> :major-modes nil :activation-fn #f(compiled-function (file-name mode) #<bytecode 0xc7565d>) :priority 0 :server-id xmlls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0xc75675>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xc73e25>) :test\? #f(compiled-function () #<bytecode 0xc738a5>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xc738b1> :request-handlers #<hash-table equal 0/65 0xc739d9> :response-handlers #<hash-table eql 0/65 0xc739f9> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1d8dc11> :action-handlers #<hash-table equal 0/65 0xc6328d> :major-modes (go-mode) :activation-fn nil :priority 0 :server-id gopls :multi-root nil :initialization-options nil :library-folders-fn #f(compiled-function (workspace) #<bytecode 0xc73d31>) :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1eb6931>) :test\? #f(compiled-function () #<bytecode 0x1eb6949>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1eb6955> :request-handlers #<hash-table equal 0/65 0x1eb69f9> :response-handlers #<hash-table eql 0/65 0x1eb6a19> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x19aa701> :action-handlers #<hash-table equal 0/65 0x1c35321> :major-modes (go-mode) :activation-fn nil :priority -1 :server-id go-bingo :multi-root nil :initialization-options lsp-clients-go--make-init-options :library-folders-fn #f(compiled-function (workspace) #<bytecode 0x1eb68bd>) :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x19aa725>) :test\? #f(compiled-function () #<bytecode 0x1f236d1>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1f236dd> :request-handlers #<hash-table equal 0/65 0x1f23889> :response-handlers #<hash-table eql 0/65 0x2053199> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x2053471> :action-handlers #<hash-table equal 0/65 0x2053515> :major-modes (go-mode) :activation-fn nil :priority -2 :server-id go-ls :multi-root nil :initialization-options lsp-clients-go--make-init-options :library-folders-fn #f(compiled-function (workspace) #<bytecode 0x1eb68c9>) :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1e8047d>) :test\? #f(compiled-function () #<bytecode 0x1e80495>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1e804c1> :request-handlers #<hash-table equal 0/65 0x1d6be75> :response-handlers #<hash-table eql 0/65 0x1432c41> :prefix-function nil :uri-handlers #<hash-table equal 1/65 0x1e804a1> :action-handlers #<hash-table equal 0/65 0x1e804e1> :major-modes (clojure-mode clojurec-mode clojurescript-mode) :activation-fn nil :priority 0 :server-id clojure-lsp :multi-root nil :initialization-options (:dependency-scheme "jar") :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1d6e7b5>) :test\? #f(compiled-function () #<bytecode 0x1d6e7cd>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1d6e7d9> :request-handlers #<hash-table equal 0/65 0x13bb251> :response-handlers #<hash-table eql 0/65 0x1b53a79> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1b53ca9> :action-handlers #<hash-table equal 0/65 0x1b53cc9> :major-modes (dart-mode) :activation-fn nil :priority -2 :server-id dart_language_server :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1eb8475>) :test\? #f(compiled-function () #<bytecode 0x1eb8489>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1eb8495> :request-handlers #<hash-table equal 0/65 0x1eb86c5> :response-handlers #<hash-table eql 0/65 0x1eb86e5> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1f3d369> :action-handlers #<hash-table equal 0/65 0x1f55889> :major-modes (dart-mode) :activation-fn nil :priority -1 :server-id dart_analysis_server :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x19abffd>) :test\? #f(compiled-function () #<bytecode 0x19ac011>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x19ac01d> :request-handlers #<hash-table equal 0/65 0x19ac2f5> :response-handlers #<hash-table eql 0/65 0x19ac315> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1e2c655> :action-handlers #<hash-table equal 0/65 0x2036f51> :major-modes (elm-mode) :activation-fn nil :priority -1 :server-id elm-ls :multi-root nil :initialization-options lsp-clients-elm--make-init-options :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1be3229>) :test\? #f(compiled-function () #<bytecode 0x1be323d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 2/65 0x1be3249> :request-handlers #<hash-table equal 0/65 0x1a8a7fd> :response-handlers #<hash-table eql 0/65 0x1a8aad5> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1a8ab79> :action-handlers #<hash-table equal 0/65 0x1eeac4d> :major-modes (scala-mode) :activation-fn nil :priority -1 :server-id metals :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1be31bd>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1e1fdfd>) :test\? #f(compiled-function () #<bytecode 0x1e1fe15>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x1e1fe21> :request-handlers #<hash-table equal 0/65 0x1f16f09> :response-handlers #<hash-table eql 0/65 0x1f171e1> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1f17285> :action-handlers #<hash-table equal 0/65 0x13bc0c9> :major-modes (fsharp-mode) :activation-fn nil :priority 0 :server-id fsac :multi-root nil :initialization-options lsp-fsharp--make-init-options :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1da1c49>) :test\? #f(compiled-function () #<bytecode 0x1da1c5d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1da1c69> :request-handlers #<hash-table equal 0/65 0x1da1c89> :response-handlers #<hash-table eql 0/65 0x1eaf28d> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x16bfa99> :action-handlers #<hash-table equal 0/65 0x1da1ca9> :major-modes (erlang-mode) :activation-fn nil :priority -1 :server-id erlang-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1d89d4d>) :test\? #f(compiled-function () #<bytecode 0x1d89d61>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1d89d6d> :request-handlers #<hash-table equal 0/65 0x1fa6589> :response-handlers #<hash-table eql 0/65 0x1b3efe9> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1b3f2c1> :action-handlers #<hash-table equal 0/65 0x1b3f2e1> :major-modes (sh-mode) :activation-fn nil :priority -1 :server-id bash-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1e37539>) :test\? #f(compiled-function () #<bytecode 0x1e37551>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1e3755d> :request-handlers #<hash-table equal 0/65 0x1e37685> :response-handlers #<hash-table eql 0/65 0x1dc3415> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1e376a5> :action-handlers #<hash-table equal 0/65 0x1e376c5> :major-modes (groovy-mode) :activation-fn nil :priority -1 :server-id groovy-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1db058d>) :test\? #f(compiled-function () #<bytecode 0x1db05a1>)) :ignore-regexps nil :ignore-messages ("readFile .*? requested by TypeScript but content not available") :notification-handlers #<hash-table equal 0/65 0x1db05ad> :request-handlers #<hash-table equal 0/65 0x1db07dd> :response-handlers #<hash-table eql 0/65 0x1db07fd> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1db081d> :action-handlers #<hash-table equal 0/65 0x2005209> :major-modes nil :activation-fn lsp-typescript-javascript-tsx-jsx-activate-p :priority -3 :server-id jsts-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1fc1529>) :test\? #f(compiled-function () #<bytecode 0x187b5a1>)) :ignore-regexps nil :ignore-messages ("readFile .*? requested by TypeScript but content not available") :notification-handlers #<hash-table equal 0/65 0x1da317d> :request-handlers #<hash-table equal 0/65 0x1da3455> :response-handlers #<hash-table eql 0/65 0x1da34f9> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1da3519> :action-handlers #<hash-table equal 0/65 0x13ceb7d> :major-modes nil :activation-fn lsp-typescript-javascript-tsx-jsx-activate-p :priority -2 :server-id ts-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x10e8edd>) :test\? #f(compiled-function () #<bytecode 0x10e8ef5>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x10e8f01> :request-handlers #<hash-table equal 0/65 0x11264f5> :response-handlers #<hash-table eql 0/65 0x14433e5> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1443615> :action-handlers #<hash-table equal 0/65 0x1443635> :major-modes nil :activation-fn lsp-clients-flow-activate-p :priority -1 :server-id flow-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x14933a5>) :test\? #f(compiled-function () #<bytecode 0x10e8fad>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xf50cf1> :request-handlers #<hash-table equal 0/65 0xec26d9> :response-handlers #<hash-table eql 0/65 0xec2909> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xec2929> :action-handlers #<hash-table equal 0/65 0xec2949> :major-modes (php-mode) :activation-fn nil :priority -2 :server-id php-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xec2995>) :test\? #f(compiled-function () #<bytecode 0x11266a1>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xea4ac5> :request-handlers #<hash-table equal 0/65 0xea4cf5> :response-handlers #<hash-table eql 0/65 0xea4d15> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xea4d35> :action-handlers #<hash-table equal 0/65 0xe8326d> :major-modes (reason-mode caml-mode tuareg-mode) :activation-fn nil :priority -1 :server-id ocaml-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xe83299>) :test\? #f(compiled-function () #<bytecode 0xe4e2ad>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xe4e2b9> :request-handlers #<hash-table equal 0/65 0xe4e35d> :response-handlers #<hash-table eql 0/65 0x112787d> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x18278c1> :action-handlers #<hash-table equal 0/65 0x1827b99> :major-modes (c-mode c++-mode objc-mode) :activation-fn nil :priority -1 :server-id clangd :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x163dca9>) :test\? #f(compiled-function () #<bytecode 0x163dcc1>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x163dccd> :request-handlers #<hash-table equal 0/65 0x163dd71> :response-handlers #<hash-table eql 0/65 0xf3f07d> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xeb42bd> :action-handlers #<hash-table equal 0/65 0xeb4595> :major-modes (elixir-mode) :activation-fn nil :priority -1 :server-id elixir-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1827ca9>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1881ae5>) :test\? #f(compiled-function () #<bytecode 0x1881afd>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1881b09> :request-handlers #<hash-table equal 0/65 0x1881bad> :response-handlers #<hash-table eql 0/65 0x187da19> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1552c29> :action-handlers #<hash-table equal 0/65 0x1552f01> :major-modes (f90-mode fortran-mode) :activation-fn nil :priority -1 :server-id fortls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x1637561>) :test\? #f(compiled-function () #<bytecode 0x1637575>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1637581> :request-handlers #<hash-table equal 0/65 0x16376a9> :response-handlers #<hash-table eql 0/65 0x1ba0481> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x16376c9> :action-handlers #<hash-table equal 0/65 0x16376e9> :major-modes (kotlin-mode) :activation-fn nil :priority -1 :server-id kotlin-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1881949>) :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0x163770d>) :test\? #f(compiled-function () #<bytecode 0x182ef7d>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 2/65 0x182ef89> :request-handlers #<hash-table equal 1/65 0x182f1b9> :response-handlers #<hash-table eql 0/65 0x182f1d9> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x182f1f9> :action-handlers #<hash-table equal 0/65 0x199867d> :major-modes (hack-mode) :activation-fn nil :priority -1 :server-id hack :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xf5d21d>) :test\? #f(compiled-function () #<bytecode 0xf5d231>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0xf5d23d> :request-handlers #<hash-table equal 0/65 0xf5d515> :response-handlers #<hash-table eql 0/65 0xe66bdd> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0xe9eed5> :action-handlers #<hash-table equal 0/65 0xe9f105> :major-modes (dockerfile-mode) :activation-fn nil :priority -1 :server-id dockerfile-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil) #s(lsp--client :language-id nil :add-on? t :new-connection (:connect #f(compiled-function (filter sentinel name) #<bytecode 0xe9f17d>) :test\? #f(compiled-function () #<bytecode 0xe9f195>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 0/65 0x1a0564d> :request-handlers #<hash-table equal 0/65 0x1a0566d> :response-handlers #<hash-table eql 0/65 0x1a0568d> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1691b0d> :action-handlers #<hash-table equal 0/65 0xe4635d> :major-modes nil :activation-fn #f(compiled-function (&rest args) #<bytecode 0x18819c5>) :priority -1 :server-id angular-ls :multi-root nil :initialization-options nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn nil :remote? nil :completion-in-comments? nil :path->uri-fn nil :uri->path-fn nil)))
  lsp--find-clients()
  lsp--try-project-root-workspaces(nil nil)
  lsp()
  run-hooks(change-major-mode-after-body-hook prog-mode-hook python-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook python-mode-hook))
  run-mode-hooks(python-mode-hook)
  python-mode()
  set-auto-mode-0(python-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer convert_json_to_kitti.py> "~/monoloc-code-json-kitti/convert_json_to_kitti.py" nil nil "~/monoloc-code-json-kitti/convert_json_to_kitti.py" (40377348 2066))
  find-file-noselect("/home/ratneshk/monoloc-code-json-kitti/convert_json_to_kitti.py")
  #f(compiled-function (displayable-buffers dir line column name) #<bytecode 0x25f737>)((nil) "~/monoloc-code-json-kitti/" (0) (0) "convert_json_to_kitti.py")
  command-line-1(("convert_json_to_kitti.py"))
  command-line()
  normal-top-level()
yyoncho commented 5 years ago

workaround for the issue until melpa kicks in:

(with-eval-after-load 'lsp-clients
  (remhash 'angular-ls lsp-clients))
groundflyer commented 5 years ago

I have similar problem after an update and the workaround doesn't help: File mode specification error: (void-function lsp-define-stdio-client)

yyoncho commented 5 years ago

lsp-define-stdio-client

Find which package is using this function and delete it/update it. This function was removed 1 year ago. Also, you may try to delete all .elc files in your .emacs.d directory.

groundflyer commented 5 years ago

It helped. Thanks.