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

KeyError: 'name' while generating markdown files #95

Open
1 of 2 tasks
SpyrexDE opened this issue Jan 15, 2024 · 4 comments · May be fixed by #97
Open
1 of 2 tasks

KeyError: 'name' while generating markdown files #95

SpyrexDE opened this issue Jan 15, 2024 · 4 comments · May be fixed by #97

Comments

@SpyrexDE
Copy link

SpyrexDE commented Jan 15, 2024

I'm submitting a...

  • Bug report.
  • Feature request.

Bug report

What is the current behavior?
I followed the documentation on the readme to setup the docs-maker but it gives me an error while generating the markdownfiles.


$ git clone https://github.com/GDQuest/gdscript-docs-maker.git
Cloning into 'gdscript-docs-maker'...
$ mkdir -p documentation/api-reference
$ cd gdscript-docs-maker/
$ ./generate_reference ../code/game_dir_containg_the_godot.project_file -o ../documentation/api-reference
Checking parameters
Copying collectors to project directory
Generating reference json data...
Done.
Generating markdown files in ../documentation/api-reference
Error running gdscript_docs_maker. This is the log:
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/dist-packages/gdscript_docs_maker/__main__.py", line 74, in <module>
    main()
  File "/usr/local/lib/python3.9/dist-packages/gdscript_docs_maker/__main__.py", line 35, in main
    project_info: ProjectInfo = ProjectInfo.from_dict(data)
  File "/usr/local/lib/python3.9/dist-packages/gdscript_docs_maker/gdscript_objects.py", line 93, in from_dict
    return ProjectInfo(data["name"], data["description"], data["version"])
KeyError: 'name'

This also happens when run as root.
Im on Debian GNU/Linux 11 and the project as well as the server generating the docs is using Godot 4.2.1.stable.official.b09f793f5

@raldone01
Copy link

raldone01 commented Jan 16, 2024

4.1.3 is the latest version I got to work.
I changed the first line in the Dockerfile to FROM docker.io/barichello/godot-ci:4.1.3.
All later versions fail.
I think it may be related to abarichello/godot-ci#127.

Another issue is with:

var workspace = Engine.get_singleton('GDScriptLanguageProtocol').get_workspace()

The singleton seems to not be available at _init time anymore. See godotengine/godot#86132.

If anyone wants a professional and well made ci pipeline for godot 4.1.3 addons that generates beautiful documentation check out this.

@SpyrexDE
Copy link
Author

@raldone01 I am generating the docs on my Raspberry PI so 4.2 is the minimum version I can use due to arm support. Just tried the latest dev build (4.3.dev2.official.352434668) but still get the same error :(

@SpyrexDE
Copy link
Author

Seems like Godot 4 is now officially not supported anymore. Are there any plans on porting it? @NathanLovato

@NathanLovato
Copy link
Contributor

No, I don't have time. If someone would like to maintain this for Godot 4 that'd be very much welcome, but I won't be able to do it.

@nathanfranke nathanfranke linked a pull request May 16, 2024 that will close this issue
2 tasks
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

Successfully merging a pull request may close this issue.

3 participants