slashmili/alchemist.vim

Python error when using plugin functions

Closed this issue · 3 comments

When I try to use any of the functionality of the plugin, such as get_doc or jump to definition, I get this python traceback:

Traceback (most recent call last):                                                           
  File "/home/alex/.config/nvim/plugged/alchemist.vim/after/../alchemist_client", line 77, in
 <module>                                                                                    
    main(sys.argv[1:])                                                                       
  File "/home/alex/.config/nvim/plugged/alchemist.vim/after/../alchemist_client", line 68, in
 main                                                                                        
    a = AlchemistClient(debug=debug, cwd=cwd, ansi=ansi, alchemist_script=alchemist_script, s
ource=source)                                                                                
  File "/home/alex/.config/nvim/plugged/alchemist.vim/alchemist.py", line 16, in __init__    
    self._cwd = self.get_project_base_dir()                                                  
  File "/home/alex/.config/nvim/plugged/alchemist.vim/alchemist.py", line 372, in get_project
_base_dir                                                                                    
    running_servers_logs = os.listdir(self._get_tmp_dir())                                   
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/alex/alchemist_server' 

I am opening neovim from the root of a Phoenix project.

This occurs:

  • on both Arch Linux and Mac
  • even with a base neovim and system installation (on a VM) using only the vim-elixir and alchemist.vim plugins.
  • with both python 2 and 3.

Yup looks like the the #48 broke the maser.

I fixed it temporary for now. Please fetch the new change

Keep issue open for now until the proper fix is applied

Yeah that fixed it for me, thanks.

Does applying #63 fix it for you?