Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while checking/unchecking completion providers preferences #16997

Closed
soni3991 opened this issue Dec 11, 2021 · 4 comments
Closed

Error while checking/unchecking completion providers preferences #16997

soni3991 opened this issue Dec 11, 2021 · 4 comments

Comments

@soni3991
Copy link

Description

What steps will reproduce the problem?

installed kite and couldnt find how to enable it. even dont see its setting in prefrenece

Traceback

Traceback (most recent call last):
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/preferences/widgets/configdialog.py", line 127, in accept
    configpage.apply_changes()
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/preferences/api.py", line 111, in apply_changes
    self.apply_callback()
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/preferences/api.py", line 143, in <lambda>
    self._apply_settings_tabs(self.changed_options))
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/preferences/api.py", line 171, in _apply_settings_tabs
    self.apply_settings(options)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/api/preferences.py", line 108, in wrapper
    func(opts)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/api/plugins/new_api.py", line 550, in apply_conf
    self.after_configuration_update(list(options_set))
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/completion/plugin.py", line 404, in after_configuration_update
    self.register_statusbar_widget(provider_name)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/completion/plugin.py", line 502, in register_statusbar_widget
    self.statusbar.add_status_widget(currrent_widget)
  File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/spyder/plugins/statusbar/plugin.py", line 119, in add_status_widget
    raise SpyderAPIError(f'Status widget `{id_}` already added!')
spyder.api.exceptions.SpyderAPIError: Status widget `kite_status` already added!

Versions

  • Spyder version: 5.2.0
  • Python version: 3.9.5
  • Qt version: 5.12.10
  • PyQt5 version: 5.12.3
  • Operating System: Darwin 21.1.0

Dependencies


# Mandatory:
applaunchservices >=0.1.7     :  0.2.1 (OK)
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.29.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.1 (OK)
jellyfish >=0.7               :  0.8.9 (OK)
jsonschema >=3.2.0            :  4.2.1 (OK)
keyring >=17.0.0              :  23.2.1 (OK)
nbconvert >=4.0               :  6.3.0 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
parso >=0.7.0;<0.9.0          :  0.8.2 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.10.0 (OK)
pylint >=2.5.0                :  2.11.1 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.3.1;<1.4.0          :  1.3.1 (OK)
pylsp_black >=1.0.0           :  None (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.2.1 (OK)
qtawesome >=1.0.2             :  1.1.0 (OK)
qtconsole >=5.2.1;<5.3.0      :  5.2.1 (OK)
qtpy >=1.5.0                  :  1.11.2 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  59.2.0 (OK)
sphinx >=0.6.6                :  4.3.0 (OK)
spyder_kernels >=2.2.0;<2.3.0 :  2.2.0 (OK)
textdistance >=4.2.0          :  4.2.2 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.6 (OK)
zmq >=17                      :  22.3.0 (OK)

# Optional:
cython >=0.21                 :  0.29.24 (OK)
matplotlib >=2.0.0            :  3.5.0 (OK)
numpy >=1.7                   :  1.21.4 (OK)
pandas >=1.1.1                :  1.3.4 (OK)
scipy >=0.17.0                :  1.7.3 (OK)
sympy >=0.7.3                 :  1.9 (OK)
@steff456
Copy link
Member

Hi @soni3991,

Unfortunately Kite was sold and their product is down, this made us remove everything that was connected to kite in newer versions of Spyder. For now, please uninstall it and use one of our other linter options

@dalthviz dalthviz changed the title Couldnt enable kite Error while checking unchecking completion providers preferences Dec 13, 2021
@dalthviz
Copy link
Member

Checking this a little bit seems like is caused due to the handling of preferences being changed in the preferences dialog. Is not only happening for the Enable kite provider preference but I was also able to reproduce this with the Enabled LSP provider preference:

`Traceback (most recent call last):
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\preferences\widgets\configdialog.py", line 127, in accept
    configpage.apply_changes()
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\preferences\api.py", line 111, in apply_changes
    self.apply_callback()
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\preferences\api.py", line 143, in <lambda>
    self._apply_settings_tabs(self.changed_options))
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\preferences\api.py", line 171, in _apply_settings_tabs
    self.apply_settings(options)
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\api\preferences.py", line 108, in wrapper
    func(opts)
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\api\plugins\new_api.py", line 550, in apply_conf
    self.after_configuration_update(list(options_set))
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\completion\plugin.py", line 404, in after_configuration_update
    self.register_statusbar_widget(provider_name)
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\completion\plugin.py", line 502, in register_statusbar_widget
    self.statusbar.add_status_widget(currrent_widget)
  File "C:\Users\dalth\AppData\Local\Programs\Spyder\pkgs\spyder\plugins\statusbar\plugin.py", line 119, in add_status_widget
    raise SpyderAPIError(f'Status widget `{id_}` already added!')
spyder.api.exceptions.SpyderAPIError: Status widget `lsp_status` already added!

@dalthviz
Copy link
Member

@soni3991 If you have kite installed try to go to Kite Settings > Redo Setup (inside the kite copilot the ⚙️ button) and also try relaunching Spyder. However as @steff456 the kite service is not currently available: https://www.kite.com/kite-is-temporarily-unavailable/?source=download

Just out of curiosity, how did you install Kite @soni3991 ?

Anyhow, if something of the above helps let us know !

@dalthviz dalthviz changed the title Error while checking unchecking completion providers preferences Error while checking/unchecking completion providers preferences Dec 13, 2021
@ccordoba12
Copy link
Member

@dalthviz, please take a look at this one. I think the problem is we're not removing status bar widgets after a completion provider is turned off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants