Skip to content

Dockerfile: The file /game/reference.json was not found  #96

@Turtyo

Description

@Turtyo

I'm submitting a...

  • Bug report.
  • Feature request.

Bug report

This is a potential bug on the docker image (pulled from the official docker image

What is the current behavior?
When running:

sudo docker run --rm -v /home/turtyo/[a path]/doc_comment_test:/game -v /home/turtyo/[a path]/doc_comment_test/doc:/output gdquest/gdscript-docs-maker:latest /game -o /output

I am getting:

Checking parameters
Copying collectors to project directory
Generating reference json data...
Done.
There was an error generating the reference from Godot. The file /game/reference.json was not found.

What is the expected behavior?

The /game/reference.json should exist, or it does but not in the correct place, it should be where the script expect it to find

Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.

  • sudo docker pull gdquest/gdscript-docs-maker
  • sudo docker run --rm -v /home/turtyo/[a path]/doc_comment_test:/game -v /home/turtyo/[a path]/doc_comment_test/doc:/output gdquest/gdscript-docs-maker:latest /game -o /output

The project I'm doing this one (basically a copy of the Godot's example on documenting code, nothing fancy)

project.zip

Other

Other information

Here is the godot.log file i'm getting after running the docker instance:

Godot Engine v3.3.2.stable.official - https://godotengine.org

**ERROR**: Failed to retrieve non-existent singleton 'GDScriptLanguageProtocol'.
   At: core/engine.cpp:198:get_singleton_object() - Condition "!E" is true. Returned: __null
**SCRIPT ERROR**: Attempt to call function 'get_workspace' in base 'null instance' on a null instance.
   At: res://Collector.gd:84:get_reference() - Attempt to call function 'get_workspace' in base 'null instance' on a null instance.
**SCRIPT ERROR**: Invalid type in function 'print_pretty_json' in base 'SceneTree (Collector.gd)'. Cannot convert argument 1 from Nil to Dictionary.
   At: res://ReferenceCollectorCLI.gd:19:_init() - Invalid type in function 'print_pretty_json' in base 'SceneTree (Collector.gd)'. Cannot convert argument 1 from Nil to Dictionary.
**ERROR**: Condition "_first != __null" is true.
   At: ./core/self_list.h:112:~List() - Condition "_first != __null" is true.
**ERROR**: Condition "_first != __null" is true.
   At: ./core/self_list.h:112:~List() - Condition "_first != __null" is true.
**WARNING**: ObjectDB instances leaked at exit (run with --verbose for details).
   At: core/object.cpp:2132:cleanup() - ObjectDB instances leaked at exit (run with --verbose for details).
**ERROR**: Resources still in use at exit (run with --verbose for details).
   At: core/resource.cpp:450:clear() - Resources still in use at exit (run with --verbose for details).

I'm noticing the container runs the 3.3.2 Godot version, but my project is in version 4.2.
There might a compatibility issue there, but I did not find the container that runs the 4.2 version (if it exists, please link it to me so i can test if that works or not)

Edit: this might be the exact same problem as #95

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions