Sublime Forum

Package Control and using the tags to specify the compatible sublime version

#1

I am in process of rewriting the a plugin, Robot Framework Assistant, the new version is not anymore compatible with the Sublime Text 2. In practice the version 1.X.X is compatible with Sublime Text 2 and Sublime Text 3, but the version 2.X.X is only compatible with Sublime Text 3.

The package control documentation did suggest using the tags key was way to go with this. So I did add tag st2-1.2.3 to the repository and configured the messages.json to contain correct information. In few commits because of copy/paste errors after the tag was set.

Then I did go and updated the package_control_channel to match the release plan:

		{
			"name": "Robot Framework Assistant",
			"details": "https://github.com/andriyko/sublime-robot-framework-assistant",
			"releases": [
				{
					"sublime_text": "*",
					"tags": "st2-"
				},
				{
					"sublime_text": ">=3000",
					"tags": "st3-"
				}
			]
		},

But now the package control robot framework assistant page says that it has not seen the plugin for few days. So it is cleat that I did made a mistake in the process, but just can not figure out where the error was made. Could somebody provide some pointers how I can this working?

1 Like

#2

Hm, I’m not spotting a particular issue, but your first release should restrict installation to versions smaller 3000 and not all. That might also be the reason why the package is not listed anymore, but @wbond will need to investigate that.

1 Like

#3

So it should go like this?

Before the release 2.X.X. package_control_channel should be

			"name": "Robot Framework Assistant",
			"details": "https://github.com/andriyko/sublime-robot-framework-assistant",
			"releases": [
				{
					"sublime_text": "*",
					"tags": "st2-"
				}
			]
		},

And after the 2.X.X release it should be:

		{
			"name": "Robot Framework Assistant",
			"details": "https://github.com/andriyko/sublime-robot-framework-assistant",
			"releases": [
				{
					"sublime_text": "<3000",
					"tags": "st2-"
				},
				{
					"sublime_text": ">=3000",
					"tags": "st3-"
				}
			]
		},
2 Likes

#4

Made a pull request to fix it.

1 Like

#5

Yes, let’s do that.

1 Like

#6

It did fixit the problem. Thank you from the help.

1 Like