Bug #7
closedProc CHANGE[M] fails to compile.
0%
Description
Example: Help_30, Line 115
If M and Mouse Key=1 Then Proc CHANGE[M]
...fails at the space after Proc.
Details:
First pass...
main.aoz:115:33: error: message not found crash_error:(pass: 1
cannot read property 'charat' of undefined
typeerror: cannot read property 'charat' of undefined
at firstpass (c:\snapshot\compiler\compiler.js)
at object.compile (c:\snapshot\compiler\compiler.js)
at compile (c:\snapshot\compiler\aoz.js)
at aoz (c:\snapshot\compiler\aoz.js)
at object. (c:\snapshot\compiler\aoz.js)
at module._compile (pkg/prelude/bootstrap.js:1261:22)
at object.module._extensions..js (internal/modules/cjs/loader.js:993:10)
at module.load (internal/modules/cjs/loader.js:813:32)
at function.module._load (internal/modules/cjs/loader.js:725:14)
at function.module.runmain (pkg/prelude/bootstrap.js:1316:12), , , )
Files
Updated by Francois Lionet almost 5 years ago
- Status changed from New to Resolved
- Target version set to 0.9.3
This example now works. There were also problems in Get Bob. And I wonder how it can actually work: they do an Auto View Off, and do not update the screen in the main loop... to make it work, you have to add 'View' in the loop....
Updated by Baptiste Pillot almost 5 years ago
- Status changed from Resolved to Feedback
- source : https://www.amos2.fr/ide/Amos2/Ide/Program/454
- compile error : "main.aoz:126:3: error: compiler stuck in loop"
Disclaimer : this bug happens only on my online IDE : look forward for problem with the standard AOZ Studio Beta installation in Visual Sutdio Code.
I tested the full compile of Help 30 (packaged with the last version of AOZ, thanks).
Full log when compiled from my IDE :
Error during compilation
AOZ Transpiler Version 0.9.3.2 - 31/01/2020
By Francois 'Amos' Lionet (c) AOZ Studio 2019-2020
Website: https://aoz.studio
---------------------------------------------------------------------
Compiling /home/amos2/ide/input/tickleman/7, emulation: PC, speed: fast.
main.aoz:126:3: error: compiler stuck in loop
Message not found compiler_stuck_in_loop:(, , , )
Task failed, no code generated...
With Visual Studio Code :
When compiled from Visual Studio Code, it compiles, but crashes during run :
"Illegal text window parameter at line 69, column: 10."
(aoz.js:741)
The code at this line :
Pen 12 : Locate 1,21 : Print Border$(Zone$(" PRIORITY ON ",1),3)
Updated by Francois Lionet almost 5 years ago
- Status changed from Feedback to Resolved
Fixed, example 30 work perfect now.
Updated by Brian Flanagan almost 5 years ago
Verified that CHANGE[M] now compiles correctly, so this issue can be closed.
There are, however, additional problems with Help_30.
The "floating boxes" appear too far to the right.
(I will file a new bug report on the new issue.)
Updated by Brian Flanagan over 4 years ago
- Status changed from Resolved to Closed
Verified that CHANGE[M] now compiles correctly, so closing this issue.
There are, however, additional problems with Help_30.
The "floating boxes" appear too far to the right.
(I will file a new bug report on the new issue.)