TerminalFi / LSP-copilot

GitHub Copilot support for Sublime Text LSP plugin provided through Copilot.vim.
665 stars 25 forks source link

Chat disappears #206

Open unknownuser88 opened 1 month ago

unknownuser88 commented 1 month ago

chat tab disappears at a random moment

I have following error in console

AttributeError: 'NoneType' object has no attribute 'scope_name' Traceback (most recent call last): File "/opt/sublime_text/Lib/python33/sublime_plugin.py", line 1329, in is_enabled_ ret = self.is_enabled() File "/home/david/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 182, in is_enabled return self.is_relevant_file() File "/home/david/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 178, in is_relevant_file return sublime.active_window().active_view().scope_name( AttributeError: 'NoneType' object has no attribute 'scope_name' Traceback (most recent call last): File "/opt/sublime_text/Lib/python33/sublime_plugin.py", line 1329, in is_enabled_ ret = self.is_enabled() File "/home/david/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 182, in is_enabled return self.is_relevant_file() File "/home/david/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 178, in is_relevant_file return sublime.active_window().active_view().scope_name( AttributeError: 'NoneType' object has no attribute 'scope_name' Traceback (most recent call last): File "/opt/sublime_text/Lib/python33/sublime_plugin.py", line 1329, in is_enabled_ ret = self.is_enabled() File "/home/david/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 182, in is_enabled return self.is_relevant_file() File "/home/david/.config/sublime-text-3/Packages/Nodejs/lib/nodejs_base.py", line 178, in is_relevant_file return sublime.active_window().active_view().scope_name( AttributeError: 'NoneType' object has no attribute 'scope_name' SublimeLinter: sublime_linter.py:334 Delay linting '<untitled 466>' for 0.0s SublimeLinter: sublime_linter.py:352 No installed linter matches the view.

sublime build 4180 Ubuntu 20.04.6 LTS

jfcherng commented 1 month ago

The error msg doesn't seem to related to this plugin. It suggests sublime.active_window().active_view() is None however.