Closed ibsenrune closed 2 years ago
Hi @ibsenrune!
It was nice chatting with you yesterday.
I think option 1 is way easier and the better way to go. Supporting Hedy from the command line is not really something we support very actively, and my suspicion is that you will run into a few more issues if you test it further, so sorry in advance :) Our intended audience of school teachers and kids is not so likely to use Hedy that way.
If you do a clean checkout and try to run a simple Hedy program from the command line, you get an error because the level hasn’t been set properly.
Steps to reproduce:
hello.hedy
, with the following contents:Then run the program from the command line according to this description:
I expected the program to print
Hello World!
.As far as I can tell, the error happens because the Hedy source file doesn’t declare a level. And indeed, if you explicitly provide a level, the program works:
According to the docs here, indicating a level is only necessary if you want to use a level besides level 1. Thus, I think the example provided above should have worked.
As far as I can tell, there are two options for fixing this:
CONTRIBUTING.md
to say that you always need to indicate a level, orrunhedy.py
so thatlevel
is set to1
if it hasn’t been set by a command line flag or a declaration in the source file (AFAICT, it is left as0
if not otherwise specified).Despite never having written a single line of Python, I am happy to take a stab at fixing either the documentation or the Python code :-)
PS. Thank you for the chat “at” Build Stuff @Felienne