pxt-microbit
pxt-microbit copied to clipboard
"!!proc || !bin.finalPass" error in Bluetooth blocks
Describe the bug An error "!!proc || !bin.finalPass" occurs when some Bluetooth blocks are used.
To Reproduce Steps to reproduce the behavior:
- Go to https://makecode.microbit.org/_DCxarf9fm4x0
- Click on "download"
- See error
Expected behavior There is no error, and the program compiles correctly.
Screenshots

micro:bit version (please complete the following information): N/A (software)
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Microsoft Edge Dev
- Version: 97
This may or may not be related to #4421.
I don't think this is a BLE problem as such. If the timeanddate calls and extension are removed, it compiles. It looks like it's the assert in https://github.com/microsoft/pxt/blob/master/pxtcompiler/emitter/emitter.ts#L2505.
Me too! No obvious reason. Sometimes disappears