Project

General

Profile

Bug #114

Pack, Spack, and Unpack all return syntax errors.

Added by Brian Flanagan about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
02/04/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Example: Help_41 from AMOSPro_Examples disk.

Related to bug #18. (Unpack)

Line 104:

Spack 1 To 6

Caused:

First pass...
main.aoz:104:7: error: syntax error
main.aoz:1:1: Compiler error: crash during compilation: pass: 1
cannot read property 'charat' of undefined
typeerror: cannot read property 'charat' of undefined
    at firstpass (c:\snapshot\compiler\compiler.js:0:0)
    at object.module.exports.compile (c:\snapshot\compiler\compiler.js:0:0)
    at compile (c:\snapshot\compiler\aoz.js:0:0)
    at aoz (c:\snapshot\compiler\aoz.js:0:0)
    at object.<anonymous> (c:\snapshot\compiler\aoz.js:0:0)
    at module._compile (pkg/prelude/bootstrap.js:1261:22)
    at object.module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at module.load (internal/modules/cjs/loader.js:651:32)
    at trymoduleload (internal/modules/cjs/loader.js:591:12)
    at function.module._load (internal/modules/cjs/loader.js:583:3)

Internal error
Task failed, no code generated...

After commenting 104, Line 116:

Pack 1 To 7,104,13,250,60

Caused:

First pass...
main.aoz:116:6: error: syntax error

main.aoz:1:1: Compiler error: crash during compilation: pass: 1
cannot read property 'charat' of undefined
typeerror: cannot read property 'charat' of undefined
    at firstpass (c:\snapshot\compiler\compiler.js:0:0)
    at object.module.exports.compile (c:\snapshot\compiler\compiler.js:0:0)
    at compile (c:\snapshot\compiler\aoz.js:0:0)
    at aoz (c:\snapshot\compiler\aoz.js:0:0)
    at object.<anonymous> (c:\snapshot\compiler\aoz.js:0:0)
    at module._compile (pkg/prelude/bootstrap.js:1261:22)
    at object.module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at module.load (internal/modules/cjs/loader.js:651:32)
    at trymoduleload (internal/modules/cjs/loader.js:591:12)
    at function.module._load (internal/modules/cjs/loader.js:583:3)
Internal error
Task failed, no code generated...

etc.

#1

Updated by Brian Flanagan about 4 years ago

  • Affected version changed from 0.9.3.2 to 0.9.5.1

Still a problem in 0.9.5.1

#2

Updated by Francois Lionet over 3 years ago

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

Fixed: the transpiler does not crash anymore. But as those instructions are not implemented, you will get an "Instruction not implemented" message at runtime.

Also available in: Atom PDF