R0tenur / visualization

MIT License
179 stars 27 forks source link

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

Closed jaypatrick closed 12 months ago

jaypatrick commented 1 year ago

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.

docindata commented 1 year ago

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

eulkloss commented 1 year ago

Same issue... image

CAPREITMiruss commented 1 year ago

Same here.

primaproxima commented 1 year ago

Same here w/ version 0.8.5

Syntax error in graph
mermaid version 8.13.8
R0tenur commented 1 year ago

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

bmschwa commented 1 year ago

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.

R0tenur commented 1 year ago
Screenshot 2023-09-05 at 12 13 39

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

bmschwa commented 1 year ago

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

Thanks much for the quick response.

R0tenur commented 1 year ago

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

R0tenur commented 12 months ago

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