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

error in process filter: let*: Wrong type argument: listp, "file:///f:/code/test/" error in process filter: Wrong type argument: listp, "file:///f:/code/test/" #93

Closed
zijianyue opened this issue Jan 22, 2019 · 3 comments

Comments

@zijianyue
Copy link

Describe the bug
When start lsp 6.0 with in a java file, it report below message:
error in process filter: let*: Wrong type argument: listp, "file:///f:/code/test/" error in process filter: Wrong type argument: listp, "file:///f:/code/test/"

Note
Before logging the bug please make sure that the issue is reproducible with latest melpa packages and it is reproducible with the clean config(the config from the getting started page.

To Reproduce
{populate}

Expected behavior
{populate}

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Please include the debug stack trace (if there is an error) and the content of Messages buffer with lsp-print-io set to t in case the bug is related to client->server communication.

@yyoncho
Copy link
Member

yyoncho commented Jan 22, 2019

please do toggle-debug-on-error and post the error callstack as per issue template.

@zijianyue
Copy link
Author

zijianyue commented Jan 22, 2019

Sorry, I forgot this, and I'm on MAC OS, emacs 26.1, lsp 6.0

Debugger entered--Lisp error: (wrong-type-argument listp "file:///Users/hufang/jdee-server/")
car("file:///Users/hufang/jdee-server/")
(let* ((uri (car arguments)) (data (cdr arguments))) (save-current-buffer (find-file (lsp--uri-to-path uri)) (cond ((equal command '"cquery._applyFixIt") (let ((--dolist-tail-- data)) (while --dolist-tail-- (let ((edit (car --dolist-tail--))) (cquery--apply-textedit (car edit)) (setq --dolist-tail-- (cdr --dolist-tail--)))))) ((equal command '"cquery._autoImplement") (let ((--dolist-tail-- data)) (while --dolist-tail-- (let ((edit (car --dolist-tail--))) (cquery--apply-textedit (car edit)) (setq --dolist-tail-- (cdr --dolist-tail--))))) (goto-char (lsp--position-to-point (gethash "start" (gethash "range" (car (car data))))))) ((equal command '"cquery._insertInclude") (cquery--select-textedit data "Include: ")) ((equal command '"cquery.showReferences") (xref--show-xrefs (lsp--locations-to-xref-items (car (cdr data))) nil)) (t (message "unknown command: %s" command)))))
cquery--execute-command("che.jdt.ls.extension.mavenProjects" "file:///Users/hufang/jdee-server/")
(if (cquery--is-cquery-buffer) (cquery--execute-command command args) (funcall orig-func args))
cquery--execute-command-locally-advice((closure (cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (command &optional args) "Create and send a 'workspace/executeCommand' message having command COMMAND and optional ARGS." (let ((params (if args (list :command command :arguments args) (list :command command)))) (lsp-request "workspace/executeCommand" params))) "che.jdt.ls.extension.mavenProjects" "file:///Users/hufang/jdee-server/")
apply(cquery--execute-command-locally-advice (closure (cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (command &optional args) "Create and send a 'workspace/executeCommand' message having command COMMAND and optional ARGS." (let ((params (if args (list :command command :arguments args) (list :command command)))) (lsp-request "workspace/executeCommand" params))) ("che.jdt.ls.extension.mavenProjects" "file:///Users/hufang/jdee-server/"))
lsp-send-execute-command("che.jdt.ls.extension.mavenProjects" "file:///Users/hufang/jdee-server/")
(or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it)))
(lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it))))("/Users/hufang/jdee-server/")
mapcar((lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it)))) ("/Users/hufang/jdee-server/"))
(-flatten (mapcar (function (lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it))))) (lsp-java--workspace-folders workspace)))
(-uniq (-flatten (mapcar (function (lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it))))) (lsp-java--workspace-folders workspace))))
(lsp-java--set-project-uris workspace (-uniq (-flatten (mapcar (function (lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it))))) (lsp-java--workspace-folders workspace)))))
(let ((lsp--cur-workspace workspace)) (lsp-java--set-project-uris workspace (-uniq (-flatten (mapcar (function (lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it))))) (lsp-java--workspace-folders workspace))))))
(let ((workspace (lsp-java--current-workspace-or-lose))) (let ((lsp--cur-workspace workspace)) (lsp-java--set-project-uris workspace (-uniq (-flatten (mapcar (function (lambda (it) (or (lsp-send-execute-command "che.jdt.ls.extension.mavenProjects" (lsp--path-to-uri it)) (lsp--path-to-uri (file-name-as-directory it))))) (lsp-java--workspace-folders workspace)))))))
lsp-java-update-project-uris()
(let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))
(lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris)))(#s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #1) :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>))
funcall((lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) #s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #1) :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>))
(if initialize-fn (funcall initialize-fn workspace) nil)
(let* ((initialize-fn (and t (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 21))))) (if initialize-fn (funcall initialize-fn workspace) nil))
(closure ((cmd-proc . #) (proc . #) (--dash-source-53-- . #) (workspace . #s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #3) :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>)) (client . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (initialization-options :settings ((java (jdt (ls (vmargs . "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication"))) (errors (incompleteClasspath (severity . warning))) (configuration (updateBuildConfiguration . automatic) (maven)) (trace (server . off)) (import (gradle (enabled . t)) (maven (enabled . t)) (exclusions "/node_modules/" "/.metadata/" "/archetype-resources/" "/META-INF/maven/")) (referencesCodeLens (enabled . t)) (progressReports (enabled . t)) (signatureHelp (enabled . t)) (implementationsCodeLens (enabled . t)) (format (enabled . t) (settings (profile) (url)) (comments (enabled . :json-false))) (saveActions (organizeImports . t)) (contentProvider) (autobuild (enabled . t)) (completion (favoriteStaticMembers "org.junit.Assert." "org.junit.Assume." "org.junit.jupiter.api.Assertions." "org.junit.jupiter.api.Assumptions." "org.junit.jupiter.api.DynamicContainer." "org.junit.jupiter.api.DynamicTest.") (importOrder "java" "javax" "com" "org") (guessMethodArguments)))) :extendedClientCapabilities (:progressReportProvider t :classFileContentsSupport t) :bundles nil :workspaceFolders ("file:///Users/hufang/jdee-server/" "file:///Users/hufang/jdee-server/")) (root . "/Users/hufang/jdee-server/") (client-template . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (session . #s(lsp-session :folders ("/Users/hufang/jdee-server/") :folders-blacklist nil :server-id->folders #<hash-table equal 1/65 0x458b6eb1> :folder->servers #<hash-table equal 1/65 0x458b7189> :metadata #<hash-table equal 1/65 0x458b722d>)) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (response) (if response nil (lsp--spinner-stop) (signal 'lsp-empty-response-error (list "initialize"))) (progn (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 3 (gethash "capabilities" response)))) (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 13 'initialized)))) (let ((lsp--cur-workspace workspace)) (lsp-notify "initialized" (make-hash-table))) (let ((list (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (aref workspace 10))) (it-index 0)) (while list (let ((it (car list))) (save-current-buffer (set-buffer it) (lsp--open-in-workspace workspace))) (setq it-index (1+ it-index)) (setq list (cdr list)))) (let* ((initialize-fn (and t (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 21))))) (if initialize-fn (funcall initialize-fn workspace) nil)))(#<hash-table equal 1/65 0x4575bb9d>)
funcall((closure ((cmd-proc . #) (proc . #) (--dash-source-53-- . #) (workspace . #s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #4) :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>)) (client . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (initialization-options :settings ((java (jdt (ls (vmargs . "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication"))) (errors (incompleteClasspath (severity . warning))) (configuration (updateBuildConfiguration . automatic) (maven)) (trace (server . off)) (import (gradle (enabled . t)) (maven (enabled . t)) (exclusions "/node_modules/" "/.metadata/" "/archetype-resources/" "/META-INF/maven/")) (referencesCodeLens (enabled . t)) (progressReports (enabled . t)) (signatureHelp (enabled . t)) (implementationsCodeLens (enabled . t)) (format (enabled . t) (settings (profile) (url)) (comments (enabled . :json-false))) (saveActions (organizeImports . t)) (contentProvider) (autobuild (enabled . t)) (completion (favoriteStaticMembers "org.junit.Assert." "org.junit.Assume." "org.junit.jupiter.api.Assertions." "org.junit.jupiter.api.Assumptions." "org.junit.jupiter.api.DynamicContainer." "org.junit.jupiter.api.DynamicTest.") (importOrder "java" "javax" "com" "org") (guessMethodArguments)))) :extendedClientCapabilities (:progressReportProvider t :classFileContentsSupport t) :bundles nil :workspaceFolders ("file:///Users/hufang/jdee-server/" "file:///Users/hufang/jdee-server/")) (root . "/Users/hufang/jdee-server/") (client-template . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (session . #s(lsp-session :folders ("/Users/hufang/jdee-server/") :folders-blacklist nil :server-id->folders #<hash-table equal 1/65 0x458b6eb1> :folder->servers #<hash-table equal 1/65 0x458b7189> :metadata #<hash-table equal 1/65 0x458b722d>)) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (response) (if response nil (lsp--spinner-stop) (signal 'lsp-empty-response-error (list "initialize"))) (progn (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 3 (gethash "capabilities" response)))) (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 13 'initialized)))) (let ((lsp--cur-workspace workspace)) (lsp-notify "initialized" (make-hash-table))) (let ((list (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (aref workspace 10))) (it-index 0)) (while list (let ((it (car list))) (save-current-buffer (set-buffer it) (lsp--open-in-workspace workspace))) (setq it-index (1+ it-index)) (setq list (cdr list)))) (let* ((initialize-fn (and t (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 21))))) (if initialize-fn (funcall initialize-fn workspace) nil))) #<hash-table equal 1/65 0x4575bb9d>)
(progn (funcall callback (lsp--merge-results results method)))
(if (and (eq (length results) count)) (progn (funcall callback (lsp--merge-results results method))))
(closure ((results #<hash-table equal 1/65 0x4575bb9d>) (buf . #) (method . "initialize") (mode . detached) (callback closure ((cmd-proc . #) (proc . #) (--dash-source-53-- . #) (workspace . #s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #5) :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>)) (client . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (initialization-options :settings ((java (jdt (ls (vmargs . "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication"))) (errors (incompleteClasspath (severity . warning))) (configuration (updateBuildConfiguration . automatic) (maven)) (trace (server . off)) (import (gradle (enabled . t)) (maven (enabled . t)) (exclusions "/node_modules/" "/.metadata/" "/archetype-resources/" "/META-INF/maven/")) (referencesCodeLens (enabled . t)) (progressReports (enabled . t)) (signatureHelp (enabled . t)) (implementationsCodeLens (enabled . t)) (format (enabled . t) (settings (profile) (url)) (comments (enabled . :json-false))) (saveActions (organizeImports . t)) (contentProvider) (autobuild (enabled . t)) (completion (favoriteStaticMembers "org.junit.Assert." "org.junit.Assume." "org.junit.jupiter.api.Assertions." "org.junit.jupiter.api.Assumptions." "org.junit.jupiter.api.DynamicContainer." "org.junit.jupiter.api.DynamicTest.") (importOrder "java" "javax" "com" "org") (guessMethodArguments)))) :extendedClientCapabilities (:progressReportProvider t :classFileContentsSupport t) :bundles nil :workspaceFolders ("file:///Users/hufang/jdee-server/" "file:///Users/hufang/jdee-server/")) (root . "/Users/hufang/jdee-server/") (client-template . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (session . #s(lsp-session :folders ("/Users/hufang/jdee-server/") :folders-blacklist nil :server-id->folders #<hash-table equal 1/65 0x458b6eb1> :folder->servers #<hash-table equal 1/65 0x458b7189> :metadata #<hash-table equal 1/65 0x458b722d>)) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (response) (if response nil (lsp--spinner-stop) (signal 'lsp-empty-response-error (list "initialize"))) (progn (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 3 (gethash "capabilities" response)))) (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 13 'initialized)))) (let ((lsp--cur-workspace workspace)) (lsp-notify "initialized" (make-hash-table))) (let ((list (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (aref workspace 10))) (it-index 0)) (while list (let ((it (car list))) (save-current-buffer (set-buffer it) (lsp--open-in-workspace workspace))) (setq it-index (1+ it-index)) (setq list (cdr list)))) (let* ((initialize-fn (and t (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 21))))) (if initialize-fn (funcall initialize-fn workspace) nil))) (count . 1) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (result) (setq results (cons result results)) (if (and (eq (length results) count)) (progn (funcall callback (lsp--merge-results results method)))))(#<hash-table equal 1/65 0x4575bb9d>)
funcall((closure ((results #<hash-table equal 1/65 0x4575bb9d>) (buf . #) (method . "initialize") (mode . detached) (callback closure ((cmd-proc . #) (proc . #) (--dash-source-53-- . #) (workspace . #s(lsp--workspace :parser #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #6) :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>)) (client . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (initialization-options :settings ((java (jdt (ls (vmargs . "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication"))) (errors (incompleteClasspath (severity . warning))) (configuration (updateBuildConfiguration . automatic) (maven)) (trace (server . off)) (import (gradle (enabled . t)) (maven (enabled . t)) (exclusions "/node_modules/" "/.metadata/" "/archetype-resources/" "/META-INF/maven/")) (referencesCodeLens (enabled . t)) (progressReports (enabled . t)) (signatureHelp (enabled . t)) (implementationsCodeLens (enabled . t)) (format (enabled . t) (settings (profile) (url)) (comments (enabled . :json-false))) (saveActions (organizeImports . t)) (contentProvider) (autobuild (enabled . t)) (completion (favoriteStaticMembers "org.junit.Assert." "org.junit.Assume." "org.junit.jupiter.api.Assertions." "org.junit.jupiter.api.Assumptions." "org.junit.jupiter.api.DynamicContainer." "org.junit.jupiter.api.DynamicTest.") (importOrder "java" "javax" "com" "org") (guessMethodArguments)))) :extendedClientCapabilities (:progressReportProvider t :classFileContentsSupport t) :bundles nil :workspaceFolders ("file:///Users/hufang/jdee-server/" "file:///Users/hufang/jdee-server/")) (root . "/Users/hufang/jdee-server/") (client-template . #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil)) (session . #s(lsp-session :folders ("/Users/hufang/jdee-server/") :folders-blacklist nil :server-id->folders #<hash-table equal 1/65 0x458b6eb1> :folder->servers #<hash-table equal 1/65 0x458b7189> :metadata #<hash-table equal 1/65 0x458b722d>)) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (response) (if response nil (lsp--spinner-stop) (signal 'lsp-empty-response-error (list "initialize"))) (progn (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 3 (gethash "capabilities" response)))) (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (let* ((v workspace)) (aset v 13 'initialized)))) (let ((lsp--cur-workspace workspace)) (lsp-notify "initialized" (make-hash-table))) (let ((list (progn (or (and (memq (type-of workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace workspace))) (aref workspace 10))) (it-index 0)) (while list (let ((it (car list))) (save-current-buffer (set-buffer it) (lsp--open-in-workspace workspace))) (setq it-index (1+ it-index)) (setq list (cdr list)))) (let* ((initialize-fn (and t (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 21))))) (if initialize-fn (funcall initialize-fn workspace) nil))) (count . 1) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (result) (setq results (cons result results)) (if (and (eq (length results) count)) (progn (funcall callback (lsp--merge-results results method))))) #<hash-table equal 1/65 0x4575bb9d>)
(progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8))))
(if callback (progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 (and json-data (gethash "result" json-data nil))))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil)))))
(let* ((callback (and t (gethash (if (stringp id) (string-to-number id) id) (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)) nil)))) (if callback (progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 (and json-data (gethash "result" json-data nil))))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))))
(cond ((eq val 'response) (progn (or id (cl--assertion-failed 'id)) nil) (let* ((callback (and t (gethash (if (stringp id) (string-to-number id) id) (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)) nil)))) (if callback (progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 (and json-data (gethash "result" json-data nil))))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))))) ((eq val 'response-error) (let* ((err (gethash "error" json-data nil)) (code (gethash "code" err nil))) (if (not (memq code lsp--silent-errors)) (progn (message (lsp--error-string err))))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))) ((eq val 'notification) (lsp--on-notification lsp--cur-workspace json-data)) ((eq val 'request) (lsp--on-request lsp--cur-workspace json-data)) (t nil))
(let* ((val (lsp--get-message-type json-data))) (cond ((eq val 'response) (progn (or id (cl--assertion-failed 'id)) nil) (let* ((callback (and t (gethash (if (stringp id) (string-to-number id) id) (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)) nil)))) (if callback (progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 (and json-data (gethash "result" json-data nil))))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))))) ((eq val 'response-error) (let* ((err (gethash "error" json-data nil)) (code (gethash "code" err nil))) (if (not (memq code lsp--silent-errors)) (progn (message (lsp--error-string err))))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))) ((eq val 'notification) (lsp--on-notification lsp--cur-workspace json-data)) ((eq val 'request) (lsp--on-request lsp--cur-workspace json-data)) (t nil)))
(let* ((client (progn (or (and (memq (type-of lsp--cur-workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace lsp--cur-workspace))) (aref lsp--cur-workspace 6))) (json-data (lsp--read-json msg (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 12)))) (id (gethash "id" json-data nil))) (let* ((val (lsp--get-message-type json-data))) (cond ((eq val 'response) (progn (or id (cl--assertion-failed 'id)) nil) (let* ((callback (and t (gethash (if (stringp id) (string-to-number id) id) (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)) nil)))) (if callback (progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 (and json-data (gethash "result" json-data nil))))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))))) ((eq val 'response-error) (let* ((err (gethash "error" json-data nil)) (code (gethash "code" err nil))) (if (not (memq code lsp--silent-errors)) (progn (message (lsp--error-string err))))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))) ((eq val 'notification) (lsp--on-notification lsp--cur-workspace json-data)) ((eq val 'request) (lsp--on-request lsp--cur-workspace json-data)) (t nil))))
(let ((lsp--cur-workspace (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11)))) (let* ((client (progn (or (and (memq (type-of lsp--cur-workspace) cl-struct-lsp--workspace-tags) t) (signal 'wrong-type-argument (list 'lsp--workspace lsp--cur-workspace))) (aref lsp--cur-workspace 6))) (json-data (lsp--read-json msg (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 12)))) (id (gethash "id" json-data nil))) (let* ((val (lsp--get-message-type json-data))) (cond ((eq val 'response) (progn (or id (cl--assertion-failed 'id)) nil) (let* ((callback (and t (gethash (if (stringp id) (string-to-number id) id) (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)) nil)))) (if callback (progn (funcall callback (gethash "result" json-data nil)) (remhash id (progn (or (and (memq (type-of client) cl-struct-lsp--client-tags) t) (signal 'wrong-type-argument (list 'lsp--client client))) (aref client 8)))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 (and json-data (gethash "result" json-data nil))))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))))) ((eq val 'response-error) (let* ((err (gethash "error" json-data nil)) (code (gethash "code" err nil))) (if (not (memq code lsp--silent-errors)) (progn (message (lsp--error-string err))))) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil))))) ((eq val 'notification) (lsp--on-notification lsp--cur-workspace json-data)) ((eq val 'request) (lsp--on-request lsp--cur-workspace json-data)) (t nil)))))
lsp--parser-on-message(#s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #s(lsp--workspace :parser #1 :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>)) "{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"willSave":true,"willSaveWaitUntil":true,"save":{"includeText":true}},"hoverProvider":true,"completionProvider":{"resolveProvider":true,"triggerCharacters":[".","@","#",""]},"signatureHelpProvider":{"triggerCharacters":["("]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeLensProvider":{"resolveProvider":true},"documentRangeFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":";","moreTriggerCharacter":["\n","}"]},"renameProvider":{"prepareProvider":true},"executeCommandProvider":{"commands":["java.edit.organizeImports","java.project.updateSourceAttachment","java.project.removeFromSourcePath","java.project.listSourcePaths","java.project.resolveSourceAttachment","java.project.addToSourcePath"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}}}}")
(let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--)))
(while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--))))
(let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--)))))
(progn (let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--))))))
(if messages (progn (let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--)))))))
(let ((messages (condition-case err (lsp--parser-read p output) (error (let ((chunk (concat (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 8)) output))) (lsp--parser-reset p) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let
((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil)))) (lsp-warn "Failed to parse the following chunk:\n'''\n%s\n'''\nwith message %s" chunk err) nil))))) (if messages (progn (let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--))))))))
(progn (let ((messages (condition-case err (lsp--parser-read p output) (error (let ((chunk (concat (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 8)) output))) (lsp--parser-reset p) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil)))) (lsp-warn "Failed to parse the following chunk:\n'''\n%s\n'''\nwith message %s" chunk err) nil))))) (if messages (progn (let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--)))))))))
(if (let* ((--cl-var-- ignore-regexps) (r nil) (--cl-var-- t) --cl-var--) (while (and (consp --cl-var--) (progn (setq r (car --cl-var--)) (if (string-match r output) (setq --cl-var-- nil --cl-var-- nil) t))) (setq --cl-var-- (cdr --cl-var--))) (if --cl-var-- (progn t) --cl-var--)) (progn (let ((messages (condition-case err (lsp--parser-read p output) (error (let ((chunk (concat (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 8)) output))) (lsp--parser-reset p) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil)))) (lsp-warn "Failed to parse the following chunk:\n'''\n%s\n'''\nwith message %s" chunk err) nil))))) (if messages (progn (let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--))))))))))
(closure ((ignore-regexps) (p . #s(lsp--parser :waiting-for-response nil :response-result nil :headers nil :body nil :reading-body nil :body-length nil :body-received nil :leftovers "" :queued-notifications nil :queued-requests nil :workspace #s(lsp--workspace :parser #3 :file-versions #<hash-table equal 1/65 0x458a34c1> :server-capabilities #<hash-table equal 17/65 0x4575c741> :registered-server-capabilities (#s(lsp--registered-capability :id "96b57cca-f6a1-48f4-96ef-f1097d1cdfcc" :method "textDocument/formatting" :options nil) #s(lsp--registered-capability :id "3ba3c8d6-a0a2-4dff-b268-ead2fea1b10d" :method "workspace/didChangeWorkspaceFolders" :options nil) #s(lsp--registered-capability :id "ebbee89a-245f-42a8-8939-3593db9787c4" :method "textDocument/codeAction" :options #<hash-table equal 1/65 0x4586e68d>)) :root "/Users/hufang/jdee-server/" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (filter sentinel name) (let ((final-command (lsp-resolve-final-function command)) (process-name (generate-new-buffer-name name))) (if (lsp-server-present? final-command) nil (error (format "Couldn't find command %s" final-command))) (let ((proc (make-process :name process-name :connection-type 'pipe :buffer (format "%s" process-name) :coding 'no-conversion :command final-command :filter filter :sentinel sentinel :stderr (format "%s::stderr" process-name) :noquery t))) (set-process-query-on-exit-flag proc nil) (cons proc proc)))) :test? (closure ((command . lsp-java--ls-command) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) nil (lsp-server-present? (lsp-resolve-final-function command)))) :ignore-regexps nil :ignore-messages nil :notification-handlers #<hash-table equal 4/65 0x4561ce9d> :request-handlers #<hash-table equal 1/65 0x456b0385> :response-handlers #<hash-table eql 1/65 0x45697c41> :prefix-function nil :uri-handlers #<hash-table equal 2/65 0x4560b539> :action-handlers #<hash-table equal 1/65 0x4587c185> :use-native-json nil :major-modes (java-mode) :activation-fn nil :priority 0 :server-id jdtls :multi-root t :initialization-options (lambda nil (list :settings (lsp-java--settings) :extendedClientCapabilities (list :progressReportProvider t :classFileContentsSupport t) :bundles (lsp-java--bundles))) :library-folders-fn (lambda (_workspace) (list lsp-java-workspace-cache-dir)) :before-file-open-fn (lambda (workspace) (let ((metadata-file-name (lsp-java--get-metadata-location buffer-file-name))) (set (make-local-variable 'lsp-buffer-uri) (if (file-exists-p metadata-file-name) (progn (let ((temp-buffer (generate-new-buffer " temp"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents metadata-file-name) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))))))) :initialized-fn (lambda (workspace) (let ((lsp--cur-workspace workspace)) (lsp-java-update-project-uris))) :remote? nil) :host-root nil :proc # :cmd-proc # :buffers (#) :highlight-overlays #<hash-table eq 0/65 0x4573fa81> :extra-client-capabilities nil :status initialized :metadata #<hash-table equal 0/65 0x4573fd59> :watches #<hash-table equal 0/65 0x4573fdfd> :workspace-folders nil :last-id 0 :status-string "::Started" :shutdown-action nil :diagnostics #<hash-table equal 0/65 0x456bb041>))) cl-struct-lsp-session-tags cl-struct-lsp--workspace-tags cl-struct-lsp--registered-capability-tags cl-struct-lsp-diagnostic-tags cl-struct-lsp--client-tags cl-struct-lsp--parser-tags t) (_proc output) (if (let* ((--cl-var-- ignore-regexps) (r nil) (--cl-var-- t) --cl-var--) (while (and (consp --cl-var--) (progn (setq r (car --cl-var--)) (if (string-match r output) (setq --cl-var-- nil --cl-var-- nil) t))) (setq --cl-var-- (cdr --cl-var--))) (if --cl-var-- (progn t) --cl-var--)) (progn (let ((messages (condition-case err (lsp--parser-read p output) (error (let ((chunk (concat (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 8)) output))) (lsp--parser-reset p) (progn (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 2 nil))) (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (let* ((v p)) (aset v 1 nil)))) (lsp-warn "Failed to parse the following chunk:\n'''\n%s\n'''\nwith message %s" chunk err) nil))))) (if messages (progn (let ((--dolist-tail-- messages)) (while --dolist-tail-- (let ((m (car --dolist-tail--))) (if lsp-print-io (progn (let ((inhibit-message t)) (lsp-message "<<<< %s\n%s" (lsp--workspace-print (progn (or (and (memq (type-of p) cl-struct-lsp--parser-tags) t) (signal 'wrong-type-argument (list 'lsp--parser p))) (aref p 11))) (lsp--json-pretty-print m))))) (lsp--parser-on-message p m) (setq --dolist-tail-- (cdr --dolist-tail--)))))))))))(# "Content-Length: 93\015\n\015\n{"jsonrpc":"2.0","method":"language/status","params":{"type":"Starting","message":"Init..."}}Content-Length: 119\015\n\015\n{"jsonrpc":"2.0","method":"language/status","params":{"type":"Starting","message":"0% Starting Java Language Server "}}Content-Length: 1079\015\n\015\n{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"willSave":true,"willSaveWaitUntil":true,"save":{"includeText":true}},"hoverProvider":true,"completionProvider":{"resolveProvider":true,"triggerCharacters":[".","@","#","*"]},"signatureHelpProvider":{"triggerCharacters":["("]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeLensProvider":{"resolveProvider":true},"documentRangeFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":";","moreTriggerCharacter":["\n","}"]},"renameProvider":{"prepareProvider":true},"executeCommandProvider":{"commands":["java.edit.organizeImports","java.project.updateSourceAttachment","java.project.removeFromSourcePath","java.project.listSourcePaths","java.project.resolveSourceAttachment","java.project.addToSourcePath"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}}}}")

@yyoncho
Copy link
Member

yyoncho commented Jan 22, 2019

Take a look here: cquery-project/emacs-cquery#68

You have several workarounds:

  1. Not loading cquery
  2. Removing the advice which cquery is putting in cquery-common.el which will break cquery.
  3. Upgrading to latest lsp-java - this will fix the initial problem but you won't be able to use some of the functionality which depends on this method.

@yyoncho yyoncho closed this as completed Jan 22, 2019
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