pyth icon indicating copy to clipboard operation
pyth copied to clipboard

Error creating Python code from Pyth Source

Open cykapup opened this issue 7 years ago • 2 comments

I was working on this problem, and I created a very basic starting point.

As I tried executing the code, there were more errors than I'd expected, including "parse_token", which I didn't have in my code. I opened the debugger to see what I did, and it did not show the converted python code, just lines on lines of compiler errors.

The code was VzIqHN=Z?qJ\\hZtZ)+*dZN=HN, link is here

cykapup avatar Sep 21 '17 17:09 cykapup

Issue was I typed "J" instead of "H" on character 11. I guess the auto-init tripped up the compiler

cykapup avatar Sep 21 '17 17:09 cykapup

Yeah, this sort of error usually means that you messed up the arity somewhere. This could be because you actually gave the wrong number of arguments, or as you did, used a wrong command, which messed stuff up down the line.

We may want to look into catching these errors and doing our own compile-time error reporting, but that may be hard.

Maltysen avatar Oct 13 '17 23:10 Maltysen