Code Monkey home page Code Monkey logo

Comments (2)

tak1n avatar tak1n commented on August 16, 2024

The problem was in https://github.com/docopt/docopt.rs, because debug has been removed (docopt/docopt.rs#29).
And clog has Cargo.lock checked in, therefore you have to run cargo update to update the dependencies.

After updating docopt.rs is able to compile but clog itself has some errors:

benny@bennyklotz:~/Web/rust/learn/clog $ cargo update                                                                                          [5/4600]
    Updating git repository `https://github.com/docopt/docopt.rs`
benny@bennyklotz:~/Web/rust/learn/clog $ cargo build
   Compiling docopt v0.6.5 (https://github.com/docopt/docopt.rs#1c9a63e0)
   Compiling docopt_macros v0.6.5 (https://github.com/docopt/docopt.rs#1c9a63e0)
   Compiling clog v0.2.0 (file:///home/benny/Web/rust/learn/clog)
/home/benny/Web/rust/learn/clog/src/git.rs:21:21: 21:34 error: type `core::option::Option<std::io::pipe::PipeStream>` does not implement any method in scope named `get_mut_ref`
/home/benny/Web/rust/learn/clog/src/git.rs:21             .stdout.get_mut_ref().read_to_string()
                                                                  ^~~~~~~~~~~~~
/home/benny/Web/rust/learn/clog/src/git.rs:33:21: 33:34 error: type `core::option::Option<std::io::pipe::PipeStream>` does not implement any method in scope named `get_mut_ref`
/home/benny/Web/rust/learn/clog/src/git.rs:33             .stdout.get_mut_ref().read_to_string()
                                                                  ^~~~~~~~~~~~~
/home/benny/Web/rust/learn/clog/src/git.rs:52:21: 52:34 error: type `core::option::Option<std::io::pipe::PipeStream>` does not implement any method in scope named `get_mut_ref`
/home/benny/Web/rust/learn/clog/src/git.rs:52             .stdout.get_mut_ref().read_to_string()
                                                                  ^~~~~~~~~~~~~
/home/benny/Web/rust/learn/clog/src/git.rs:57:30: 57:47 error: the type of this value must be known in this context
/home/benny/Web/rust/learn/clog/src/git.rs:57             .filter(| entry| entry.commit_type != Unknown)
                                                                           ^~~~~~~~~~~~~~~~~
/home/benny/Web/rust/learn/clog/src/section_builder.rs:15:26: 15:77 error: type `std::collections::hashmap::map::HashMap<collections::string::String,c$llections::vec::Vec<common::LogEntry>>` does not implement any method in scope named `find_or_insert`
/home/benny/Web/rust/learn/clog/src/section_builder.rs:15                         .find_or_insert(entry.component.clone(), Vec::new())
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/benny/Web/rust/learn/clog/src/section_builder.rs:20:26: 20:77 error: type `std::collections::hashmap::map::HashMap<collections::string::String,c$llections::vec::Vec<common::LogEntry>>` does not implement any method in scope named `find_or_insert`
/home/benny/Web/rust/learn/clog/src/section_builder.rs:20                         .find_or_insert(entry.component.clone(), Vec::new())
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 6 previous errors
Could not compile `clog`.

To learn more, run the command again with --verbose.

from clog-cli.

cburgdorf avatar cburgdorf commented on August 16, 2024

Exactly, you can run cargo update to get the latest docopt. But as @bennyklotz noted, there are a couple of issues with clog against latest rust. Anyone cares to look into it?

from clog-cli.

Related Issues (20)

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.