wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.79k stars 816 forks source link

Cannot install package due to dependency not being available. #1581

Closed johanrosenson closed 3 years ago

johanrosenson commented 3 years ago

I originally posted this as a bug on the LSP page but was sent here instead.

I am trying to install the LSP plugin, but i get the following error in the console, which i have no knowledge on how to fix, search online have not given much good answers either, so i turn here.

Is this an error that you have encountered before and have a way to fix/work around?

Package Control: The dependency 'backrefs' is not currently installed; installing...
Package Control: The dependency 'backrefs' is not available
Package Control: The dependency 'backrefs' could not be installed or updated

Things i have tried already:

Environment

OS: MacOS 10.15.7 (19H2) Sublime Text version: 4113

randy3k commented 3 years ago

I encountered the same issue. It seems to be an issue of the crawler of package control not able to locate the dependencies: dependencies_cache in https://packagecontrol.io/channel_v3.json is empty.

A temporary workaround is to use this backup channel https://github.com/irvingcode/channelV3

vtsao commented 3 years ago

Should we rename this issue as it's not specific to LSP - multiple packages/deps seem to be missing from channel_v3.json now.

I guess there are no official backups or mirrors of channel_v3.json?

I've created https://github.com/wbond/packagecontrol.io/pull/146 to add the workaround @randy3k mentioned to the troubleshooting guide.

randy3k commented 3 years ago

Looks like packagecontrol.io/channel_v3.json has been updated. The workaround is no longer needed.

lordkatt85 commented 3 years ago

Yep, I just read this issue and tried installing LSP (which need backrefs) and it installed smoothly and I didn't do any changes (its just a fresh install of ST4 in my new OS, I'm setting up ST4 in that OS). 😃

johanrosenson commented 3 years ago

Looks like it's all working now, so closing this, thanks all!

One request would be for a better error message when this happens, it's not easy (without knowledge) to understand if it's the local installation that's having a problem or something else.