Plugin versioning (VP team server)

Hello,

I’m writing a plugin that distributes via VP teamwork server. The first version installs fine but when I tried to release a new version of plugin, Visual Paradigm (on desktop Help->Update Plugin) couldn’t show a new version of the plugin.

For example I’ve built the sample plugin from your site “com.vp.plugin.sample.samplecommunicationdiagram” and added the version to the plugin.xml file:

<plugin
		id="com.vp.plugin.sample.samplecommunicationdiagram"
		name="Generate Sample Communication Diagram"
		description="Generate Sample Communication Diagram"
		provider="Visual Paradigm"
		class="com.vp.plugin.sample.samplecommunicationdiagram.GenerateSampleCommunicationDiagramPlugin"
        version="1.1.1.1">
		
	<actionSets>
		<actionSet id="com.vp.plugin.sample.samplecommunicationdiagram.actionset">
			<action
					id="com.vp.plugin.sample.samplecommunicationdiagram.actionset.GenerateSampleCommunicationDiagramAction"
					label="Generate Sample Communication Diagram"
					menuPath="Modeling/#"
					icon="icons/generateSampleCommunicationDiagram.png">
				<actionController class="com.vp.plugin.sample.samplecommunicationdiagram.actions.GenerateSampleCommunicationDiagramActionController"/>
			</action>
		</actionSet>
	</actionSets>
		
</plugin>

After this I uploaded the zip-file to the “plugins” page of VP server.

This plugin was installed fine on desktop VP.

After I changed the version to 1.1.1.2 and uploaded to the VP server.

When I tried to update the plugin from Help->Update Plugin menu I see an empty list.

If I delete the plugin from the “%APPDATA%\VisualParadigm\plugins” folder, I’m able to install the new version from the Help->Install Plugin menu.

But I want to use the updating mechanism.
What am I doing wrong?
I can provide the packages I used (but can’t attach them here because the forum rejects such type of attachment).

Thank you.

Unfortunately I’m able to attach only one screenshot to the post.
Here is a VP screenshot then I install the plugin v.1.1.1.1

The second version (1.1.1.2) of the plugin I uploaded to the VP server fine:

It replaces the previous one (v1.1.1.1)

I’ll post next steps later after the forum engine allows me do it :frowning:

The plugin was downloaded to the VP server fine and replaced the previous one.
But the issue is in the possibility to update the plugin on the desktop side.
Then user clicked in the “Help->Update Plugin” he/she sees nothing:

If I delete the plugin from the “%APPDATA%\VisualParadigm\plugins” directory I can install the latest version of the plugin from the teamwork site.

This workaround looks weird.
Could you please tell me how to make a plugin versionable?

Thanks for your message and our engineers are checking on it. Please be patient and I’ll keep you post once there are any update.

Our engineers had reviewed your case and confirm the problem is caused by the current limitation on handle of plugin version. At the moment we only support handle the version value with Major.Minor.Patch as maximum. When the version value longer than this (i.e. four value as in your case) then it will be skipped by the plugin update. We will enhance the software in future to warn user when his plugin with version value doesn’t fit into our requirements. In the meantime please adjust the version value of your plugin to fit into our requirement to solve your problem. Feel free to contact me for any help!

Hello,

Thank you for the reply, Rain. I fixed the version. Now I’m using 2-digits version like 1.1 or 1.2.
VP can recognize that update exists but when I tried to update plugin from v.1.1 to 1.2 it fails with the following error:

May I know have you remove the original plugin and reinstall it after change to 2-digits version number?

Sure,

  1. I removed all the plugins from the “%APPDATA%\VisualParadigm\plugins” folder.
  2. I uploaded “com.vp.plugin.sample.samplecommunicationdiagram” plugin v.1.1 to VP server.
  3. I installed “com.vp.plugin.sample.samplecommunicationdiagram” plugin v.1.1 from VP team server to desktop VP app
  4. I uploaded “com.vp.plugin.sample.samplecommunicationdiagram” plugin v.1.2 to VP server. The plugin was replaced to v.1.2
  5. I clicked “Help->Update Plugin” button in desktop VP and tried to update the plugin from v.1.1 to v.1.2.
  6. As a result I got an error I shown above.

Would you please send me your two plugin XML file (both v1.1 & v1.2) so that we can test on them? You can send them to support-team@visual-paradigm.com for checking. Thanks and look forward to hearing from you.