microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
477 stars 207 forks source link

Traffic Panic: Switch to python editor failed #2471

Closed Sheila111 closed 3 years ago

Sheila111 commented 3 years ago

Describe the bug Traffic Panic: Switch to python editor failed

Steps to reproduce the behavior 1.Navigate to https://arcade.makecode.com/beta# 2.Game Jam--->Traffic Panic---->Open Example 3.Switch to Python editor

Expect behavior Switch successfully

Actual behavior Traffic Panic: Switch to python editor failed 2

Additional context 1.OS: Windows(rs6) 2.arcade version: 1.3.9 3.Microsoft MakeCode version: 6.4.6

abchatra commented 3 years ago

If we can't transition we should fail to transition.

riknoll commented 3 years ago

We can handle this, in fact if you change the "bool" into "boolean" on line 1285 it works fine. This is a bug in the python -> typescript converter; it should automatically convert bool to boolean