Skip to content

[Bug] Forced camelcase on import blocks #2739

Description

@antonvh

Describe the bug
On Pybricks MicroPython ci-release-100-v4.0.0 on 2026-06-08; SPIKE Prime Hub with STM32F413VG, I can't import uPup, nor MicroPUP. The text field does not allow it.

To reproduce
Steps to reproduce the behavior:
Create a new blocks program
go to data, and import a class with a block.
Then try changing the name of the imported object.

Expected behavior
I expected to either:

  1. be able to freely type capitals as I saw fit
  2. OR pybricks reading my module and only allowing me to add objects that are actually inside (in the dir)

Screenshots

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues that have not been triaged yet

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions