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: "pyls-all",["executing job failed: Permission denied",""]] #352

Open
thamaraiselvam opened this issue Dec 15, 2020 · 3 comments
Open

Comments

@thamaraiselvam
Copy link

thamaraiselvam commented Dec 15, 2020

After installed pyls it is not getting started. whenever I do vim main.py got this error on vim

"main.py" 2L, 30C
Error detected while processing function lsp#enable[22]..<SNR>63_register_events[17]..<SNR>63_on_text_document_did_open[12]..<SNR>63_ensure_flush[1
]..lsp#utils#step#start[1]..<SNR>116_next[9]..<lambda>17[1]..<SNR>63_ensure_start[47]..<SNR>116_callback[1]..<SNR>116_next[9]..<lambda>18[1]..<SNR>
63_ensure_init[52]..<SNR>63_send_request[7]..lsp#client#send_request[1]..<SNR>117_lsp_send[36]..lsp#utils#job#send[2]..<SNR>118_job_send:
line   18:
E631: ch_sendraw(): write failed
Press ENTER or type command to continue

And following error in lsp-log

Tue Dec 15 08:32:26 2020:["s:send_event_queue()"]
Tue Dec 15 08:32:26 2020:["Starting server","pyls-all",["/Users/thamaraiselvam/.local/share/vim-lsp-settings/servers/pyls-all/"]]
Tue Dec 15 08:32:26 2020:[{"response":{"data":{"__data__":"vim-lsp","lsp_id":2,"server_name":"pyls-all"},"message":"started lsp server successfully"}}]
Tue Dec 15 08:32:26 2020:[{"response":{"data":{"__data__":"vim-lsp","server_name":"pyls-all"},"message":"waiting for lsp server to initialize"}}]
Tue Dec 15 08:32:26 2020:["<---(stderr)",2,"pyls-all",["executing job failed: Permission denied",""]]
Tue Dec 15 08:32:26 2020:["s:on_exit",2,"pyls-all","exited",122]
Tue Dec 15 08:32:28 2020:["s:on_text_document_did_save()",1]
Tue Dec 15 08:32:28 2020:["Starting server","pyls-all",["/Users/thamaraiselvam/.local/share/vim-lsp-settings/servers/pyls-all/"]]
Tue Dec 15 08:32:28 2020:[{"response":{"data":{"__data__":"vim-lsp","lsp_id":3,"server_name":"pyls-all"},"message":"started lsp server successfully"}}]
Tue Dec 15 08:32:28 2020:[{"response":{"data":{"__data__":"vim-lsp","server_name":"pyls-all"},"message":"waiting for lsp server to initialize"}}]
Tue Dec 15 08:32:28 2020:["s:on_text_document_did_close()",1]
Tue Dec 15 08:32:30 2020:["lsp#register_server","server registered","pyls"]
Tue Dec 15 08:32:30 2020:["lsp#register_server","server already registered","pyls"]
Tue Dec 15 08:32:30 2020:["lsp#register_server","server registered","pyls"]
Tue Dec 15 08:32:30 2020:["lsp#register_server","server registered","pyls-all"]
Tue Dec 15 08:32:30 2020:["lsp#register_server","server already registered","pyls"]
Tue Dec 15 08:32:30 2020:["lsp#register_server","server registered","pyls"]
Tue Dec 15 08:32:30 2020:["vim-lsp signs enabled"]
Tue Dec 15 08:32:30 2020:["vim-lsp highlighting enabled (textprop)"]
Tue Dec 15 08:32:30 2020:["s:on_text_document_did_open()",1,"python","/Users/thamaraiselvam/Documents/python","file:///Users/thamaraiselvam/Documents/python/main.py"]
Tue Dec 15 08:32:30 2020:["Starting server","pyls-all",["/Users/thamaraiselvam/.local/share/vim-lsp-settings/servers/pyls-all/"]]
Tue Dec 15 08:32:30 2020:[{"response":{"data":{"__data__":"vim-lsp","lsp_id":1,"server_name":"pyls-all"},"message":"started lsp server successfully"}}]
Tue Dec 15 08:32:30 2020:["--->",1,"pyls-all",{"method":"initialize","params":{"rootUri":"file:///Users/thamaraiselvam/Documents/python","initializationOptions":null,"capabilities":{"workspace":{"configuration":true,"applyEdit":true},"textDocument":{"implementation":{"linkSupport":true},"documentSymbol":{"symbolKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},"hierarchicalDocumentSymbolSupport":false},"semanticHighlightingCapabilities":{"semanticHighlighting":false},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":false},"completion":{"completionItem":{"snippetSupport":false,"documentationFormat":["plaintext"]},"completionItemKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},"foldingRange":{"lineFoldingOnly":true},"typeDefinition":{"linkSupport":true},"typeHierarchy":false,"declaration":{"linkSupport":true},"definition":{"linkSupport":true}}},"rootPath":"/Users/thamaraiselvam/Documents/python","processId":4322,"trace":"off"}}]
Tue Dec 15 08:32:30 2020:["<---(stderr)",1,"pyls-all",["executing job failed: Permission denied",""]]
Tue Dec 15 08:32:30 2020:["s:on_exit",1,"pyls-all","exited",122]

I also tried giving executable permission but still same error.

but if I run that binary directly then there is no error

bash-5.1$ pwd
/Users/thamaraiselvam/.local/share/vim-lsp-settings/servers/pyls-all
bash-5.1$ ./pyls-all -h
usage: pyls-all [-h] [--tcp] [--host HOST] [--port PORT] [--check-parent-process] [--log-config LOG_CONFIG | --log-file LOG_FILE] [-v]

Python Language Server

optional arguments:
  -h, --help            show this help message and exit
  --tcp                 Use TCP server instead of stdio
  --host HOST           Bind to this address
  --port PORT           Bind to this port
  --check-parent-process
                        Check whether parent process is still alive using os.kill(ppid, 0) and auto shut down language server process when parent
                        process is not alive.Note that this may not work on a Windows machine.
  --log-config LOG_CONFIG
                        Path to a JSON file containing Python logging config.
  --log-file LOG_FILE   Redirect logs to the given file instead of writing to stderr.Has no effect if used with --log-config.
  -v, --verbose         Increase verbosity of log output, overrides log config file
bash-5.1$
@idbrii
Copy link
Contributor

idbrii commented Dec 17, 2020

Running with -h shows the executable can run, but not that it can operate on your python code.

Did you try running /Users/thamaraiselvam/.local/share/vim-lsp-settings/servers/pyls-all/pyls-all --verbose from within your python project? does it stay running or terminate immediately?

May be worth checking if pyls-ms works?

@thamaraiselvam
Copy link
Author

No error in running pyls-all
Screenshot 2020-12-21 at 11 03 07 AM
and where can I find pyls-ms ?

@idbrii
Copy link
Contributor

idbrii commented Jul 4, 2022

pyls is abandoned. pyls-ms is archived. Use :LspInstallServer pylsp-all instead (note the additional p).

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