Skip to content

[Bug] REPL auto-import does not work. #741

Closed
@laurensvalk

Description

@laurensvalk

When starting the REPL, everything in the pybricks package is supposed to be pre-imported.

This no longer works because:

    for (size_t i = 0; i < MP_ARRAY_SIZE(pybricks_globals_table); i++) {
        mp_rom_obj_t module = pybricks_globals_table[i].value;
        if (mp_obj_is_type(module, &mp_type_module)) {
            // Import everything from the module.
            mp_import_all((mp_obj_t)module);
        }
    }

and the modules are no longer included in pybricks_globals_table.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions