Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

[BUG] Documentation GitHub workflow is broken: Invalid miniclass definition: DSLSpecification #728

Closed
apupier opened this issue Jun 28, 2023 · 1 comment · Fixed by #730
Assignees
Labels
bug Something isn't working
Milestone

Comments

@apupier
Copy link
Contributor

apupier commented Jun 28, 2023

Describe the bug

> @ docs-api /home/runner/work/kaoto-backend/kaoto-backend
> leafdoc -t leafdoc-templates/plain -o docs/index.html -c "🐱" leafdoc-templates/index.leafdoc */src/main/java/ -e true -x .java

Invalid miniclass definition:  DSLSpecification
Error: No class/namespace set when parsing through:
null
🐱method identifier: String

Returns the identifier of the supported language.

This must be unique on the whole Kaoto instance and relates the deployments and parsers services with the DSL
specification.
file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:371
					if (!currentNamespace.supersections.hasOwnProperty(dt)) {
					                      ^

TypeError: Cannot read property 'supersections' of undefined
    at Leafdoc.addStr (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:371:28)
    at Leafdoc.addBuffer (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:193:15)
    at Leafdoc.addFile (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:185:15)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:174:10)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:169:10)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:169:10)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:169:10)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:169:10)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:169:10)
    at Leafdoc.addDir (file:///home/runner/work/kaoto-backend/kaoto-backend/node_modules/leafdoc/src/leafdoc.mjs:169:10)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Documentation GitHub action working

Logs
If applicable, add logs to help explain your problem.

Environment (please complete the following information):

Additional context

failure was relatively hidden because another job is failign for a long time and so there was a red cross on all commit of main branch for a very long time #530

@apupier apupier added the bug Something isn't working label Jun 28, 2023
@apupier
Copy link
Contributor Author

apupier commented Jun 28, 2023

@apupier apupier changed the title [BUG] Documentation GitHub workflow is broken [BUG] Documentation GitHub workflow is broken: Invalid miniclass definition: DSLSpecification Jun 28, 2023
apupier added a commit to apupier/kaoto-backend that referenced this issue Jun 28, 2023
miniclass of leafdoc was used without a "parent" class
Changed to use as class

fixes kaoto-archive#728

Signed-off-by: Aurélien Pupier <[email protected]>
@apupier apupier self-assigned this Jun 28, 2023
@apupier apupier added this to the 1.1.0 milestone Jun 28, 2023
Delawen pushed a commit that referenced this issue Jun 28, 2023
miniclass of leafdoc was used without a "parent" class
Changed to use as class

fixes #728

Signed-off-by: Aurélien Pupier <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant