Closed wibed closed 1 year ago
i started over and created a clean reproduction of the error:
i am typing func for function check the popup and select the "func" option.
after the selection from the menu starts a snippet out of the full stacktrace
in the snippet i type in the function name "hello", followed by the parentheses. as first argument i intent to write out "name", but at the second char ("na") the error pops off.
in the end it looks like this:
func hello(na)
^ -->> Error pops off after typing "a"
i included a follow up request for code completion, including context, in the stacktrace and the empty response thereafter.
it seems after the return message "request cancelled" with the code "-32800" the process sourcekit-lsp only provides empty responses.
this is accredited with the following error message out of stderr
2021-07-21 02:46:22.001 sourcekit-lsp[47:a15a5700] triggerFromIncompleteCompletions with incompatible completion session; expected DocumentURI(storage: \url{file:///work/cards/service/test/Sources/test/main.swift})@29, but got DocumentURI(storage: \url{file:///work/cards/service/test/Sources/test/main.swift})@35
the full stacktrace is to be found here: https://termbin.com/0x2n
my assumption grows the responsibility relies on the client side for this behavior. here is a backtrace: https://termbin.com/5dkr
opened an issue on lsp-mode https://github.com/emacs-lsp/lsp-mode/issues/3028
i have made the experience that after opening a
.swift
file and setting the project's root dir i get successful completionbut after one interrupts the completion by keep typing an error occurs, and no more completion after that.
I suspect it is becausesourcekit-lsp
crashedswift version: 5.4.2
lsp error message:
company error message:
second lsp error message:
backtrace:
stacktrace:
after installing a missing dependency
libpython2.7
the error still persists. namely that the lsp server becomes unresponsive.and completion stops workingadditionally i tried:
swift package init
it seems the trace shows nothing but the empty response from the sourcekit-lsp server. the error messages differ only from the
DocumentURI
(which is the same for expected and for received) and the char number@1151
(which differs between expected and received).