dbgx / lldb.nvim

No longer maintained. Possible alternative: https://github.com/rcarriga/nvim-dap-ui
Other
262 stars 20 forks source link

Not compatible with up-to date python client #23

Closed Psirus closed 8 years ago

Psirus commented 8 years ago

I've installed neovim manually from master, the python-client via pip, and now lldb.nvim gives me the following error if I try to run :UpdateRemotePlugins

Encountered AttributeError loading plugin at /home/psirus/.config/nvim/plugged/lldb.nvim/rplugin/python/lldb_nvim: 'CompatibilitySession' object has no attribute '_session'                                                                  
Traceback (most recent call last):                                                                                                                                                                                                           
  File "/usr/local/lib/python2.7/dist-packages/neovim/plugin/host.py", line 121, in _load                                                                                                                                                    
    self._discover_classes(module, handlers, path)                                                                                                                                                                                           
  File "/usr/local/lib/python2.7/dist-packages/neovim/plugin/host.py", line 151, in _discover_classes                                                                                                                                        
    plugin = cls(self._configure_nvim_for(cls))                                                                                                                                                                                              
  File "/home/psirus/.config/nvim/plugged/lldb.nvim/rplugin/python/lldb_nvim/__init__.py", line 17, in __init__                                                                                                                               
    self.ctrl = Controller(VimX(vim))                                                                                                                                                                                                        
  File "/home/psirus/.config/nvim/plugged/lldb.nvim/rplugin/python/lldb_nvim/vim_x.py", line 9, in __init__                                                                                                                                   
    self._vim_test = not self._vim.session._session._is_running                                                                                                                                                                              
AttributeError: 'CompatibilitySession' object has no attribute '_session'            
critiqjo commented 8 years ago

Can you replace line 9 of rplugin/python/lldb_nvim/vim_x.py with one of:

self._vim_test = not self._vim._session._is_running
# -- OR --
self._vim_test = not self._vim._session._session._is_running

and tell me which one works for you?

Psirus commented 8 years ago

The first one works, i.e. self._vim_test = not self._vim._session._is_running.

critiqjo commented 8 years ago

Cool! Then I'll push a commit when I'm back with my laptop... Or you can give me a PR and I'll merge it...