-
Notifications
You must be signed in to change notification settings - Fork 91
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
Stubname field added to YML databases without any documentation #814
Comments
It's target name of the generated stub static library. This is done because library name != stub name |
I see. Thanks. Where should we put a documentation about these YML databases? I advice in a new file docs/db_file_format.txt and in markdown. |
I have found another issue caused by the add of the 'stubname' YAML field. Indeed, running Before I updated vitasdk: python build.py
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
warning: line: 0, column: 0, unknow tag 'version'.
error: line: 7, column: 18, unrecognised library key 'stubname'. After I updated vitasdk: python build.py
error: line: 7, column: 18, unrecognised library key 'stubname'. These logs do not mention which file is faulty, line 7 of which file... build.py logging should be improved to help solving errors. By deduction, it could be the fault of vita-libs-gen. There might be a link with vitasdk/vita-toolchain#246 because again it is @Princess-of-Sleeping's commit. This could be probably fixed by updating vita-toolchain, but again, a YAML documentation is needed because it seems that vitasdk maintainers meet many issues related to this (see also issues in vita-toolchain). |
Another still open issue on this subject: vitasdk/vita-toolchain#95. I hope that these issues will be fixed by documenting the YAML format then rewriting vita-libs-gen and other YAML parsers to skip unnecessary fields or by externalizing the optional fields to different files so that the mandatory YAML files can still be parsed without error. |
It seems that vdpm, which is what I used, does not install latest version of vita-headers and vita-toolchain. Here is the proof that So I wonder why it does not work in vita-headers/build.py... Probably because vdpm did not install latest vita-toolchain... To confirm. |
Here's the stub lib name generation function that i've managed to isolate from the |
Thank you @zetanumbers. |
Yep. I'm tracking changes. I'm planning to add CI check for that.
Not sure, code seemed pretty similair. Maybe it splits/joins some nids when compared. I've only had an issue with stub lib names.
This function is for internal use. It's not that hard to read. But if you need it: here's python version |
vita-libs-gen was only able to process up to 1024 (?) entries from one yml at a time. vita-libs-gen-2 improved them to be able to handle multiple ymls at once and removed the maximum entry limit. Also added stubname for proper placement of db. |
Document added to template. |
Since commit 4e726a1 by @Princess-of-Sleeping, a
stubname
field was added to some (not all) libraries in the yml databases.This leads to two issues:
stubname
mean? I could not find any documentation on this. This should be documented in a description of the YAML structure. Where is thisstubname
field used? I could not find any clear usage of this field. There could be a mistake with the term "library name".com.esotericsoftware.yamlbeans.YamlReader$YamlReaderException: Line 7, column 17: Unable to find property 'stubname' on class
. So I had to add thispublic String stubname;
field to my Java class. This is not a major issue but this shows that YAML fields additions can break parsers. I would expect a YAML parser to just skip undeclared fields.Please at least fix the first issue by answering my questions in some YAML documentation file on this repository. Regards
The text was updated successfully, but these errors were encountered: