Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 252 forks source link

unable to download rtags v2.41 through M-x rtags-install #1435

Open zkytony opened 1 year ago

zkytony commented 1 year ago

Describe the bug When running M-x rtags-install on my emacs (version 28.2) on Ubuntu 22.04, I get the following output on *RTags Install*:

Downloading rtags from https://github.com/Andersbakken/rtags/releases/download/v2.41/rtags-2.41.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     9  100     9    0     0     55      0 --:--:-- --:--:-- --:--:--    55
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Failed to untar rtags-2.41.tar.bz2

The error is bzip2: (stdin) is not a bzip2 file.

It looks like the URL that is attempted to download rtags from is 404: https://github.com/Andersbakken/rtags/releases/download/v2.41/rtags-2.41.tar.bz2

Looking at the releases and tags of rtags, there is no v2.41, and the latest release is v2.38, while the latest tag is v2.40.

Is there a way to configure the version rtags-install downloads? And set it to 2.38 or 2.40?

To Reproduce Steps to reproduce the behavior:

  1. M-x rtags-install

Expected behavior The error message does not happen, and rtags gets installed and built under ~/.emacs.d/elpa/rtags-XXXX/rtags-vXX/bin

Screenshots/Backtrace image

Environment (please complete the following information):

jack2gs commented 1 year ago

I got the same issue. the version seems incorrect. after M-x rtags-install run, there will be a shell script with name install-rtags.shcreated in the package folder. you can correct the version there. the path would be .emacs.d/elpa/rtags-20220818.1535

image