Skip to content

[Studio] Studio not displaying notifications #2323

@gramian

Description

@gramian

ArcadeDB Server v25.6.1-SNAPSHOT (build b70abd2eab7d877c0efcc04d55993bb3a1f82639/1751305773588/main)

Running on Mac OS X 15.4.1 - OpenJDK 64-Bit Server VM 21.0.7 (Homebrew)

Studio is not displaying notifications instead the "busy"-icon (spinning rainbow disk) is being shown (on the the "play" button.

To reproduce, send any errorneous input via studio, for example:

SELECT SELECT

Some analysis:

  • In https://github.com/ArcadeData/arcadedb/blob/main/studio/src/main/resources/static/js/studio-utils.js#L45 the globalNotify overloads the synonymous function in https://github.com/ArcadeData/arcadedb/blob/main/studio/src/main/resources/static/index.html#L79 and I think it the former should be removed.
  • Firefox (Inspect) reports the following error:
    Uncaught TypeError: document.body is null
    d http://localhost:2480/dist/js/notyf.min.js:1
    l http://localhost:2480/dist/js/notyf.min.js:1
    <anonymous> http://localhost:2480/:70
    
  • I think this error and the absence of notifications is due to the incomplete initialization of the new notification addon notyf. If the globalNotify function in studio-utils.js is removed the following error occurs:
    Uncaught ReferenceError: can't access lexical declaration 'notyf' before initialization
    globalNotify http://localhost:2480/:85
    globalNotifyError http://localhost:2480/js/studio-utils.js:41
    executeCommandGraph http://localhost:2480/js/studio-database.js:539
    jQuery 6
    executeCommandGraph http://localhost:2480/js/studio-database.js:500
    executeCommand http://localhost:2480/js/studio-database.js:411
    Enter http://localhost:2480/:587
    sl http://localhost:2480/dist/js/codemirror.js:1
    hl http://localhost:2480/dist/js/codemirror.js:1
    _o http://localhost:2480/dist/js/codemirror.js:1
    i http://localhost:2480/dist/js/codemirror.js:1
    cl http://localhost:2480/dist/js/codemirror.js:1
    ul http://localhost:2480/dist/js/codemirror.js:1
    hl http://localhost:2480/dist/js/codemirror.js:1
    dl http://localhost:2480/dist/js/codemirror.js:1
    oi http://localhost:2480/dist/js/codemirror.js:1
    ve http://localhost:2480/dist/js/codemirror.js:1
    Al http://localhost:2480/dist/js/codemirror.js:1
    Al http://localhost:2480/dist/js/codemirror.js:1
    Al http://localhost:2480/dist/js/codemirror.js:1
    fromTextArea http://localhost:2480/dist/js/codemirror.js:1
    renderCodeEditor http://localhost:2480/:570
    initQuery http://localhost:2480/:539
    login http://localhost:2480/js/studio-database.js:24
    updateDatabases http://localhost:2480/js/studio-database.js:92
    jQuery 6
    updateDatabases http://localhost:2480/js/studio-database.js:46
    login http://localhost:2480/js/studio-database.js:23
    <anonymous> http://localhost:2480/:1228
    jQuery 9
    <anonymous> http://localhost:2480/:1226
    jQuery 13
    localhost:2480:85:11
    

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions