neovim-gtk icon indicating copy to clipboard operation
neovim-gtk copied to clipboard

AUR package

Open wezm opened this issue 8 years ago • 15 comments

FYI I made a first pass at an AUR package for neovim-gtk: https://aur.archlinux.org/packages/neovim-gtk-git. This makes it easy to build and install on Arch Linux:

git clone https://aur.archlinux.org/neovim-gtk-git.git
cd neovim-gtk-git 
makepkg -si

PS This thing is brilliant. The ligature support is fantastic and some of the best I've seen in any editor.

wezm avatar Sep 25 '17 23:09 wezm

Thank you 😄 I'm not user of Arch so can't test it, but think I can put this instructions to README 👍 thanks

daa84 avatar Sep 26 '17 12:09 daa84

@wezm Thanks for the packaging. It works on my Manjaro Linux. However I'm still experiencing some problems.

  • Cargo now is officially merged in to rustc package for Archlinux, so maybe you can remove cargo from makedep
  • The application won't start (probably not a packaging issue) with rust backtrace, the output is
RUST_BACKTRACE=1 nvim-gtk
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 78', src/ui_model/line.rs:204
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: g_main_context_dispatch
  14: <unknown>
  15: g_main_context_iteration
  16: g_application_run
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: __libc_start_main
  21: <unknown>

LER0ever avatar Sep 27 '17 18:09 LER0ever

I'm basing the makedepends on what's done for the ripgrep, which is a rust tool in the community repos. It depends on cargo, which is specified as a package provided by rust.

wezm avatar Sep 28 '17 00:09 wezm

Backtrace looks like some bug But I can check this only after about 2 weeks

daa84 avatar Sep 28 '17 13:09 daa84

Fixed. At least i think so :smile:

daa84 avatar Oct 12 '17 05:10 daa84

I just tried to use the AUR package and am getting this error: error: no default toolchain configured.

codedmart avatar Oct 13 '17 13:10 codedmart

It sounds like you have rustup installed without a default toolchain set. I had wondered about this. At the moment it think the PKGBUILD is using whatever cargo it finds in your path rather than the Arch packaged one (that is installed as part of the dependency on rust). I'll update the PKGBUILD to use absolute paths and that should fix it.

wezm avatar Oct 14 '17 20:10 wezm

I pushed a revised PKGBUILD that uses the absolute path to cargo, give that a try and see if that helps.

wezm avatar Oct 18 '17 09:10 wezm

I have both neovim-qt and neovim-gtk AUR packages installed, I installed neovim-qt first then later on neovim-gtk, checking around this repo files I noticed that nvim_gui_shim.vim its a file shared by both projects, when I run :scriptnames from neovim-gtk I get that /usr/share/nvim/runtime/plugin/nvim_gui_shim.vim file sourced, but its the neovim-qt version not the neovim-gtk one, do not know where the neovim-gtk version is installed.

davidsierradz avatar Jan 09 '18 21:01 davidsierradz

Interesting. I suppose the NeovimGtk one should have a unique name. I wonder what the consequence of having two versions of the same shim in the runtime path. I suppose alternatively we could create a nvim-gui-shim package that both UIs depend upon?

wezm avatar Jan 10 '18 01:01 wezm

This one by the neovim-qt author seems to be.

davidsierradz avatar Jan 10 '18 01:01 davidsierradz

if call simple make install it will be placed at $(PREFIX)/share/nvim-gtk/ https://github.com/daa84/neovim-gtk/blob/a6e16d1cbdb64031855612ae25df31592cdee249/Makefile#L14 and this path added to rtp at start There is also setting that can change this path when nvim-gtk starts https://github.com/daa84/neovim-gtk/wiki/Configuration#runtime

daa84 avatar Jan 10 '18 14:01 daa84

Ok I'll have a look into changing the package to use or mirror the Makefile behviour.

wezm avatar Jan 11 '18 22:01 wezm

I updated the PKGBUILD to better mirror the Makefile.

wezm avatar Jan 12 '18 23:01 wezm

Thanks, the file now it is installed on /usr/share/nvim-gtk/runtime/nvim_gui_shim.vim but its not sourced, according to help 'runtimepath':

	4. In nvim/site subdirectories for each directory in $XDG_DATA_DIRS.  
	   This is for plugins which were installed by system administrator, 
	   but are not part of the Neovim distribution. XDG_DATA_DIRS defaults 
	   to /usr/local/share/:/usr/share/, so system administrators are 
	   expected to install site plugins to /usr/share/nvim/site.

So it should be installed in /usr/share/nvim/nvim-gtk?

davidsierradz avatar Jan 14 '18 01:01 davidsierradz