-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Can't get it to work without modifying ReferenceCollectorCLI.gd #63
Comments
I just updated the script, the help function name was incorrect. You can run Then, I'd need a complete log to see what isn't working. Could you open the script and add a line with The ./generate_reference ~/Repositories/other/nakama-godot/project/ -o export-nakama -d addons I'll update the docstring right away to clear the confusion. |
Yeah the first command I tried when I discovered -d was "." and the second one was Here is the full log after editing the script and adding
Then the resulting reference.json is attached below (faulty_files.zip) and when I run
The resulting .md are also attached in the faulty_files.zip below. Since I was already editing the But I noticed:
I don't know if these things weren't supposed to work out of the box and if I'm missing some setups, either in the plugin/project or in hugos configurations, I literally just started learning hugo last weekend. The files for this are in the good_files.zip or in the repository (master branch has the json and the godot project files, docs-project branch has the docs hugo project, and gh-pages branch is the public folder of the hugo project, where the site is published) |
If you are reading this through an email or notification, just enjoy your holidays and don't bother looking at the issue :) but if you have a bit of time... I just wanted to report that I had a similar issue running What I did:
Expected output
Actual output
{
"name": "godot-template",
"description": "",
"version": null,
"classes": [
]
}
Problem 1 (fixed)I got the script to produce a correct output for See diff here: #74 Problem 2
I guess this is because |
I'm submitting a...
Bug report
I'm trying to use this for a plugin I'm making to integrate games with GameJolt API. I'm still at the beginning and this is mostly for learning purposes. I wanted to do a plugin and also set up a documentation page with this plugin and hugo here at github pages. But I can barely get past the
./generate_reference
part because of errors with the directories path and I can only get it to work by modifying theReferenceCollectorCLI.gd
The repository I'm working on is: https://github.com/eh-jogos/eh_GameJolt and the docs page at https://eh-jogos.github.io/eh_GameJolt/reference/classes/eh_gjusersauthrequest/ (that's the only half decent page so far)
What is the current behavior?
So when I just use
./generate_reference ../demo-project
I get a "The directory does not exist: res://src" error, and If I try to pass anything to -d nothing works and the only way I got it to work was editingReferenceCollectorCLI.gd
directly so that it'svar directories := ["res://src"]
becamevar directories := ["res://"]
and not passing anything to -dWhen I try to pass something to -d here are some results:
./generate_reference ../demo-project -d "addons"
or./generate_reference ../demo-project -d .
-gives no "The directory does not exist: res://src" and generates some kind of reference.json, but hugo export turns out to be just a single ".md" file (with no name, it just "empty-string.md") with nothing in it or something from one of my files./generate_reference ../demo-project -d "res://addons/"
or./generate_reference ../demo-project -d res://addons/
gives me the same "The directory does not exist: res://src" error and a few lines before it printsWhen I try to modify the "generate_reference" script to echo the result of $args it prints
"res",://"addons",/
and I have no Idea what that regex is trying to do, I tried to modify it by trial and error and got nowhere.What is the expected behavior?
I guess either I'm using the -d wrong, as I didn't find any documentation talking about it, I only discovered it existed when I started to read the source to try and find the "The directory does not exist: res://src" error, or that option is not working correctly? Anyway I assume that option would be there so I could give if a folder and not have to change the directory directly in ReferenceCollectorCLI.gd.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
Well for me its just trying to run
./generate_reference
on my project or trying to run this script passing a -d argument in the form of a godot path "res://some_folder"Feature request
Describe the problem you're trying to solve.
Tell us which solutions you've explored, the solution you would pick, and why you think it would be the best for everyone.
Other
Other information
The text was updated successfully, but these errors were encountered: