daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Compilation error on Ubuntu 18.04: use of unstable library feature #129

Closed keeferrourke closed 5 years ago

keeferrourke commented 5 years ago

Describe the bug neovim-gtk fails to build and install on Ubuntu 18.04 bionic with the following error after having installed all the required development dependencies:

make install

ERROR

cargo install --force --root /usr/local
  Installing nvim-gtk v0.2.0 (file:///home/keefer/Downloads/neovim-gtk)
   Compiling nvim-gtk v0.2.0 (file:///home/keefer/Downloads/neovim-gtk)
error[E0658]: use of unstable library feature 'swap_with_slice' (see issue #44030)
  --> src/ui_model/line.rs:35:38
   |
35 |         target.line[left..right + 1].swap_with_slice(&mut self.line[left..right + 1]);
   |                                      ^^^^^^^^^^^^^^^

error: aborting due to previous error

error: failed to compile `nvim-gtk v0.2.0 (file:///home/keefer/Downloads/neovim-gtk)`, intermediate artifacts can be found at `/home/keefer/Downloads/neovim-gtk/target`

Caused by:
  Could not compile `nvim-gtk`.

To learn more, run the command again with --verbose.
Makefile:10: recipe for target 'install' failed
make: *** [install] Error 101

Technical information (please complete the following information):

daa84 commented 5 years ago

please update rust compiler to latest stable version

keeferrourke commented 5 years ago

This is done using the latest available versions of rustc and cargo on Ubuntu 18.04..

expl0ratory commented 5 years ago

Latest on ubuntu 18.04 is 1.25, this requires 1.27, so you must ignore ubuntu, and install manually using https://www.rust-lang.org/en-US/ unfortunately

I take it back, it doesn't work in 1.27 either

daa84 commented 5 years ago

sorry, i don't support specific distributive rustc. Only requirement is use stable version. It is easy can be installed with rustup.