chipsenkbeil / vimwiki-rs

Rust library and tooling to parse, render, and modify vimwiki text and files.
56 stars 2 forks source link

Cargo error: could not find `vimwiki-server` in registry `https://github.com/rust-lang/crates.io-index` with version `*` #105

Closed tinmarino closed 3 years ago

tinmarino commented 3 years ago

A small self-fixed issue I'd like to share to potential users (at install).

cargo install vimwiki-server
    Updating crates.io index
error: could not find `vimwiki-server` in registry `https://github.com/rust-lang/crates.io-index` with version `*`

Should be (currently) replaced with:

cargo install --git https://github.com/chipsenkbeil/vimwiki-rs 

Cargo is delicate but vimwiki-server is well there

See you.

tinmarino commented 3 years ago

Edit: Last install I got with (so I edited the previous with --git)

cargo install vimwiki-server --version 0.1.0-alpha.1
   Compiling warp v0.2.5
   Compiling vimwiki-server v0.1.0-alpha.1
error[E0432]: unresolved imports `vimwiki::components`, `vimwiki::LangParserError`, `vimwiki::RawStr`, `vimwiki::LC`
 --> /home/tourneboeuf/.cargo/registry/src/github.com-1ecc6299db9ec823/vimwiki-server-0.1.0-alpha.1/src/lib.rs:1:19
  |
1 | pub use vimwiki::{components, LangParserError, RawStr, LC};
  |                   ^^^^^^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^  ^^ no `LC` in the root
  |                   |           |                |
  |                   |           |                no `RawStr` in the root
  |                   |           no `LangParserError` in the root
  |                   |           help: a similar name exists in the module: `ParseError`
  |                   no `components` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `vimwiki-server`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `vimwiki-server v0.1.0-alpha.1`, intermediate artifacts can be found at `/tmp/cargo-installgZ67Ys`

Caused by:
  build failed
chipsenkbeil commented 3 years ago

@tinmarino, I think I need to lock the versions in place. Prior to having a real 0.1.0 release, the versions pulled in (e.g. vimwiki-server pulls in vimwiki) aren't consistent.

Version 0.1.0-alpha.5 was the first version that had a usable vimwiki-server, but I've since refactored a lot of it. Finishing up HTML output from vimwiki syntax and then I'll be close to releasing a real 0.1.0.