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

[new-package] python-spyder-vim 0.1.0 #22721

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

podsvirov
Copy link
Collaborator

@podsvirov podsvirov commented Dec 4, 2024

Looks like this Spyder's plugin do not support latest Spyder (version 6):

$ spyder
<class 'spyder_vim.spyder.plugin.SpyderVim'>: QWidget(parent: Optional[QWidget] = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags()): argument 1 has unexpected type 'Editor'
Traceback (most recent call last):
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder/app/mainwindow.py", line 765, in setup
    plugin_instance = PLUGIN_REGISTRY.register_plugin(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder/api/plugin_registration/registry.py", line 344, in register_plugin
    instance = self._instantiate_spyder5_plugin(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder/api/plugin_registration/registry.py", line 198, in _instantiate_spyder5_plugin
    self._notify_plugin_dependencies(plugin_name)
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder/api/plugin_registration/registry.py", line 267, in _notify_plugin_dependencies
    plugin_instance._on_plugin_available(plugin)
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder/api/plugin_registration/mixins.py", line 99, in _on_plugin_available
    method()
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder_vim/spyder/plugin.py", line 64, in on_editor_available
    self.vim_cmd = VimWidget(editor, self.main)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/msys64/ucrt64/lib/python3.12/site-packages/spyder_vim/spyder/widgets.py", line 1524, in __init__
    QLineEdit.__init__(self, editor_widget)
TypeError: QWidget(parent: Optional[QWidget] = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags()): argument 1 has unexpected type 'Editor'

@Biswa96 Biswa96 added the new-package Pull request which adds new package(s) label Dec 5, 2024
@podsvirov podsvirov force-pushed the python-spyder-vim-new-package branch from aa54f65 to c6be8c2 Compare December 6, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package Pull request which adds new package(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants