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

CHADtree "Failed to start server: no such file or directory" Error on opening vim #342

Open
colonel-panic-at-the-disco opened this issue Jun 20, 2023 · 1 comment

Comments

@colonel-panic-at-the-disco
Copy link

colonel-panic-at-the-disco commented Jun 20, 2023

I have run :CHADdeps.

Error detected while processing ~/.local/share/nvim/plugged/chadtree/plugin/chadtree.vim:
line   20:
E5108: Error executing lua .../.local/share/nvim/plugged/chadtree/lua/chadtree.lua:144: Vim:Failed to
start server: no such file or directory
stack traceback:
        [C]: in function 'nvim_call_function'
        ...tman/.local/share/nvim/plugged/chadtree/lua/chadtree.lua:144: in function 'Noop'
        ...tman/.local/share/nvim/plugged/chadtree/lua/chadtree.lua:207: in main chunk
        [C]: in function 'require'
        [string "luaeval()"]:1: in main chunk

Neovim healthcheck comes back clean:

===========================================
coc: health#coc#check

- OK nvim version satisfied
- OK Environment check passed
- OK Javascript bundle build/index.js found
- OK Service started

==============================================================================
nvim: require("nvim.health").check()

Configuration ~
- OK no issues found

Runtime ~
- OK $VIMRUNTIME: /usr/local/Cellar/neovim/0.9.1/share/nvim/runtime

Performance ~
- OK Build type: Release

Remote Plugins ~
- OK Up to date

terminal ~
- key_backspace (kbs) terminfo entry: `key_backspace=^H`
- key_dc (kdch1) terminfo entry: `key_dc=\E[3~`
- $TERM_PROGRAM="iTerm.app"
- $COLORTERM="truecolor"

==============================================================================
nvim-treesitter: require("nvim-treesitter.health").check()

Installation ~
- OK `tree-sitter` found 0.20.8 (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v20.3.0 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `gcc` executable found. Selected from { "gcc" }
  Version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

OS Info:
{
  machine = "x86_64",
  release = "22.5.0",
  sysname = "Darwin",
  version = "Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020"
} ~

Parser/Features         H L F I J
  - bash                ✓ ✓ ✓ .
  - c                   ✓ ✓ ✓ ✓ ✓
  - javascript          ✓ ✓ ✓ ✓ ✓
  - lua                 ✓ ✓ ✓ ✓ ✓
  - ninja               ✓ . ✓ ✓ .
  - python              ✓ ✓ ✓ ✓ ✓
  - query               ✓ ✓ ✓ ✓ ✓
  - ruby                ✓ ✓ ✓ ✓ ✓
  - rust                ✓ ✓ ✓ ✓ ✓
  - swift               ✓ ✓ ..
  - typescript          ✓ ✓ ✓ ✓ ✓
  - vim                 ✓ ✓ ✓ .
  - vimdoc              ✓ . . .

  Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang} ~

==============================================================================
provider: health#provider#check

Clipboard (optional) ~
- OK Clipboard tool found: pbcopy

Python 3 provider (optional) ~
- pyenv: Path: /usr/local/Cellar/pyenv/2.3.20/libexec/pyenv
- pyenv: Root: /usr/local/var/pyenv
- Using: g:python3_host_prog = "/usr/local/bin/python3"
- Executable: /usr/local/bin/python3
- Python version: 3.11.4
- pynvim version: 0.4.3
- OK Latest pynvim is installed.

Python virtualenv ~
- OK no $VIRTUAL_ENV

Ruby provider (optional) ~
- Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]
- Host: ~/.rvm/gems/ruby-2.5.1/bin/neovim-ruby-host
- OK Latest "neovim" gem is installed: 0.9.0

Node.js provider (optional) ~
- Node.js: v20.3.0
- Nvim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
- OK Latest "neovim" npm/yarn/pnpm package is installed: 4.10.1

Perl provider (optional) ~
- WARNING "Neovim::Ext" cpan module is not installed
  - ADVICE:
    - See :help |provider-perl| for more information.
    - You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim

==============================================================================
telescope: require("telescope.health").check()

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- OK rg: found ripgrep 13.0.0
- OK fd: found fd 8.7.0

===== Installed extensions ===== ~

==============================================================================
vim.lsp: require("vim.lsp.health").check()

- LSP log level : WARN
- Log path: ~/.local/state/nvim/lsp.log
- Log size: 6 KB

vim.lsp: Active Clients ~
- copilot (id=1, root_dir=nil)
$ nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.9.1/share/nvim"

Run :checkhealth for more info
OS: macOS 13.4 22F66 x86_64
@spiderforrest
Copy link

@colonel-panic-at-the-disco I ran into the same issue, the cause is neovim being unable to create a temporary file, it's a system issue. On a linux box, you just set the environment
variable $XDG_RUNTIME_DIR to a folder your user owns, but mac doesn't follow the XDG specification...

You can check what directory it's trying to work in with :echo stdpath('run'), there's a lot more details * possible fixes on neovim issue 20865.

Good luck.

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