Feel-ix-343 / markdown-oxide

Robust, Minimalist, Unbundled PKM for your favorite text-editor through the LSP
https://oxide.md
GNU General Public License v3.0
925 stars 15 forks source link

Installing via Cargo not working #105

Closed sommerper closed 4 months ago

sommerper commented 4 months ago

Hi!

I'm trying to install for Moxide for Helix and executing this per front-page instructions:

❯ cargo install --locked --git https://github.com/Feel-ix-343/markdown-oxide.git markdown-oxide

    Updating git repository `https://github.com/Feel-ix-343/markdown-oxide.git`
  Installing markdown-oxide v0.0.21 (https://github.com/Feel-ix-343/markdown-oxide.git#799d8f89)
    Updating crates.io index
    Updating git repository `https://github.com/Feel-ix-343/tower-lsp`
  Downloaded fuzzydate v0.2.2
  Downloaded crossbeam-epoch v0.9.14
  Downloaded convert_case v0.6.0
  Downloaded auto_impl v1.1.0
  Downloaded nanoid v0.4.0
  Downloaded memoffset v0.8.0
  Downloaded json5 v0.4.1
  Downloaded pest_derive v2.7.8
  Downloaded dashmap v5.5.3
  Downloaded pest_generator v2.7.8
  Downloaded pest_meta v2.7.8
  Downloaded unsafe-libyaml v0.2.11
  Downloaded serde_yaml v0.9.34+deprecated
  Downloaded nucleo-matcher v0.3.1
  Downloaded pest v2.7.8
  Downloaded tokio v1.34.0
  Downloaded 16 crates (1.3 MB) in 0.51s
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.1.0
   Compiling libc v0.2.150
   Compiling cfg-if v1.0.0
   Compiling serde v1.0.196
   Compiling thiserror v1.0.58
   Compiling memchr v2.6.4
   Compiling scopeguard v1.1.0
   Compiling once_cell v1.18.0
   Compiling crunchy v0.2.2
   Compiling tiny-keccak v2.0.2
   Compiling futures-core v0.3.29
   Compiling version_check v0.9.4
   Compiling parking_lot_core v0.9.9
   Compiling pin-project-lite v0.2.13
   Compiling hashbrown v0.14.2
   Compiling crossbeam-utils v0.8.15
   Compiling smallvec v1.11.2
   Compiling futures-sink v0.3.29
   Compiling tinyvec_macros v0.1.1
   Compiling ucd-trie v0.1.6
   Compiling futures-channel v0.3.29
   Compiling futures-task v0.3.29
   Compiling tinyvec v1.6.0
   Compiling itoa v1.0.9
   Compiling proc-macro-error-attr v1.0.4
   Compiling syn v1.0.109
   Compiling serde_json v1.0.113
   Compiling equivalent v1.0.1
   Compiling ryu v1.0.15
   Compiling futures-util v0.3.29
   Compiling lock_api v0.4.11
   Compiling slab v0.4.9
   Compiling memoffset v0.8.0
   Compiling crossbeam-epoch v0.9.14
   Compiling num-traits v0.2.18
   Compiling proc-macro-error v1.0.4
   Compiling futures-io v0.3.29
   Compiling unicode-bidi v0.3.13
   Compiling async-trait v0.1.74
   Compiling pin-utils v0.1.0
   Compiling percent-encoding v2.3.0
   Compiling tracing-core v0.1.32
   Compiling indexmap v2.2.6
   Compiling httparse v1.8.0
   Compiling winnow v0.6.5
   Compiling rayon-core v1.11.0
   Compiling unicode-segmentation v1.11.0
   Compiling quote v1.0.35
   Compiling num_cpus v1.15.0
   Compiling getrandom v0.2.12
   Compiling socket2 v0.5.5
   Compiling mio v0.8.9
   Compiling signal-hook-registry v1.4.1
   Compiling syn v2.0.48
   Compiling unicode-normalization v0.1.22
   Compiling rand_core v0.6.4
   Compiling parking_lot v0.12.1
   Compiling const-random-macro v0.1.16
   Compiling form_urlencoded v1.2.0
   Compiling bytes v1.5.0
   Compiling hashbrown v0.13.2
   Compiling option-ext v0.2.0
   Compiling idna v0.4.0
   Compiling ppv-lite86 v0.2.17
   Compiling dirs-sys v0.4.1
   Compiling const-random v0.1.18
   Compiling dlv-list v0.5.2
   Compiling crossbeam-deque v0.8.3
   Compiling crossbeam-channel v0.5.8
   Compiling aho-corasick v1.0.1
   Compiling lazy_static v1.4.0
   Compiling rand_chacha v0.3.1
   Compiling linked-hash-map v0.5.6
   Compiling either v1.8.1
   Compiling tower-layer v0.3.2
   Compiling base64 v0.21.7
   Compiling bitflags v1.3.2
   Compiling anyhow v1.0.80
   Compiling iana-time-zone v0.1.60
   Compiling minimal-lexical v0.2.1
   Compiling regex-syntax v0.8.2
   Compiling tower-service v0.3.2
   Compiling rand v0.8.5
   Compiling ordered-multimap v0.6.0
   Compiling yaml-rust v0.4.5
   Compiling nom v7.1.3
   Compiling rust-ini v0.19.0
   Compiling dirs v5.0.1
   Compiling dashmap v5.5.3
   Compiling convert_case v0.6.0
   Compiling same-file v1.0.6
   Compiling pathdiff v0.2.1
   Compiling unsafe-libyaml v0.2.11
   Compiling str_indices v0.4.3
   Compiling chrono v0.4.35
   Compiling walkdir v2.4.0
   Compiling shellexpand v3.1.0
   Compiling ropey v1.6.1
   Compiling rayon v1.7.0
   Compiling nanoid v0.4.0
   Compiling itertools v0.10.5
   Compiling nucleo-matcher v0.3.1
   Compiling regex-automata v0.4.3
   Compiling auto_impl v1.1.0
   Compiling serde_derive v1.0.196
   Compiling thiserror-impl v1.0.58
   Compiling futures-macro v0.3.29
   Compiling tokio-macros v2.2.0
   Compiling tracing-attributes v0.1.27
   Compiling pin-project-internal v1.1.3
   Compiling serde_repr v0.1.17
   Compiling tower-lsp-macros v0.9.0 (https://github.com/Feel-ix-343/tower-lsp#a27868bf)
   Compiling tokio v1.34.0
   Compiling pest v2.7.8
   Compiling fuzzydate v0.2.2
   Compiling pin-project v1.1.3
   Compiling regex v1.10.2
   Compiling tracing v0.1.40
   Compiling pest_meta v2.7.8
   Compiling pest_generator v2.7.8
   Compiling pest_derive v2.7.8
   Compiling futures v0.3.29
   Compiling tower v0.4.13
   Compiling tokio-util v0.7.10
   Compiling serde_spanned v0.6.5
   Compiling toml_datetime v0.6.5
   Compiling url v2.4.1
   Compiling bitflags v2.5.0
   Compiling json5 v0.4.1
   Compiling serde_yaml v0.9.34+deprecated
   Compiling toml_edit v0.22.9
   Compiling ron v0.8.1
   Compiling lsp-types v0.94.1
   Compiling toml v0.8.12
   Compiling config v0.14.0
   Compiling tower-lsp v0.20.0 (https://github.com/Feel-ix-343/tower-lsp#a27868bf)
   Compiling markdown-oxide v0.0.21 (/home/pg/.cargo/git/checkouts/markdown-oxide-f73df92214370200/799d8f8)
error[E0658]: use of unstable library feature 'file_create_new'
  --> src/commands.rs:44:21
   |
44 |             let _ = File::create_new(path.as_path().to_owned());
   |                     ^^^^^^^^^^^^^^^^
   |
   = note: see issue #105135 <https://github.com/rust-lang/rust/issues/105135> for more information

warning: use of deprecated field `tower_lsp::lsp_types::SymbolInformation::deprecated`: Use tags instead
  --> src/symbol.rs:46:17
   |
46 |                 deprecated: None,
   |                 ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated field `tower_lsp::lsp_types::DocumentSymbol::deprecated`: Use tags instead
   --> src/symbol.rs:119:13
    |
119 |             deprecated: None,
    |             ^^^^^^^^^^^^^^^^

warning: unused import: `Rangeable`
  --> src/completion/link_completer.rs:19:116
   |
19 |     completion::util::check_in_code_block, config::Settings, ui::preview_referenceable, vault::{MDFile, MDHeading, Rangeable, Reference, Referenceable, Vault}
   |                                                                                                                    ^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `rayon::prelude`
 --> src/completion/mod.rs:3:5
  |
3 | use rayon::prelude::*;
  |     ^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0658`.
warning: `markdown-oxide` (bin "markdown-oxide") generated 4 warnings
error: could not compile `markdown-oxide` (bin "markdown-oxide") due to previous error; 4 warnings emitted
error: failed to compile `markdown-oxide v0.0.21 (https://github.com/Feel-ix-343/markdown-oxide.git#799d8f89)`, intermediate artifacts can be found at `/tmp/cargo-install2Eo9hR`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Binstalling with cargo binstall --git 'https://github.com/feel-ix-343/markdown-oxide' markdown-oxide does work though.

Thanks for making this!

sommerper commented 4 months ago

I just updated Cargo and it seems to work! So the error was on my side. Sorry to bother you. Just getting a few warnings now.

Compiling markdown-oxide v0.0.21 (/home/pg/.cargo/git/checkouts/markdown-oxide-f73df92214370200/799d8f8)
warning: use of deprecated field `tower_lsp::lsp_types::SymbolInformation::deprecated`: Use tags instead
  --> src/symbol.rs:46:17
   |
46 |                 deprecated: None,
   |                 ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated field `tower_lsp::lsp_types::DocumentSymbol::deprecated`: Use tags instead
   --> src/symbol.rs:119:13
    |
119 |             deprecated: None,
    |             ^^^^^^^^^^^^^^^^

warning: unused import: `Rangeable`
  --> src/completion/link_completer.rs:19:116
   |
19 |     completion::util::check_in_code_block, config::Settings, ui::preview_referenceable, vault::{MDFile, MDHeading, Rangeable, Reference, Referenceable, Vault}
   |                                                                                                                    ^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `rayon::prelude`
 --> src/completion/mod.rs:3:5
  |
3 | use rayon::prelude::*;
  |     ^^^^^^^^^^^^^^

warning: unused variable: `full`
  --> src/completion/callout_completer.rs:30:14
   |
30 |         let (full, preceding) = (captures.get(0)?, captures.name("preceding")?);
   |              ^^^^ help: if this is intentional, prefix it with an underscore: `_full`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `path`
  --> src/tokens.rs:37:30
   |
37 |         .fold(vec![], |acc, (path, reference)| {
   |                              ^^^^ help: if this is intentional, prefix it with an underscore: `_path`

warning: fields `line` and `character` are never read
  --> src/completion/footnote_completer.rs:16:5
   |
14 | pub struct FootnoteCompleter<'a> {
   |            ----------------- fields in this struct
15 |     vault: &'a Vault,
16 |     line: usize,
   |     ^^^^
17 |     character: usize,
   |     ^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: method `file_refname` is never used
    --> src/vault/mod.rs:1309:12
     |
1300 | impl Refname {
     | ------------ method in this implementation
...
1309 |     pub fn file_refname(&self) -> Option<String> {
     |            ^^^^^^^^^^^^

warning: `markdown-oxide` (bin "markdown-oxide") generated 8 warnings
    Finished `release` profile [optimized] target(s) in 30.77s
   Replacing /home/pg/.cargo/bin/markdown-oxide
    Replaced package `markdown-oxide v0.0.21` with `markdown-oxide v0.0.21 (https://github.com/Feel-ix-343/markdown-oxide.git#799d8f89)` (executable `markdown-oxide`)
sommerper commented 4 months ago

Closing

Feel-ix-343 commented 4 months ago

Great! Thanks for engaging