Skip to content

[Feature Request] Warning for module imports with uppercase letters #220

@joshichaitanya3

Description

@joshichaitanya3

Importing modules with the right name but incorrect cases results in an error. Morpho modules are by convention named using all lowercase characters, so it would be useful if Morpho throws a warning instead, highlighting the presence of uppercases in the import statement.

Confusion can be caused by namesake classes, since classes are named using uppercases by convention.

E.g.

>import MeshGen
Error 'MdlNtFnd' [line 1 char 14] : Module 'MeshGen' not found.
>import meshgen

>var mg = MeshGen(...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions