bob: bob sync alwas returns error

Hi,

everytime I run bob sync, I’ll get the following error:

$ bob sync Mar 13 10:44:55.490 INFO Starting sync process Mar 13 10:44:55.491 INFO Using version v0.8.3 set in /home/xyz/.config/bob/nvim.version Mar 13 10:44:55.491 ERROR Error: Please provide a proper version string

My config file in ~/.config/bob:

$ cat config.json { “enable_nightly_info”: true, “downloads_location”: “/home/xyz/.local/share/bob”, “installation_location”: “/home/xyz/.local/share/bob/nvim-bin”, “version_sync_file_location”: “/home/xyz/.config/bob/nvim.version”, “rollback_limit”: 3 }

My nvim.version in ~/.config/bob:

v0.8.3

Bob was installed via cargo: cargo 1.67.1 (8ecd4f20a 2023-01-10) rustc 1.67.1 (d5a82bbd2 2023-02-07) OS is Ubuntu 22.04.2

I don’t understand, why I get this error. I checked the version string online against the regular expression from bob, I tried “stable” and “nightly” as version strings, but I always get the described error. Any clues, what’s going wrong?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

@indika-dev thank you for testing!

I can confirm, that it is working!

:~/.config/bob$ bob sync Mar 14 12:57:40.331 INFO Starting sync process Mar 14 12:57:40.331 INFO Using version v0.8.3 set in /home/xyz/.config/bob/nvim.version Mar 14 12:57:40.332 INFO v0.8.3 is already installed and used!

and for clarification(I didn’t know that before!) LF at end of line is needed to be POSIX-compliant: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206

I see, thank you. I will dig more into this!