R0tenur/visualization

An error occured! Status: COMPLETE Mermaid failed to parse data

Closed this issue · 10 comments

After installing extension for the first time attempting to view the schema, it immediately throws an error.

Expected Behavior

Schema should be displayed

Current Behavior

Throws an error immediately

An error occured!
Status: COMPLETE
Mermaid failed to parse data
Raw data:
"{"hash":{"text":".","token":"DOT","line":319,"loc":{"first_line":320,"last_line":320,"first_column":6,"last_column":19},"expected":["'NEWLINE'","'EOF'","'GENERICTYPE'","'LABEL'","'STYLE_SEPARATOR'","'STRUCT_START'","'ANNOTATION_END'","'STR'","'AGGREGATION'","'EXTENSION'","'COMPOSITION'","'DEPENDENCY'","'LINE'","'DOTTED_LINE'","'CALLBACK_NAME'","'HREF'","'UNICODE_TEXT'","'NUM'","'ALPHA'"]}}"

Found a bug?
Report it here: https://github.com/R0tenur/visualization/issues

DISMISS

Possible Solution

Display the schema

Steps to Reproduce

Install extension, select datable, click on show schema (also, the word "occurred" is misspelled in the error message.

Having the same issue with identical error message in Azure Data Studio

Same issue...
image

Same here.

Same here w/ version 0.8.5

Syntax error in graph
mermaid version 8.13.8

I have not been able to reproduce this, but might be because I just use sample db's
Would appreciate if someone could provide the generated md

  • dissmiss alert
  • export the md

Hey @R0tenur, I'm getting the same error. when I dismiss the alert, I don't see a way to export the mark down.... happy to send the offending piece if you can either point me towards instructions of how to export.

Screenshot 2023-09-05 at 12 13 39

On top where, it says "Export"
Select "md"

... Got it, when I updated to 0.9.1 - problem went away (and I see an export button).

Thanks much for the quick response.

I have done som adjustments to prevent syntax errors, but since I am not able to reproduce it on any of my dbs its very hard to test it

Will close this since no new activity since the latest release and I am not able to reproduce