bob: Bob does not create the appropriate symlink when installing Neovim

This issue happens on version 4.0.2, installed using pacman.

Attempting to use bob install (or bob use) for of stable, latest, or nightly results in the following error:

> bob use latest 
Jan 30 02:03:20.676  INFO Fetching latest version
Jan 30 02:03:21.351 ERROR Error: Please provide an existing neovim version, Not Found

Specifying the version number directly seems to work.

The behaviour when installing bob using cargo install --git https://github.com/MordechaiHadad/bob.git is slightly different. latest and stable work, but nightly results in the same error:

> bob use latest
Jan 30 02:06:19.326  INFO Fetching latest version
Jan 30 02:06:19.601  INFO Updating neovim proxy
Downloaded version v0.10.4 to /home/fic/.local/share/bob/v0.10.4.appimage
  [00:00:00] [█████████████████████████████████████████] 11.57MiB/11.57MiB (86.70MiB/s, 0s)
Downloaded checksum v0.10.4 to /home/fic/.local/share/bob/v0.10.4.appimage.sha256sum
  [00:00:00] [██████████████████████████████████████████████████] 93B/93B (667.96KiB/s, 0s)
Jan 30 02:06:20.144  INFO Checksum matched!
Jan 30 02:06:20.413  INFO You can now use v0.10.4!

~  
> bob use nightly
Downloaded version nightly to /home/fic/.local/share/bob/nightly.appimage
  [00:00:00] [█████████████████████████████████████████] 20.52MiB/20.52MiB (95.37MiB/s, 0s)
Jan 30 02:06:23.486 ERROR Error: Please provide an existing neovim version, Not Found

~  
> vim --version
NVIM v0.10.4
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

Running the appimage itself works just fine:

~  
> chmod +x .local/share/bob/nightly.appimage          

~  
> .local/share/bob/nightly.appimage --version
NVIM v0.11.0-dev-1660+g35c5e23107
Build type: RelWithDebInfo
LuaJIT 2.1.1736781742
Run "nvim -V1 -v" for more info

~  
> bob update nightly
Jan 30 02:09:45.773  WARN nightly is not installed.

So, it seems like the only issue is with creating the symlink after the installation.

Kindly note that I have tried using bob erase, deleting the entire .local/share/bob directory, reinstalling bob multiple times via pacman and cargo, etc. I’m at a bit of a loss as to what may be causing this.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Works great for me too 👍🏻

Partial fix was done yesterday in scope of #252.

Almost in the same time Neovim team made one more change. Now hash sums for all artifacts are stored in a single file. See neovim/neovim#32249.

So, additional changes are required in bob.

Thank you for looking into this

I can confirm that running bob update nightly also works without any problem in this PR branch. I think it should be merged and a release created as soon as possible, so that users that have installed bob via pacman can get a working version.

Can you verify that the new PR works? These commands;

  1. Install via cargo install --git https://github.com/MordechaiHadad/bob.git --branch fix/checksums-file
  2. run bob use nightly and then if works run bob use latest
  3. report if works or failed

@MordechaiHadad I realized I had bob shadow installed via homebrew, so cargo install wasn’t replacing the executable. All good now, everything works. Thank you. ~That would be macOS (latest), arm (m3 pro) and: ERROR Error: Please provide an existing neovim version, Not Found~