microsoft / microsoft/pxt-microbit

Code recompiles when exiting serial view

Open
#2,910 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P2 serial
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug
The code recompiles when exiting the serial console view. This causes problems when you're logging from the device in an event handler--I shake the microbit, "Show Console" appears, I go into the console, I exit the console and the button is suddenly gone.

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

Reproduce the issue by logging from a micro:bit event handler, opening Show Console, and exiting the serial console view. Trace the editor entry point that handles console exit and identify why it recompiles; done means exiting leaves the compiled program and Show Console button intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.