我用的是linux, doom emacs。之前都好好的,今天尝试了一下emacs --daemon
(具体不知道是不是直接和这个相关),过了一阵子我打开python文件发现emacs就卡在了pyright initialized successfully in folders
。我用多次C-g
后成功解除卡死,下侧显示error in process filter: Quit
。不知道到底是怎么了。过几天就要去竞赛了,急死我了,暂且先用nvim
来着。
下面lsp-log
:
Command "/home/zarkli/.nvm/versions/node/v16.8.0/bin/pyright-langserver --stdio" is present on the path.
Command "pyls" is present on the path.
Command "pylsp" is not present on the path.
Command "/home/zarkli/.nvm/versions/node/v16.8.0/bin/pyright-langserver --stdio" is present on the path.
Command "pyls" is present on the path.
Command "pylsp" is not present on the path.
Command "/home/zarkli/.nvm/versions/node/v16.8.0/bin/pyright-langserver --stdio" is present on the path.
Command "pyls" is present on the path.
Command "pylsp" is not present on the path.
Found the following clients for /home/zarkli/tmp2/2.py: (server-id pyright, priority 3), (server-id pyls, priority -2)
The following clients were selected based on priority: (server-id pyright, priority 3)
Pyright language server 1.1.169 starting
Server root directory: /home/zarkli/.nvm/versions/node/v16.8.0/lib/node_modules/pyright/dist/
Cancelling textDocument/codeAction(7) in hook post-command-hook
Cancelling textDocument/codeAction(9) in hook post-command-hook
希望大佬能高抬贵手