Coder Social home page Coder Social logo

Comments (4)

gprime31 avatar gprime31 commented on September 26, 2024 2

I had same problem
update rust to fix
2022-01-21_08-27

from nthim.

TheBinitGhimire avatar TheBinitGhimire commented on September 26, 2024

Hello @remonsec,

This issue occurs, because cargo install NtHiM ignores the Cargo.lock file in NtHiM, and tries to figure out and use newer version of the dependencies defined in the Cargo.toml file.

In this case, Cargo.toml and Cargo.lock files have defined the version v3.0.0-beta.2 for clap, however cargo tries to make use of clap v3.0.10, and this newer version appears to be using the help method instead of the about method, that leads to the issue.

You can fix this issue by using the --locked flag during installation, i.e. cargo install --locked NtHiM, which will force cargo to use the version defined in Cargo.toml and Cargo.lock files.

I will start implementing the help method from the upcoming release of NtHiM, as required by the newer releases of clap.

Failure during Installation (cargo install NtHiM)

clap v3.0.10 being used!

clap v3.0.10 being used!

Failure Message!

Failure Message!

Successful Installation (cargo install --locked NtHiM)

clap v3.0.0-beta.2 being used!

clap 3.0.0-beta.2 being used!

Successfully Installed!

Successfully Installed!

Thank you for opening up this issue!

Thanks,
@TheBinitGhimire

from nthim.

TheBinitGhimire avatar TheBinitGhimire commented on September 26, 2024

Hello @remonsec,

The new release of NtHiM, i.e. v0.1.4, is published now, which includes the support for the methods available in the latest version of clap, i.e. clap v3.0.10.

The guidelines I provided earlier would help you in successfully installing NtHiM v0.1.3. With this new release, the default command would work fine as well as you did. So, if you are willing to try out this new release, you shall skip the guidelines.

I hope you would try installing the latest version of NtHiM, i.e. NtHiM v0.1.4, using the same command that you used earlier, and let me know if you are still facing any issues during the installation.

Thanks,
@TheBinitGhimire

from nthim.

TheBinitGhimire avatar TheBinitGhimire commented on September 26, 2024

Hello @gprime31,

Thank you for providing the information that Rust/Cargo would have helped in fixing this problem too! I will mention this issue ID as well in the commit message along with #12 and #21 for the documentation update.

Thanks,
@TheBinitGhimire

from nthim.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.