Closed benfrain closed 10 months ago
Your private channel misses entries for available dependencies/libraries.
Default channel provides them via https://github.com/wbond/package_control_channel/blob/master/repository/dependencies.json.
I'd however not recommend to include this file directly, as without an upstream crawler, each ST instance would need to crawl github repos manually, which can take a lot of time and may be aborted due to rate limitations of Github API calls.
Entries with resolved/fixed releases using url
key don't suffer this issue.
You could download https://packagecontrol.io/channel_v3.json and extract resolved links from dependencies_cache: {}
or just copy the whole key to your channel.json to get a current list of releases.
ah, ok, thanks. Sorry, I'm a little confused just by the last sentence. Are you saying, I can just grab the dependencies_cache
section from channel_v3.json that begins...
"dependencies_cache": {"https://packagecontrol.io/repository.json": [{"name": "arrow", "load_order": "01", "authors": ["douglas-vaz"], "description": "Python arrow module - https://github.com/crsmithdev/arrow", "issues": "https://github.com/douglas-vaz/arrow/issues", "releases": [{"platforms": ["*"], "sublime_text": "*", "version": "0.0.2", "url": "https://codeload.github.com/douglas-vaz/arrow/zip/v0.0.2"}]}, {"name": "backports_lzma", "load_order": "50", "authors": ["dvhh"], "description": "lzma modules for sublime text 2 and 3", "issues": "https://github.com/dvhh/sublime-backports.lzma/issues", "releases": [{"platforms": ["windows"], "sublime_text": "*", "version": "1.0.0", "url": "https://codeload.github.com/dvhh/sublime-backports.lzma/zip/1.0.0"}]}, {"name": "backrefs", "load_order": "50", "authors": ["facelessuser"], "description": "Backrefs regular expression wrapper.", "issues": "https://github.com/facelessuser/sublime-backrefs/issues", "releases": [{"platforms": ["*"], "sublime_text": ">=3000", "version": "1.9.0", "url": "https://codeload.github.com/facelessuser/sublime-backrefs/zip/1.9.0"}]}, {"name": "better_settings", "load_order": "01", "authors": ["KuttKatrea"], "description": "Easily implement OS, Host and OS/Host-level settings aside the normal user-level settings for any plugin.", "issues": "https://github.com/KuttKatrea/sublime-better-settings/issues", "releases": [{"platforms": ["*"], "sublime_text": ">=3000", "version": "1.0.0", "url": "https://codeload.github.com/KuttKatrea/sublime-better-settings/zip/1.0.0"}]}, {"name": "boto3", "load_order": "02", "authors": ["revmischa"], "description": "Python boto3 module for Amazon Web Services", "issues": "https://github.com/revmischa/sublime-boto3/issues", "releases": [{"platforms": ["*"], "sublime_text": "*", "version": "2.0.0", "url": "https://codeload.github.com/revmischa/sublime-boto3/zip/v2.0.0"}]}, {"name": "bracex", "load_order": "50", "authors": ["facelessuser"], "description": "Bracex creates arbitrary strings via brace expansion much like Bash's.", "issues": "https://github.com/facelessuser/sublime-bracex/issues", "releases": [{"platforms": ["*"], "sublime_text": ">=3000", "version": "2.1.1", "url": "https://codeload.github.com/facelessuser/sublime-bracex/zip/2.1.1"}]},
And paste that into my channel.json file?
Yes, that's what I was saying.
packagecontrol.io graps repositories from "package_control_channel", crawls code hosters for latest releases and fills the result to those packages_cache
and dependencies_cache
entries, so Package Control client doesn't need to reach out to those code hosters to get the latest release information.
Thanks @deathaxe that fixed that issue, I just had to change the https://packagecontrol.io/repository.json
in the first section to the URL of our own repository.json file.
No more errors in the console. Only problem now is that it doesn't list the available packages when I do the install packages...
command.
Could that possibly be related? Was I wrong to do that?
Hard to say without the json files. If the structure looks like that from official channel, packages should be listed. No packages being found indicates no valid release being resolved. Maybe a typo or missing key?
Using PC v4 beta 8
Noticed that a number of installed packages were not working as expected. ST console showed this:
Here is the debug info from the console: