simon816 / Command-Block-Assembly

Compile high-level code into Minecraft commands
https://www.simon816.com/minecraft/assembler
MIT License
271 stars 29 forks source link

python errors out when launching mcc.py #14

Closed codingglitch closed 4 years ago

codingglitch commented 4 years ago

When I tried the example command for fib.asm, python errors out with an invalid syntax error. Weirdly enough, it's from cbl.compiler : line 336 assert not decl.async ^ SyntaxError: invalid syntax

codingglitch commented 4 years ago

MCCError

simon816 commented 4 years ago

I see. In Python 3.7, "async" was made a reserved keyword, therefore my use of it as a variable name is no longer valid. I have Python 3.6 installed so had not observed this myself. I will fix it soon. Thanks.

codingglitch commented 4 years ago

Just so you know, you should update python : their is probably other things that changed and that could break mcc.

simon816 commented 4 years ago

It's because I'm using Ubuntu 18.04 where the python3 package is currently 3.6.7. New LTS in a month will be 3.8. I could set up some sort of CI for multiple versions and have unit tests, but haven't spent the additional effort setting that up thus far :)

simon816 commented 4 years ago

Should be fixed now.