neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

error when starting python MLSP: error: Uncaught exception: Error: spawn /.../languageServer.0.5.45/Microsoft.Python.LanguageServer ENOENT #189

Open RonanMacF opened 4 years ago

RonanMacF commented 4 years ago

Result from CocInfo

versions

vim version: NVIM v0.4.3 node version: v12.16.2 coc.nvim version: 0.0.78-9febe802b3 term: screen platform: linux

Output channel: Python

Starting Microsoft Python language server. [Error - 11:00:05] Starting client failed: Error: Launching server using command /home/ronan/dotfilesrepo/vim/.config/coc/extensions/coc-python-data/languageServer.0.5.45/Microsoft.Python.LanguageServer failed. at LanguageClient.createMessageTransports (/home/ronan/dotfiles-repo/vim/.vim/plugged/coc.nvim/build/index.js:55043:23)

Describe the bug

Open up any python file and the following errors appear.

 2020-04-24T11:06:46.130 ERROR (pid:25714) [server] - uncaughtException Error: spawn /home/ronan/dotfiles-repo/vim/.config/coc/extensions/coc-python-data/languageServer.0.5.45/Microsoft.Python.LanguageServer ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
      at onErrorNT (internal/child_process.js:469:16)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)
  2020-04-24T11:06:46.131 ERROR (pid:25714) [server] - unhandledRejection  Promise {
    <rejected> Error: Launching server using command /home/ronan/dotfiles-repo/vim/.config/coc/extensions/coc-python-data/languageServer.0.5.45/Microsoft.Python.LanguageServer failed.
        at LanguageClient.createMessageTransports (/home/ronan/dotfiles-repo/vim/.vim/plugged/coc.nvim/build/index.js:55043:23)
  } Error: Launching server using command /home/ronan/dotfiles-repo/vim/.config/coc/extensions/coc-python-data/languageServer.0.5.45/Microsoft.Python.LanguageServer failed.
      at LanguageClient.createMessageTransports (/home/ronan/dotfiles-repo/vim/.vim/plugged/coc.nvim/build/index.js:55043:23)

Reproduce the bug

using mini.vim below and running nvim -u mini.vim test.py it immediately throws an error.

  set nocompatible
    set runtimepath^=/home/ronan/dotfiles-repo/vim/.vim/plugged/coc.nvim
    filetype plugin indent on
    syntax on
    set hidden

made as per above

If applicable, add screenshots to help explain your problem.

Steps taken:

chemzqm commented 4 years ago

MPLS failed to get start, but I don't know the reason

RonanMacF commented 4 years ago

Have found the issue. I am running in a 32bit environment and using nix to run neovim in 64bit. I see the Language server is dynamically linked 64 bit which would explain. ANy idea of a workaround? I see only palantir language server is on nix and would prefer to use microsoft