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

Error with the input argument #1

Closed
shkaff opened this issue Oct 20, 2017 · 5 comments
Closed

Error with the input argument #1

shkaff opened this issue Oct 20, 2017 · 5 comments
Labels

Comments

@shkaff
Copy link

shkaff commented Oct 20, 2017

Hello,

I tried running the filter, but every time I get an error

$ mathematica-notebook-filter -i input_test.nb -o test.nb error: The argument '--input <FILE>' requires 1 values, but 2 were provided

Same goes with --input instead of -i. Sometimes without any change on my side it gives the same error for the --output argument.

The system is MacOSX HighSierra, the installation went without problem, but it never worked.

Thanks!

@JP-Ellis
Copy link
Owner

Did you, by any chance, clone the repository first and then run cargo update before installing it? If so, then this is a known known bug (clap-rs/clap#1050) in the clap dependency of mathematica-notebook-filter.

I would recommend you install mathematica-notebook-filter through

cargo install mathematica-notebook-filter

instead of cloning the repository. If you wish to make changes to the code, then you'll have to revert the update to clap 2.26.0.

@shkaff
Copy link
Author

shkaff commented Oct 21, 2017

I have installed it through cargo install mathematica-notebook-filter and didn't do any other updates on cargo. Is it possible that installing cargo itself dragged that latest version of clap together with this bug?
I'm sorry, I'm really not familiar with Rust (and cargo), how would I check the version of clap installed currently?

@JP-Ellis
Copy link
Owner

For binaries published on crates.io, I believe that all dependencies are always exact, so it must've accidentally been published with version 1.2.0.

I have released version 1.3.0 which requires clap = 2.26.0 exactly. It is available on crates.io and you can update to it with:

cargo install --force mathematica-notebook-filter

@shkaff
Copy link
Author

shkaff commented Oct 21, 2017

Perfect, that works! Thank you very much for you help and a really great tool!

@JP-Ellis
Copy link
Owner

Good to hear! Glad you're founding it useful (and let me know if you find any bugs)

@JP-Ellis JP-Ellis added the bug label Oct 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants