tjdevries / nlua.nvim

Lua Development for Neovim
MIT License
262 stars 21 forks source link

Error while calling lua chunk: Failed to spawn process #27

Closed wilkinson4 closed 3 years ago

wilkinson4 commented 3 years ago

I am getting the following error when trying to run :luafile ./scripts/download_sumneko.lua

E5113: Error while calling lua chunk: .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:399: Failed to spawn process: {
  _additional_on_exit_callbacks = {},
  _raw_cwd = "/Users/wwilkinson/.cache/nvim/nlua/sumneko_lua/lua-language-server/",
  _shutdown_check = <userdata 1>,
  _stderr_results = {},
  _stdout_results = {},
  _user_on_stdout = <function 1>,
  args = { "submodule", "update", "--init", "--recursive" },
  command = "git",
  enable_handlers = true,
  enable_recording = true,
  interactive = true,
  pid = "ENOENT: no such file or directory",
  stderr = <userdata 2>,
  stdin = <userdata 3>,
  stdout = <userdata 4>,
  user_data = {},
  <metatable> = <1>{
    __index = <table 1>,
    _create_uv_options = <function 2>,
    _execute = <function 3>,
    _pipes_are_closed = <function 4>,
    _prepare_pipes = <function 5>,
    _reset = <function 6>,
    _shutdown = <function 7>,
    _stop = <function 8>,
    add_on_exit_callback = <function 9>,
    after = <function 10>,
    after_failure = <function 11>,
    after_success = <function 12>,
    and_then = <function 13>,
    and_then_on_failure = <function 14>,
    and_then_on_failure_wrap = <function 15>,
    and_then_on_success = <function 16>,
    and_then_on_success_wrap = <function 17>,
    and_then_wrap = <function 18>,
    chain = <function 19>,
    chain_status = <function 20>,
    co_wait = <function 21>,
    is_job = <function 22>,
    join = <function 23>,
    new = <function 24>,
    pid = <function 25>,
    result = <function 26>,
    send = <function 27>,
    shutdown = <function 28>,
    start = <function 29>,
    stderr_result = <function 30>,
    sync = <function 31>,
    wait = <function 32>
  }
}
stack traceback:
        .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:399: in function '_execute'
        .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:442: in function 'start'
        .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:446: in function 'sync'
        scripts/download_sumneko.lua:27: in function 'run'
        scripts/download_sumneko.lua:46: in function 'download'
        scripts/download_sumneko.lua:67: in main chunk

Here is my plugins.lua file

return require('packer').startup(function()
  -- Packer can manage itself
  use 'wbthomason/packer.nvim'
  --Telescope
  use {'nvim-lua/plenary.nvim'}
  use {'nvim-lua/popup.nvim'}
  use {'nvim-telescope/telescope.nvim'}
  use {
      'nvim-telescope/telescope-frecency.nvim',
      requires = {'tami5/sql.nvim'},
      config = function()
          require('telescope').load_extension('frecency')
      end
  }
  use {'nvim-telescope/telescope-symbols.nvim'}
  use {'nvim-telescope/telescope-github.nvim'}
  -- Lua config
  use { 'neovim/nvim-lspconfig' }
  -- Lua development
  use {'tjdevries/nlua.nvim'}
  use { 'hrsh7th/nvim-compe' }
  use { 'hrsh7th/vim-vsnip' }
  use { 'xabikos/vscode-javascript' }
  -- Better syntax
  use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
  use { 'p00f/nvim-ts-rainbow' }
end)

Any help would be greatly appreciated. Thank you!