microsoft / microsoft/pxt

Maker MakeCode doesn't import servos library

Open
#11,529 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Go to (https://maker.makecode.com/#editor)
  2. Click adafruit-gemma-m0
  3. Click EXTENSIONS in the left pane
  4. Find and click on the servo card
  5. Then click on SERVOS in the left pane
  6. The title disappears and is replaced by a yellow box:
Image
  1. This is an error. When clicking SERVOS, a menu with different blocks should appear
  2. Click on JavaScript at the top
  3. Then click SERVOS in the left pane
  4. A menu with different blocks appears:
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.