Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QML issue #4

Open
manipuladordedados opened this issue Jul 22, 2024 · 1 comment
Open

QML issue #4

manipuladordedados opened this issue Jul 22, 2024 · 1 comment

Comments

@manipuladordedados
Copy link

I've encountered an issue with the QML syntax. Although it is similar to JavaScript, the plugin does not recognize it, and all the code remains uncolored.

@manipuladordedados
Copy link
Author

If QML is included as one of the options in the antora-shiki-extension within the antora-playbook.yml, the following error occurs, and the project generation is aborted:

[02:35:02.579] FATAL (antora): Cannot read properties of undefined (reading 'id')
    Cause: TypeError
        at Registry.resolveEmbeddedLanguages (/builds/manipuladordedados/docs/node_modules/shiki/dist/index.js:3089:35)
        at Registry.loadLanguages (/builds/manipuladordedados/docs/node_modules/shiki/dist/index.js:3075:12)
        at Object.getHighlighter (/builds/manipuladordedados/docs/node_modules/shiki/dist/index.js:3152:19)
        at async createHighlighter (/builds/manipuladordedados/docs/node_modules/antora-shiki-extension/lib/shiki/highlighter-factory.js:64:10)
        at async GeneratorContext.<anonymous> (/builds/manipuladordedados/docs/node_modules/antora-shiki-extension/lib/index.js:28:36)
        at async GeneratorContext.notify (/builds/manipuladordedados/docs/node_modules/@antora/site-generator/lib/generator-context.js:60:39)
        at async generateSite (/builds/manipuladordedados/docs/node_modules/@antora/site-generator/lib/generate-site.js:32:5)
        at async Command.parseAsync (/usr/local/share/.config/yarn/global/node_modules/commander/lib/command.js:935:5)

Full Log

After removing QML from the languages configuration in the antora-shiki-extension within the antora-playbook.yml, the project is generated, but with the following errors and warnings:

[02:44:00.183] ERROR (asciidoctor): No language registration for qml
    file: doc/modules/ref/pages/qt6.adoc
    source: https://gitlab.com/emilua/qt6.git (branch: master | start path: doc)
[ 'stack', 'message' ]
[02:44:00.201] ERROR (asciidoctor): No language registration for qml
    file: doc/modules/ref/pages/qt6.adoc
    source: https://gitlab.com/emilua/qt6.git (branch: master | start path: doc)
[ 'stack', 'message' ]
[02:44:00.319] ERROR (asciidoctor): No language registration for qml
    file: doc/modules/ref/pages/qt5.adoc
    source: https://gitlab.com/emilua/qt5.git (branch: master | start path: doc)
[ 'stack', 'message' ]
[02:44:00.355] ERROR (asciidoctor): No language registration for qml
    file: doc/modules/ref/pages/qt5.adoc
    source: https://gitlab.com/emilua/qt5.git (branch: master | start path: doc)

Full Log

Here is a screenshot of the generated page, highlighting the formatting errors:
QML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant