Mermaid code blocks in markdown showing error #9681

Closed
opened 2025-11-02 08:46:27 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @dvjn on GitHub (Oct 12, 2022).

Description

When I create a mermaid code block in a markdown file, error banners are shown on each character input.
Also, in the preview tab, the height of the mermaid diagram is broken.

This is working properly on v1.17 but breaking on dev.

Stacktrace:

22:32:03.497 Uncaught Error: Language id "vs.editor.nullLanguage" is not configured nor known

F@https://try.gitea.io/assets/js/monaco.943e8892.js:135:7465
getLanguageConfiguration@https://try.gitea.io/assets/js/monaco.943e8892.js:135:7221
getLanguageConfiguration@https://try.gitea.io/assets/js/monaco.943e8892.js:154:21355
getWordAtPosition@https://try.gitea.io/assets/js/monaco.943e8892.js:154:21664
getWordAtPosition@https://try.gitea.io/assets/js/monaco.943e8892.js:163:10576
Ue@https://try.gitea.io/assets/js/monaco.943e8892.js:251:5156
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/rt/<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:3900
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/X/<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6704
X@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6467
rt@https://try.gitea.io/assets/js/monaco.943e8892.js:251:3856
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/update/</Kt</<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:525
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/X/<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6704
X@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6467
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/update/</Kt<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:473
T@https://try.gitea.io/assets/js/monaco.943e8892.js:28:79091
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/update/<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:467
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/X/<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6704
X@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6467
update@https://try.gitea.io/assets/js/monaco.943e8892.js:251:345
./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/ve/this.updateSoon<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:10076
doRun@https://try.gitea.io/assets/js/monaco.943e8892.js:28:83100
onTimeout@https://try.gitea.io/assets/js/monaco.943e8892.js:28:83040
    unexpectedErrorHandler https://try.gitea.io/assets/js/monaco.943e8892.js:30
monaco.943e8892.js:30:12

Gitea Version

dev

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image
image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker Image: gitea/gitea:dev

Database

SQLite

Originally created by @dvjn on GitHub (Oct 12, 2022). ### Description When I create a mermaid code block in a markdown file, error banners are shown on each character input. Also, in the preview tab, the height of the mermaid diagram is broken. This is working properly on v1.17 but breaking on dev. Stacktrace: ```python 22:32:03.497 Uncaught Error: Language id "vs.editor.nullLanguage" is not configured nor known F@https://try.gitea.io/assets/js/monaco.943e8892.js:135:7465 getLanguageConfiguration@https://try.gitea.io/assets/js/monaco.943e8892.js:135:7221 getLanguageConfiguration@https://try.gitea.io/assets/js/monaco.943e8892.js:154:21355 getWordAtPosition@https://try.gitea.io/assets/js/monaco.943e8892.js:154:21664 getWordAtPosition@https://try.gitea.io/assets/js/monaco.943e8892.js:163:10576 Ue@https://try.gitea.io/assets/js/monaco.943e8892.js:251:5156 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/rt/<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:3900 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/X/<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6704 X@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6467 rt@https://try.gitea.io/assets/js/monaco.943e8892.js:251:3856 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/update/</Kt</<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:525 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/X/<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6704 X@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6467 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/update/</Kt<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:473 T@https://try.gitea.io/assets/js/monaco.943e8892.js:28:79091 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/update/<@https://try.gitea.io/assets/js/monaco.943e8892.js:251:467 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/X/<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6704 X@https://try.gitea.io/assets/js/monaco.943e8892.js:250:6467 update@https://try.gitea.io/assets/js/monaco.943e8892.js:251:345 ./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.contribution.js/ve/this.updateSoon<@https://try.gitea.io/assets/js/monaco.943e8892.js:250:10076 doRun@https://try.gitea.io/assets/js/monaco.943e8892.js:28:83100 onTimeout@https://try.gitea.io/assets/js/monaco.943e8892.js:28:83040 unexpectedErrorHandler https://try.gitea.io/assets/js/monaco.943e8892.js:30 monaco.943e8892.js:30:12 ``` ### Gitea Version dev ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://user-images.githubusercontent.com/62170586/195405418-316214c8-b0ee-4adb-8542-46593fb3f869.png) ![image](https://user-images.githubusercontent.com/62170586/195406037-dce805aa-fd7c-44d5-91a5-15cab934c85c.png) ![image](https://user-images.githubusercontent.com/62170586/195405791-fa4e3863-6597-4141-891d-4a6f5a07d07d.png) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker Image: `gitea/gitea:dev` ### Database SQLite
GiteaMirror added the issue/confirmedtype/bugtype/upstream labels 2025-11-02 08:46:28 -06:00
Author
Owner

@silverwind commented on GitHub (Oct 12, 2022):

Seems this is a bug introduced in Monaco 0.34: https://github.com/microsoft/monaco-editor/issues/2962.

I don't think we can do anything about it until it's fixed upstream, at best, we could filter out this specific error message or downgrade Monaco.

@silverwind commented on GitHub (Oct 12, 2022): Seems this is a bug introduced in Monaco 0.34: https://github.com/microsoft/monaco-editor/issues/2962. I don't think we can do anything about it until it's fixed upstream, at best, we could filter out this specific error message or downgrade Monaco.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9681