Project

General

Profile

Actions

Bug #667

open

Multiple alerts in a row will only display the last in the AOZ Viewer.

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

Status:
Resolved
Priority:
High
Target version:
Start date:
02/16/2021
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

Related to Bug #662

Only the last alert called will be displayed.

{ alert('alert 1'); }
{ alert('alert 2'); }
{ alert('alert 3'); }

The above code will ONLY display 'alert 3', since processing continues instead of waiting for the user action.

Actions #1

Updated by Brian Flanagan over 3 years ago

  • Subject changed from Two alerts in a row will only display the first in the AOZ Viewer. to Multiple alerts in a row will only display the last in the AOZ Viewer.
Actions #2

Updated by Brian Flanagan over 3 years ago

  • Assignee set to Baptiste Bideaux

Re-tested in 1.0.0 (B5) Still fails.

Actions #3

Updated by Brian Flanagan over 3 years ago

  • Affected version changed from 1.0.0 (B3) to 1.0.0 (B5)
Actions #4

Updated by Brian Flanagan over 3 years ago

  • Affected version changed from 1.0.0 (B5) to 1.0.0 (B7)

It's worse. Now, it doesn't work at all. Gets an Internal error.
Console errors:

atom.warn is not a function
raoz.js:1061 TypeError: atom.warn is not a function
    at AOZView.window.warn (/Users/brian/AOZ_Studio/aoz/IDE/.atom/packages/aoz-studio/lib/aoz-studio-view.js:249)
    at self.iframe.contentWindow.alert (/Users/brian/AOZ_Studio/aoz/IDE/.atom/packages/aoz-studio/lib/ui/aoz-viewer.js:843)
    at Application.blocks.<computed> (VM14954 application.js:48)
    at AOZ.runBlocks (VM14953 raoz.js:769)
    at doUpdate (VM14953 raoz.js:443)
raoz.js:495 Internal error
at line: 1, column: 1 in file main.aoz.
Actions #5

Updated by Brian Flanagan over 3 years ago

Tried this again with 1.0.0 (B7) rev 4/20
It still fails entirely, but with a different error.

Instead of "not a function", it now gets an "Illegal invocation" error.

Related to bug #728

NOTE: It fails when in the AOZ Viewer.

In a web browser, it works properly, since it is using the normal browser alert box.

Actions #6

Updated by Brian Flanagan about 3 years ago

  • Status changed from New to Resolved
  • Target version set to 1.0.0 (B10) u16

Re-tested in 1.0.0 (B10) u16

Works!

Actions

Also available in: Atom PDF