# Conversion Error

**URL:** <https://forum.makecode.com/t/conversion-error/22983>\
**Category:** Help\
**Created:** [October 3, 2023, 6:50pm UTC](https://forum.makecode.com/t/conversion-error/22983 "2023-10-03T18:50:59Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaptainSniffy](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@CaptainSniffy](https://forum.makecode.com/u/CaptainSniffy)\
**Post date:** [October 3, 2023, 6:50pm UTC](https://forum.makecode.com/t/conversion-error/22983/1 "2023-10-03T18:50:59Z")

</div>

> **[MakeCode Runway Mario](https://arcade.makecode.com/S40142-34891-78952-43910)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This is the Marioish game I have been creating in Block Based Code only. I left it for about a week and came back and it won’t allow me to “Convert” back to Block Based code.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 3, 2023, 7:49pm UTC](https://forum.makecode.com/t/conversion-error/22983/2 "2023-10-03T19:49:51Z")

</div>

Your todo comment section is somehow causing your troubles:  
 ![Screenshot 2023-10-03 at 21.44.54](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/eeb7773f944b462f11e9b3c998f83c5ebe2a5c16.png)

Remove it, and - voilà - your code converts back to blocks:

> **[MakeCode Runway Mario](https://arcade.makecode.com/01940-99643-29625-32136)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 3, 2023, 7:51pm UTC](https://forum.makecode.com/t/conversion-error/22983/3 "2023-10-03T19:51:50Z")

</div>

this is absolutely a bug in makecode! i’ll file it.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 3, 2023, 7:56pm UTC](https://forum.makecode.com/t/conversion-error/22983/4 "2023-10-03T19:56:18Z")

</div>

here’s the issue:

> <https://github.com/microsoft/pxt-arcade/issues/6099>
>
> Some emojis when placed inside python strings prevent conversion back to blocks.… For example:
> 
> \`\`\`python
> print("😒")
> \`\`\`
> 
> Other emojis work fine:
> 
> \`\`\`python
> print("✅")
> \`\`\`
> 
> Seems like a python scanner bug. Reported on the forum here:
> 
> https://forum.makecode.com/t/conversion-error/22983/2

specifically, the unamused face emoji is what’s breaking the conversion to blocks.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [October 3, 2023, 7:57pm UTC](https://forum.makecode.com/t/conversion-error/22983/5 "2023-10-03T19:57:05Z")

</div>

put // in front to make it a comment so it doesn’t interfere

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [October 3, 2023, 7:57pm UTC](https://forum.makecode.com/t/conversion-error/22983/6 "2023-10-03T19:57:11Z")

</div>

I’m guessing that’s because the compiler gets confused with the multiline string, because that’s the only way you can write comments in python. It doesn’t know how to convert that to blocks

---

<div class="post-metadata">

**Author:** ![CaptainSniffy](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@CaptainSniffy](https://forum.makecode.com/u/CaptainSniffy)\
**Post date:** [October 3, 2023, 8:05pm UTC](https://forum.makecode.com/t/conversion-error/22983/7 "2023-10-03T20:05:02Z")

</div>

Thank you all for the insight! I really appreciate it very much!

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [October 3, 2023, 8:07pm UTC](https://forum.makecode.com/t/conversion-error/22983/8 "2023-10-03T20:07:17Z")

</div>

It’s python, // doesn’t work

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 3, 2023, 8:09pm UTC](https://forum.makecode.com/t/conversion-error/22983/9 "2023-10-03T20:09:16Z")

</div>

@Sarge we do actually handle free floating multiline strings in python! They get converted into multiline comments.

We just don’t handle certain emojis, apparently. If you delete the emojis the code should convert cleanly.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [October 4, 2023, 4:44pm UTC](https://forum.makecode.com/t/conversion-error/22983/10 "2023-10-04T16:44:56Z")

</div>

If you did it on java, then converted would that work? or do it in blocks then convert

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 4, 2023, 4:45pm UTC](https://forum.makecode.com/t/conversion-error/22983/11 "2023-10-04T16:45:01Z")

</div>

![Screenshot 2023-10-03 at 22.18.11](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d9bf26f5087199a13c80747c74e927a487122d8a.png)

Where are my manners?

Welcome, by the way, @CaptainSniffy!!!

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [October 4, 2023, 11:28pm UTC](https://forum.makecode.com/t/conversion-error/22983/13 "2023-10-04T23:28:53Z")

</div>

~~javascript~~ Idk I’d have to test that. It might just be a conversion error when converting blocks, or maybe it affects JS too

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [October 4, 2023, 11:58pm UTC](https://forum.makecode.com/t/conversion-error/22983/14 "2023-10-04T23:58:05Z")

</div>

Thanks! In javascript it’s //

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 9, 2023, 9:56pm UTC](https://forum.makecode.com/t/conversion-error/22983/15 "2023-10-09T21:56:43Z")

</div>

Seems to prevent conversion from JavaScript to blocks with icons inside string literals, as well:

> [@Oops - something went wrong when trying to convert your code](https://forum.makecode.com/t/oops-something-went-wrong-when-trying-to-convert-your-code/23161):
>
> I am getting this error when going from javascript to blocks and I cannot figure it out - any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/17303_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [October 30, 2023, 4:58pm UTC](https://forum.makecode.com/t/conversion-error/22983/16 "2023-10-30T16:58:43Z")

</div>

I’m having this same issue, but I don’t know why. All I did was switch from blocks to JavaScript and back. Here’s the project:

> **[Arcade!Funkin' Engine 0.1.5](https://arcade.makecode.com/S04598-57013-49381-50578)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [October 30, 2023, 9:57pm UTC](https://forum.makecode.com/t/conversion-error/22983/17 "2023-10-30T21:57:16Z")

</div>

Nice music and graphics!

---

<div class="post-metadata">

**Author:** ![harithrizqi](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@harithrizqi](https://forum.makecode.com/u/harithrizqi)\
**Post date:** [July 30, 2026, 5:04pm UTC](https://forum.makecode.com/t/conversion-error/22983/18 "2026-07-30T17:04:39Z")

</div>

Yes, I nice music and graphic!
