terror / chatgpt.nvim

Query ChatGPT in Neovim
Creative Commons Zero v1.0 Universal
277 stars 15 forks source link

Error about notification handler #21

Open GreenSleeper opened 1 year ago

GreenSleeper commented 1 year ago
error caught in notification handler '/data01/z00665777/usr/local/share/lunarvim/site/pack/packer/start/chatgpt.nvim/rplugin/python3/chatgpt_nvim.py:command:ChatGPT [['hello']]'
Traceback (most recent call last):
  File "/home/z00665777/.local/lib/python3.8/site-packages/revChatGPT/revChatGPT.py", line 475, in __init__
    asyncio.run(self.async_func_for_check())
  File "/home/z00665777/.local/lib/python3.8/asyncio/runners.py", line 33, in run
    raise RuntimeError(
RuntimeError: asyncio.run() cannot be called from a running event loop
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/z00665777/.local/lib/python3.8/site-packages/pynvim/plugin/host.py", line 140, in _on_notification
    handler(*args)
  File "/home/z00665777/.local/lib/python3.8/site-packages/pynvim/plugin/host.py", line 86, in _wrap_delayed_function
    plugin = cls(self._configure_nvim_for(cls))
  File "/data01/z00665777/usr/local/share/lunarvim/site/pack/packer/start/chatgpt.nvim/rplugin/python3/chatgpt_nvim.py", line 285, in __init__
    self.bot = Bot(Chatbot(Config.load().as_dict()))
  File "/home/z00665777/.local/lib/python3.8/site-packages/revChatGPT/revChatGPT.py", line 477, in __init__
    self.debugger.log("detect nest use of asyncio")
AttributeError: 'Chatbot' object has no attribute 'debugger'
Press ENTER or type command to continue