overhangio / tutor

The Docker-based Open edX distribution designed for peace of mind
https://docs.tutor.overhang.io/
GNU Affero General Public License v3.0
930 stars 444 forks source link

Autocomplete failed after installing plugin #1045

Closed CodeWithEmad closed 6 months ago

CodeWithEmad commented 6 months ago

I followed here to write a simple plugin to modify the repository of "authn" in tutor-mfe.

import os

from tutor import hooks
from tutormfe.hooks import MFE_APPS

@MFE_APPS.add()
def _add_edspirit_mfes(mfes):

    mfes.update(
        {
            "authn": {
                "repository": "https://github.com/edspirit/frontend-app-authn.git",
                "port": 1999,
            },
        }
    )
    return mfes

after enabling the plugin, autocomplete will fail:

# here, I pressed tab after tutor plu
tutor pluError applying action: func=<function discover_module.<locals>.load at 0x70777fa22f80> contexts=['plugins']'
gins enable my-mfe

Disabling the plugin will fix the issue.

tutor version 17.0.4 Ubuntu 22.04

CodeWithEmad commented 6 months ago

I'll close this since we couldn't reproduce it on Kyle`s machine.