emacs-lsp / lsp-metals

lsp-mode :heart: metals
https://emacs-lsp.github.io/lsp-metals
GNU General Public License v3.0
58 stars 34 forks source link

(wrong-number-of-arguments (1 . 1) 2) #3

Closed thinkiny closed 4 years ago

thinkiny commented 4 years ago

Here is backstrace:

Debugger entered--Lisp error: (wrong-number-of-arguments (1 . 1) 2) lsp-metals--model-refresh(#s(lsp--workspace :ewoc nil :server-capabilities #<hash-table equal 18/18 0x1ff84c028bcd> :registered-server-capabilities (#s(lsp--registered-capability :id "1" :method "workspace/didChangeWatchedFiles" :options #<hash-table equal 1/1 0x1ff84c02a88d>)) :root "/Users/aaron/work/bike-guard" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #<bytecode 0x1ff84badd11d>) :test\? #f(compiled-function () #<bytecode 0x1ff84badd135>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 5/65 0x1ff84badd141> :request-handlers #<hash-table equal 0/65 0x1ff84badd3d1> :response-handlers #<hash-table eql 0/65 0x1ff84badda35> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1ff84baddd2d> :action-handlers #<hash-table equal 2/65 0x1ff84badd371> :major-modes (scala-mode) :activation-fn nil :priority -1 :server-id metals :multi-root nil :initialization-options ((decorationProvider . t) (didFocusProvider . t) (executeClientCommandProvider . t) (doctorProvider . "html") (statusBarProvider . "on") (debuggingProvider . t) (treeViewProvider . t)) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1ff84badd069>) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn #f(compiled-function () #<bytecode 0x1ff84badd081>) :async-request-handlers #<hash-table equal 0/65 0x1ff84baddf5d> :download-server-fn nil :download-in-progress? nil :buffers nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :semantic-highlighting-modifier-faces nil :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 1/65 0x1ff84bf62855> :watches #<hash-table equal 0/65 0x1ff84bf62b2d> :workspace-folders nil :last-id 0 :status-string #("Compiling root " 0 17 (help-echo nil local-map nil)) :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x1ff84bf62b4d> :work-done-tokens #<hash-table equal 0/65 0x1ff84bf62f41>) nil) apply(lsp-metals--model-refresh (#s(lsp--workspace :ewoc nil :server-capabilities #<hash-table equal 18/18 0x1ff84c028bcd> :registered-server-capabilities (#s(lsp--registered-capability :id "1" :method "workspace/didChangeWatchedFiles" :options #<hash-table equal 1/1 0x1ff84c02a88d>)) :root "/Users/aaron/work/bike-guard" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #<bytecode 0x1ff84badd11d>) :test\? #f(compiled-function () #<bytecode 0x1ff84badd135>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 5/65 0x1ff84badd141> :request-handlers #<hash-table equal 0/65 0x1ff84badd3d1> :response-handlers #<hash-table eql 0/65 0x1ff84badda35> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1ff84baddd2d> :action-handlers #<hash-table equal 2/65 0x1ff84badd371> :major-modes (scala-mode) :activation-fn nil :priority -1 :server-id metals :multi-root nil :initialization-options ((decorationProvider . t) (didFocusProvider . t) (executeClientCommandProvider . t) (doctorProvider . "html") (statusBarProvider . "on") (debuggingProvider . t) (treeViewProvider . t)) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1ff84badd069>) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn #f(compiled-function () #<bytecode 0x1ff84badd081>) :async-request-handlers #<hash-table equal 0/65 0x1ff84baddf5d> :download-server-fn nil :download-in-progress? nil :buffers nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :semantic-highlighting-modifier-faces nil :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 1/65 0x1ff84bf62855> :watches #<hash-table equal 0/65 0x1ff84bf62b2d> :workspace-folders nil :last-id 0 :status-string #("Compiling root " 0 17 (help-echo nil local-map nil)) :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x1ff84bf62b4d> :work-done-tokens #<hash-table equal 0/65 0x1ff84bf62f41>) nil)) lsp-metals--execute-client-command(#s(lsp--workspace :ewoc nil :server-capabilities #<hash-table equal 18/18 0x1ff84c028bcd> :registered-server-capabilities (#s(lsp--registered-capability :id "1" :method "workspace/didChangeWatchedFiles" :options #<hash-table equal 1/1 0x1ff84c02a88d>)) :root "/Users/aaron/work/bike-guard" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #<bytecode 0x1ff84badd11d>) :test\? #f(compiled-function () #<bytecode 0x1ff84badd135>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 5/65 0x1ff84badd141> :request-handlers #<hash-table equal 0/65 0x1ff84badd3d1> :response-handlers #<hash-table eql 0/65 0x1ff84badda35> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1ff84baddd2d> :action-handlers #<hash-table equal 2/65 0x1ff84badd371> :major-modes (scala-mode) :activation-fn nil :priority -1 :server-id metals :multi-root nil :initialization-options ((decorationProvider . t) (didFocusProvider . t) (executeClientCommandProvider . t) (doctorProvider . "html") (statusBarProvider . "on") (debuggingProvider . t) (treeViewProvider . t)) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1ff84badd069>) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn #f(compiled-function () #<bytecode 0x1ff84badd081>) :async-request-handlers #<hash-table equal 0/65 0x1ff84baddf5d> :download-server-fn nil :download-in-progress? nil :buffers nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :semantic-highlighting-modifier-faces nil :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 1/65 0x1ff84bf62855> :watches #<hash-table equal 0/65 0x1ff84bf62b2d> :workspace-folders nil :last-id 0 :status-string #("Compiling root " 0 17 (help-echo nil local-map nil)) :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x1ff84bf62b4d> :work-done-tokens #<hash-table equal 0/65 0x1ff84bf62f41>) #<hash-table equal 2/2 0x1ff84bfcd6ed>) lsp--on-notification(#s(lsp--workspace :ewoc nil :server-capabilities #<hash-table equal 18/18 0x1ff84c028bcd> :registered-server-capabilities (#s(lsp--registered-capability :id "1" :method "workspace/didChangeWatchedFiles" :options #<hash-table equal 1/1 0x1ff84c02a88d>)) :root "/Users/aaron/work/bike-guard" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #<bytecode 0x1ff84badd11d>) :test\? #f(compiled-function () #<bytecode 0x1ff84badd135>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 5/65 0x1ff84badd141> :request-handlers #<hash-table equal 0/65 0x1ff84badd3d1> :response-handlers #<hash-table eql 0/65 0x1ff84badda35> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1ff84baddd2d> :action-handlers #<hash-table equal 2/65 0x1ff84badd371> :major-modes (scala-mode) :activation-fn nil :priority -1 :server-id metals :multi-root nil :initialization-options ((decorationProvider . t) (didFocusProvider . t) (executeClientCommandProvider . t) (doctorProvider . "html") (statusBarProvider . "on") (debuggingProvider . t) (treeViewProvider . t)) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1ff84badd069>) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn #f(compiled-function () #<bytecode 0x1ff84badd081>) :async-request-handlers #<hash-table equal 0/65 0x1ff84baddf5d> :download-server-fn nil :download-in-progress? nil :buffers nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :semantic-highlighting-modifier-faces nil :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 1/65 0x1ff84bf62855> :watches #<hash-table equal 0/65 0x1ff84bf62b2d> :workspace-folders nil :last-id 0 :status-string #("Compiling root " 0 17 (help-echo nil local-map nil)) :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x1ff84bf62b4d> :work-done-tokens #<hash-table equal 0/65 0x1ff84bf62f41>) #<hash-table equal 3/3 0x1ff84bfcd695>) lsp--parser-on-message(#<hash-table equal 3/3 0x1ff84bfcd695> #s(lsp--workspace :ewoc nil :server-capabilities #<hash-table equal 18/18 0x1ff84c028bcd> :registered-server-capabilities (#s(lsp--registered-capability :id "1" :method "workspace/didChangeWatchedFiles" :options #<hash-table equal 1/1 0x1ff84c02a88d>)) :root "/Users/aaron/work/bike-guard" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #<bytecode 0x1ff84badd11d>) :test\? #f(compiled-function () #<bytecode 0x1ff84badd135>)) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 5/65 0x1ff84badd141> :request-handlers #<hash-table equal 0/65 0x1ff84badd3d1> :response-handlers #<hash-table eql 0/65 0x1ff84badda35> :prefix-function nil :uri-handlers #<hash-table equal 0/65 0x1ff84baddd2d> :action-handlers #<hash-table equal 2/65 0x1ff84badd371> :major-modes (scala-mode) :activation-fn nil :priority -1 :server-id metals :multi-root nil :initialization-options ((decorationProvider . t) (didFocusProvider . t) (executeClientCommandProvider . t) (doctorProvider . "html") (statusBarProvider . "on") (debuggingProvider . t) (treeViewProvider . t)) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (workspace) #<bytecode 0x1ff84badd069>) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn #f(compiled-function () #<bytecode 0x1ff84badd081>) :async-request-handlers #<hash-table equal 0/65 0x1ff84baddf5d> :download-server-fn nil :download-in-progress? nil :buffers nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :semantic-highlighting-modifier-faces nil :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 1/65 0x1ff84bf62855> :watches #<hash-table equal 0/65 0x1ff84bf62b2d> :workspace-folders nil :last-id 0 :status-string #("Compiling root " 0 17 (help-echo nil local-map nil)) :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x1ff84bf62b4d> :work-done-tokens #<hash-table equal 0/65 0x1ff84bf62f41>))

f(compiled-function (proc input) #<bytecode 0x1ff84bf63371>)(# "Content-Length: 120\15\n\15\n{\"jsonrpc\":\"2.0\",\"method\":\"...")

thinkiny commented 4 years ago

i downgrade metals-snapshot, it seems fixed