Bug 404127 - Crashes if Cargo.toml isn't in the same dir as bindings.json
Summary: Crashes if Cargo.toml isn't in the same dir as bindings.json
Status: RESOLVED UNMAINTAINED
Alias: None
Product: rust-qt-binding-generator
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-09 06:47 UTC by Sashanoraa
Modified: 2024-09-22 20:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sashanoraa 2019-02-09 06:47:49 UTC
SUMMARY

rqbg seems to be expecting Cargo.toml to be in the same directory as bindings.json.  It just prints `No such file or directory (os error 2)`
and exits if the file isn't there.  It should probably print a better
error and there should probably be a flag to set this path to the file
if to set the edition or something.

configuration.rs:473 is where it's crashing


STEPS TO REPRODUCE
1. Run rqbg where Cargo.toml isn't in the same directory as bindings.json

OBSERVED RESULT
No such file or directory (os error 2)


EXPECTED RESULT
Bindings are generated


SOFTWARE/OS VERSIONS
Manjaro w KDE

ADDITIONAL INFORMATION
rustc v1.32.0
Comment 1 Jos van den Oever 2019-02-09 09:02:18 UTC
Can you check with version 0.3.1 (master)?
Comment 2 Christoph Cullmann 2024-09-22 20:07:54 UTC
rust-qt-binding-generator is no longer maintained, please try more recent alternatives like

https://github.com/KDAB/cxx-qt/