pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

"!!proc || !bin.finalPass" error in Bluetooth blocks

Open fredster33 opened this issue 4 years ago • 3 comments

Describe the bug An error "!!proc || !bin.finalPass" occurs when some Bluetooth blocks are used.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://makecode.microbit.org/_DCxarf9fm4x0
  2. Click on "download"
  3. See error

Expected behavior There is no error, and the program compiles correctly.

Screenshots Screenshot

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

fredster33 avatar Nov 09 '21 04:11 fredster33

This may or may not be related to #4421.

fredster33 avatar Nov 09 '21 04:11 fredster33

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.

martinwork avatar Mar 28 '22 19:03 martinwork

Me too! No obvious reason. Sometimes disappears

keble6 avatar Aug 29 '22 17:08 keble6