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

fix: fix broken dynamic import of rplugin modules #534

Merged
merged 1 commit into from
Sep 22, 2023

Commits on Sep 22, 2023

  1. fix: fix broken dynamic import of rplugin modules

    The removal of `imp` package (neovim#461) in order to supprot Python 3.12
    had a bug where rplugins can't be loaded and the ImportError exception
    was silenced, making the remote provider throwing lots of errors.
    This commit fixes broken dynamic import of python modules from the
    registered rplugins.
    
    We add tests for Host._load, with loading rplugins consisting of:
      (1) single-file module  (e.g., `rplugins/simple_plugin.py`)
      (2) package (e.g., `rplugins/mymodule/__init__.py`)
    wookayin committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    5ac50b2 View commit details
    Browse the repository at this point in the history