Bug text/print/compile

More
5 days 6 hours ago #121 by PAGIR
Bug text/print/compile was created by PAGIR
Hello, I got this problem (using version 0.7.7)

1) I created this small LOFI program (text_bug.src):

text t1={10};text t2="Hello World";
print("t2=",t2,"<enter symbol>");
text t3={20};

=> compilation+execution OK

2) I remove both " embracing <enter symbol>

I save program
compilation failed (OK); Error in 2 Expect expression .

3) I add again the 2 ", save the program and compile under text editor
Result: I still get error message (not OK)
Retry and retry: still KO

I exit text editor and come back+compile, still same problem (compilation KO)

4) I exit text editor
I try a CLI command: compile text_bug.src
I get compile error
Error in 2, at ','. undefined variable.

I retry the same command AND NOW it is successful !
 

Please Log in or Create an account to join the conversation.

More
5 days 4 hours ago - 5 days 4 hours ago #122 by Franck
Replied by Franck on topic Bug text/print/compile
It is a compiler (re)initialization issue. For some reason, it misses the first line when recompiling after the compile error and thus misses the t2 declaration.

If you reset the computer or simply add a new empty line before line 1 it works again.

Working on it ! Thanks for noticing.

Edit: Found the issue, the parser was not reinitialized properly after a compile error. Fixed in 0.7.8
Last edit: 5 days 4 hours ago by Franck.
The following user(s) said Thank You: PAGIR, ludojoey

Please Log in or Create an account to join the conversation.

Time to create page: 0.158 seconds
Powered by Kunena Forum