jmacdonald / scribe

Text editor components
MIT License
173 stars 7 forks source link

Installation failure #15

Closed daniel-zahariev closed 6 years ago

daniel-zahariev commented 6 years ago

Installing Amp via cargo install amp on macOS High Sierra with all requisites (rust, cmake, python) fails at compiling scribe:

   Compiling scribe v0.7.2
error[E0599]: no function or associated item named `from_str` found for type `scribe::buffer::Distance` in the current scope
  --> src/models/application/modes/jump/mod.rs:80:32
   |
80 |                 let distance = Distance::from_str(&subtoken.lexeme);
   |                                ^^^^^^^^^^^^^^^^^^ function or associated item not found in `scribe::buffer::Distance`

error[E0599]: no function or associated item named `from_str` found for type `scribe::buffer::Distance` in the current scope
   --> src/models/application/modes/jump/mod.rs:152:40
    |
152 |                         let distance = Distance::from_str(&subtoken.lexeme);
    |                                        ^^^^^^^^^^^^^^^^^^ function or associated item not found in `scribe::buffer::Distance`

error[E0599]: no function or associated item named `from_str` found for type `scribe::buffer::Distance` in the current scope
  --> src/models/application/modes/search.rs:29:24
   |
29 |         let distance = Distance::from_str(&query);
   |                        ^^^^^^^^^^^^^^^^^^ function or associated item not found in `scribe::buffer::Distance`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0599`.
error: failed to compile `amp v0.5.0`, intermediate artifacts can be found at `/var/folders/2g/mcs0f9rs4_9bmk7kl3w44vv00000gs/T/cargo-installGdGN5K`
jmacdonald commented 6 years ago

I need to publish a new version of Amp, which includes this fix.

jmacdonald commented 6 years ago

Done. @daniel-zahariev can you please give the installation another try? :slightly_smiling_face:

daniel-zahariev commented 6 years ago

Thanks, it's working now!