Project

General

Profile

Actions

Bug #7

closed

Proc CHANGE[M] fails to compile.

Added by Brian Flanagan almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
01/17/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

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

main.aoz (4.01 KB) main.aoz Help_30.aoz source code Baptiste Pillot, 02/01/2020 07:00 AM
Actions #1

Updated by Baptiste Pillot almost 5 years ago

  • Affected version set to 0.9.2.5
Actions #2

Updated by Baptiste Pillot almost 5 years ago

  • Assignee set to Francois Lionet
Actions #3

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....

Actions #4

Updated by Baptiste Pillot almost 5 years ago

  • Status changed from Resolved to Feedback

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)

Actions #5

Updated by Baptiste Pillot almost 5 years ago

Actions #6

Updated by Francois Lionet almost 5 years ago

  • Status changed from Feedback to Resolved

Fixed, example 30 work perfect now.

Actions #7

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.)

Actions #8

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.)

Actions

Also available in: Atom PDF