Maker MakeCode doesn't import servos library
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 641
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 57
Description
Describe the bug
Installing the servo library appears to succeed, but attempting to use it causes an error. In block mode, the servo drawer loses it's label entirely when clicked. In python mode, you can use the servo drawer, however, when a line is added referencing the servo's library, there's an error saying the library is not available.
To Reproduce
Steps to reproduce the behavior:
- Go to (https://maker.makecode.com/#editor)
- Click adafruit-gemma-m0
- Click EXTENSIONS in the left pane
- Find and click on the servo card
- Then click on SERVOS in the left pane
- The title disappears and is replaced by a yellow box:
- This is an error. When clicking SERVOS, a menu with different blocks should appear
- Click on JavaScript at the top
- Then click SERVOS in the left pane
- A menu with different blocks appears:
Laptop:
- macOS 26.5.2
- Same behavior on Firefox, Safari, Chrome
Additional context
I tried the workflow with both the gemma M0 and the metro m4 (the initial selection when navigating to: https://maker.makecode.com/#editor and the behavior was the same with both boards.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the servo extension workflow at maker.makecode.com with the Adafruit Gemma M0 and Metro M4 targets, checking both block and Python modes. Trace the servo extension import and editor drawer behavior, then verify that the SERVOS drawer retains its label, displays its blocks, and the servo library is available in Python mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- embedded-iot, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100