Project

General

Profile

Bug #558

Having a Label as the first line of a procedure causes an internal error at compilation Pass 2

Added by David Baldwin over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
10/28/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Having a Label as the first line of a procedure causes an internal error at compilation Pass 2

This is a recent bug, it used to be ok, not sure which version it first occurred.

#1

Updated by Brian Flanagan over 3 years ago

Verified. This also fails in RC4, but in pass 1.

Example:

DoStuff

Procedure DoStuff[what]
barf: 
    Print "barf"
End Procedure 

Result:

Error: internal error at line 4, column 5, in file main.aoz

Compiler error:  crash during compilation: Pass: 1, crash at line 3, column: 5!
Cannot set property 'labelBlock' of undefined
TypeError: Cannot set property 'labelBlock' of undefined at firstPass (...compiler.js:1550:24) at compileSection
(...compiler.js:727:4) at Object.module.exports.compile
(...compiler.js:84:2) at compile
(...aoz.js:1176:23) at aoz
(...aoz.js:1012:9) at Object.transpile
(...aoz.js:218:4) at AOZView.buildPath
(...aoz-studio-view.js:1772:9) at transpileIt
(...aoz-studio-view.js:1607:12) at ...aoz-studio-view.js:1599:7
#2

Updated by Francois Lionet over 3 years ago

  • Status changed from New to Resolved
  • Target version set to Beta 1

Fixed! Was also happening for instructions, functions and methods.

#3

Updated by David Baldwin over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF