apm can't install a version that is more than [pagination limit] behind the latest
Prerequisites
- [x] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Running apm install [email protected] results in an error even though the version is listed in the database.
Steps to Reproduce
- Open a terminal session
- Execute
apm install [email protected]
Expected behavior: autocomplete-python v1.8.11 to be installed
Actual behavior: Package version: 1.8.11 not found error returned
Versions
Atom : 1.20.0-dev-57e023e74
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0
apm 1.18.3
npm 3.10.10
node 6.9.5 x64
python 2.7.13
git 2.13.3
Additional Information
I suspect this is because the results from the API aren't paginated.
The atom.io API doesn't have the ability to paginate, so this seems to be a problem with atom.io rather than apm. If it can paginate, then the documentation needs to be updated.
Rather than relying on pagination, it looks like it should be possible to fall back to the endpoint for that specific version, e.g. https://atom.io/api/packages/autocomplete-python/versions/1.8.11
I'm working on a PR to do that, and should be able to put something up shortly.