-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error: Image not found: images/... #797
Comments
I think this may be an image processing problem after the incorporation of pngcheck. Ping @opoudjis . |
Some investigation - see #796 (comment). |
The paths in the For instance, in the presentation XML generated on Ubuntu (found in <image src="/home/testuser/iso-19135/sources/iso-19135-2021/images/lutaml/lutaml20220913-4327-zyjutc.png" expected: <image src="./images/lutaml/lutaml20220913-4327-zyjutc.png" |
I think I know what happened with images prefix: D:/ not being recognised as an absolute path in metanorma-utils. It used to, and I have no idea what changed. |
What changed is @ronaldtse taking it upon himself to refactor metanorma-utils in metanorma/metanorma-utils@aee97ac , and introducing several bugs in the process, including this. @ronaldtse I have enough to do already without you disrupting functioning code. You also committed that code without giving me the opportunity to review it. This is not acceptable, and I will revert any future commits you make to Metanorma code if you have not first discussed them with me. Only PRs are acceptable. |
@opoudjis with latest metanorma-utils commit '3803557a36d3...' I get the error:
|
The problem with the latest crash is @opoudjis artificially split a method that is not supposed to be split: That these "method splits" should not happen and is representative of poor practice. |
I'm not the one who decided 10 lines per method is good practice. |
Hotfix metanorma-utils released, @Intelligent2013 |
@opoudjis the current behavior you committed does not generate datauri for an absolute file path. See the correct fix at metanorma/metanorma-utils#24 with specs. |
Source ticket: #796
I'm trying to generate presentation XML for the document https://github.com/metanorma/iso-19135
bundle exec metanorma -t iso -x presentation document.adoc
ended with createddocument.xml.abort
and error:The file
D:/Work/Metanorma/repositories/iso-19135/sources/iso-19135-2021/images/lutaml/lutaml20220913-7144-9w030j.png
physically is present on the disk, but there is a strange prefiximages/
beforeD:/Work
.It seems this issue occurs on Win platform only: https://github.com/metanorma/iso-19135/actions/runs/3040514350/jobs/4896647319
The text was updated successfully, but these errors were encountered: