package_control icon indicating copy to clipboard operation
package_control copied to clipboard

Satisfy dependencies on package update

Open idleberg opened this issue 9 years ago • 9 comments
trafficstars

Currently, the only way to update package dependencies seems to be manually running “Package Control: Satisfy Dependencies”. Instead, dependencies should be updated whenever a package using them is updated.

I noticed that package dependencies are usually satisfied automatically. So as an alternative, the update could be performed whenever Package Control checks if dependencies are satisfied.

idleberg avatar Jun 06 '16 11:06 idleberg

Hmm, so I just tested a manually-triggered upgrade of a package after manually setting the version numbers down on the main package and one of its dependencies. This is what I saw:

ignored packages updated to: ["Golang Build", "Vintage"]
unloading plugin Golang Build.golang_build
generating syntax summary
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
Package Control: The dependency 'golangconfig' is installed, but out of date; upgrading to latest release 0.9.0 from 0.8.0...
Package Control: The dependency 'golangconfig' has successfully been installed or updated
ignored packages updated to: ["Vintage"]
reloading plugin Golang Build.golang_build
generating syntax summary
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings

So at least in some situations it seems that a dependency will be upgraded if a newer version is available and a newer version of a package using it is installed.

If anyone has any steps to reproduce a dependency not being upgraded, I'd love to get this resolved.

wbond avatar Sep 13 '16 02:09 wbond

Were any of your dependencies installed via git or hg? If so, there was a bug where a dependency installed via VCS would not go through the normal upgrade process.

wbond avatar Sep 20 '16 00:09 wbond

That's what might have happened, I'm sure I copied my local repository over to the Packages folder to test the dependency before publishing it. Not sure if it can ever be verified, but I'll take a look when I get home after work.

idleberg avatar Sep 20 '16 06:09 idleberg

I installed python-jinja2 and markupsafe manually, but every time i open sublime text it tells me: Package Control

Unable to download markupsafe. Please view the console for more details.

Package Control

Unable to download python-jinja2. Please view the console for more details.

i don't want to see these popups anymore what should i do!

danielsayidi avatar Jun 27 '18 05:06 danielsayidi

How did you install the dependencies? PC does something special to mark folders in the Packages folder as dependencies and you probably didn't do that.

FichteFoll avatar Jun 27 '18 12:06 FichteFoll

i am using Debian, and i tried to install boxy themes but it says can't download python-jinja2 and it didn't work correctly, so i download it manually and do the same things for markupsafe and paste it packages directory, now every things is fine but every time i am connected to internet and sublime is open it says: can't download python-jinja2 and markupsafe, it is annoying me! what should i do, i have them but it say's can't download them, please help!

danielsayidi avatar Jul 01 '18 05:07 danielsayidi

Hi @danielsayidi! do you found any solution for this issue? the same thing is happening to me.

oversio avatar Jul 09 '19 20:07 oversio

@oversio your issue is #1430.

FichteFoll avatar Jul 10 '19 13:07 FichteFoll

Another datapoint https://github.com/sublimelsp/LSP/issues/1186

rwols avatar Jul 14 '20 08:07 rwols