ms-jpq / coq_nvim

Fast as FUCK nvim completion. SQLite, concurrent scheduler, hundreds of hours of optimization.
GNU General Public License v3.0
3.54k stars 100 forks source link

Permission denied: 'tmux' #256

Closed dorgnarg closed 3 years ago

dorgnarg commented 3 years ago

I'm having problems after setting up this plugin. If I don't modify coq_settings.clients.tmux.enabled, then every keystroke hits me with an error, Permission denied: 'tmux'. I disabled tmux in coq_settings, and it mostly solves the problem, but I'm still getting the error any time I unfocus and refocus the terminal containing the nvim process. The full error message looks like:

[Errno 13] Permission denied: 'tmux'                                                                                                                                                                                                  
Traceback (most recent call last):                                                                                                                                                                                                    
  File "/home/username/.local/share/nvim/site/pack/paqs/start/coq_nvim/.vars/runtime/lib/python3.9/site-packages/pynvim_pp/logging.py", line 31, in with_suppress                                                                          
    yield None                                                                                                                                                                                                                        
  File "/home/username/.local/share/nvim/site/pack/paqs/start/coq_nvim/.vars/runtime/lib/python3.9/site-packages/pynvim_pp/lib.py", line 54, in wrapper                                                                                    
    return await aw                                                                                                                                                                                                                   
  File "/home/username/.local/share/nvim/site/pack/paqs/start/coq_nvim/coq/server/registrants/autocmds.py", line 94, in cont                                                                                                               
    snap = await snapshot(stack.settings.match.unifying_chars)                                                                                                                                                                        
  File "/home/username/.local/share/nvim/site/pack/paqs/start/coq_nvim/coq/tmux/parse.py", line 85, in snapshot                                                                                                                            
    for pane in await _panes()                                                                                                                                                                                                        
  File "/home/username/.local/share/nvim/site/pack/paqs/start/coq_nvim/coq/tmux/parse.py", line 20, in _panes                                                                                                                              
    proc = await call(                                                                                                                                                                                                                
  File "/home/username/.local/share/nvim/site/pack/paqs/start/coq_nvim/.vars/runtime/lib/python3.9/site-packages/std2/asyncio/subprocess.py", line 23, in call                                                                             
    proc = await create_subprocess_exec(                                                                                                                                                                                              
  File "/usr/lib/python3.9/asyncio/subprocess.py", line 236, in create_subprocess_exec                                                                                                                                                
    transport, protocol = await loop.subprocess_exec(                                                                                                                                                                                 
  File "/usr/lib/python3.9/asyncio/base_events.py", line 1661, in subprocess_exec                                                                                                                                                     
    transport = await self._make_subprocess_transport(                                                                                                                                                                                
  File "/usr/lib/python3.9/asyncio/unix_events.py", line 197, in _make_subprocess_transport                                                                                                                                           
    transp = _UnixSubprocessTransport(self, protocol, args, shell,                                                                                                                                                                    
  File "/usr/lib/python3.9/asyncio/base_subprocess.py", line 36, in __init__                                                                                                                                                          
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,                                                                                                                                                                   
  File "/usr/lib/python3.9/asyncio/unix_events.py", line 789, in _start                                                                                                                                                               
    self._proc = subprocess.Popen(                                                                                                                                                                                                    
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__                                                                                                                                                                      
    self._execute_child(args, executable, preexec_fn, close_fds,                                                                                                                                                                      
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child                                                                                                                                                               
    raise child_exception_type(errno_num, err_msg, err_filename)                                                                                                                                                                      
PermissionError: [Errno 13] Permission denied: 'tmux'                                                                                                                                                                                 
Press ENTER or type command to continue

My current coq_settings is set to

vim.g.coq_settings = {
    auto_start = 'shut-up',
    ['clients.tmux.enabled'] = false
}
dorgnarg commented 3 years ago

Update: the problem was that tmux wasn't installed on my machine. I installed it and everything seems to be working fine, but I'm still not sure if tmux is supposed to be a dependency, it's not listed anywhere and it wasn't included with :COQdeps

ms-jpq commented 3 years ago

please try now. i added a thingy that should have prevented it

ms-jpq commented 3 years ago

usually when tmux isn't install there the error is FileNotFound, but you apparently had a file called tmux in your $PATH, and that file isnt an executable.

wasn't expecting it