brookhong / DBGPavim

This is a plugin to enable php debug in VIM with Xdebug, with a new debug engine.
132 stars 19 forks source link

Debugger does not work in Neovim (python-client) #37

Open jaredmcateer opened 9 years ago

jaredmcateer commented 9 years ago

I know Neovim isn't exactly production ready so I understand if you don't support it just yet. I'm using the Python enabled client of Neovim but unfortunately I get the following error when trying to run the debugger:

Error detected while processing function <SNR>61_ExeDBGPavim:                                                                                                                                                                                  
line    2:                                                                                                                                                                                                                                     
Exception in thread Thread-9:                                                                                                                                                                                                                  
Traceback (most recent call last):                                                                                                                                                                                                             
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner                                                                                                                                                                       
    self.run()                                                                                                                                                                                                                                 
  File "/home/j/.files/nvim/bundle/DBGPavim/plugin/dbgpavim.py", line 960, in run                                                                                                                                                          
    print ""                                                                                                                                                                                                                                   
  File "/usr/share/nvim/runtime/autoload/provider/script_host.py", line 164, in write                                                                                                                                                          
    self.redirect_handler(data)                                                                                                                                                                                                                
  File "/usr/share/nvim/runtime/autoload/provider/script_host.py", line 57, in <lambda>                                                                                                                                                        
    sys.stdout = RedirectStream(lambda data: nvim.out_write(data))                                                                                                                                                                             
  File "/usr/local/lib/python2.7/dist-packages/neovim/api/nvim.py", line 194, in out_write                                                                                                                                                     
    return self._session.request('vim_out_write', msg)                                                                                                                                                                                         
  File "/usr/local/lib/python2.7/dist-packages/neovim/api/common.py", line 219, in request                                                                                                                                                     
    return walk(self._in, self._session.request(name, *args), self, name,                                                                                                                                                                      
  File "/usr/local/lib/python2.7/dist-packages/neovim/msgpack_rpc/session.py", line 72, in request                                                                                                                                             
    v = self._yielding_request(method, args)                                                                                                                                                                                                   
  File "/usr/local/lib/python2.7/dist-packages/neovim/msgpack_rpc/session.py", line 137, in _yielding_request                                                                                                                                  
    return parent.switch()                                                                                                                                                                                                                     
AttributeError: 'NoneType' object has no attribute 'switch'                                                                                                                                                                                    
Unhandled exception in thread started by <bound method DbgListener.__bootstrap of <DbgListener(Thread-9, stopped 140516107691776)>>                                                                                                            
Traceback (most recent call last):                                                                                                                                                                                                             
Error detected while processing function <SNR>61_ExeDBGPavim..provider#python#Call:                                                                                                                                                            
line    1:                                                                                                                                                                                                                                     
Channel 1 returned a response that doesn't have a matching request id. Ensure the client is properly synchronized 
mkraemer commented 9 years ago

+1 I would love to get this working on nvim :)

adambiggs commented 9 years ago

:+1:

brainpicture commented 8 years ago

+1

artem-timofeev commented 8 years ago

++

haringsrob commented 7 years ago

+1

rtucek commented 7 years ago

+1