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

Cli reader options #1860

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

0xfedcafe
Copy link
Contributor

Added a CLI reader option #1735

Copy link

github-actions bot commented Jan 3, 2025

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: python, java, webassembly.

Copy link

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.76%. Comparing base (9dbb696) to head (fc68b05).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1860      +/-   ##
==========================================
- Coverage   95.79%   95.76%   -0.03%     
==========================================
  Files         128      128              
  Lines       10396    10398       +2     
==========================================
- Hits         9959     9958       -1     
- Misses        437      440       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mwestphal
Copy link
Contributor

Do you need any help or review to move forward @0xfedcafe ?

@0xfedcafe
Copy link
Contributor Author

Do you need any help or review to move forward @0xfedcafe ?

Just that upper question about an optional and I’ll push hopefully the final commit for this task with the test

@mwestphal
Copy link
Contributor

Hi @0xfedcafe

How is it going ? Do you need any help ?

@mwestphal mwestphal linked an issue Mar 1, 2025 that may be closed by this pull request
@mwestphal
Copy link
Contributor

Hi @0xfedcafe

Please do not hesitate to reach out if you need any guidance :)

@mwestphal
Copy link
Contributor

Hi @0xfedcafe !

Do you need a review or help with CI ?

@0xfedcafe
Copy link
Contributor Author

Hi @0xfedcafe !

Do you need a review or help with CI ?

yes, i think a hint would be very helpful. i can't find why in some tests where the necessary plugins are loaded and the reader is not nullptr it still fails with "unsupported file format"

@@ -44,7 +46,7 @@ class factory
/**
* Get the reader that can read the given file, nullptr if none
*/
reader* getReader(const std::string& fileName);
reader* getReader(const std::string& fileName, std::optional<std::string_view> forceReader);
Copy link
Contributor

@mwestphal mwestphal Mar 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not sure about the the use of a std::optionalstd::string_view here. Isnt the force_reader option a std::optionalstd::string ? Is it converted seamlessly ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i thought that it would be converted seamlessly, but now i'm unsure, i'll check that, thanks!

fixes by mwestphal

Co-authored-by: Mathieu Westphal <mathieu.westphal@gmail.com>
@mwestphal
Copy link
Contributor

There a small conflict to fix with master, let me know if you need help with that

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 this pull request may close these issues.

Add a CLI option to select reader to use
2 participants