This version of MuseScore is not supported

Project:Score Statistics
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When using MuseScore 1.0 and this plugin, a popup message comes up with the sentence: This version of MuseScore is not suppored.

It's caused by the fact that the current mscoreVersion is 10, which is smaller than 906.

	// determine version
	if( !(this.mscoreVersion != undefined && this.mscoreVersion >= 906) )
	{	QMessageBox.critical(null, "Unsupported version", "This version of MuseScore is not suppored.\nPlease upgrade to a more recent version.");
		return;
	}

So dirty hack to get the plugin working is removing this version check in the scorestats.js file.

A neater solution will need to be found.

#1

The problem was caused by a last minute change in the release number: 1.0.0 was changed into 1.0

This created a problem in utils.cpp with the script to define the version:

int version()
{
QRegExp re("(\\d+)\\.(\\d+)\\.(\\d+)");
if (re.indexIn(VERSION) != -1) {
QStringList sl = re.capturedTexts();
if (sl.size() == 4) {
_majorVersion = sl[1].toInt();
_minorVersion = sl[2].toInt();
_updateVersion = sl[3].toInt();
return _majorVersion * 10000 + _minorVersion * 100 + _updateVersion;
}
}
return 0;
}
#2

Find attached a working version.

AttachmentSize
scorestats_0.3.zip 6.69 KB
#3

Thomas, I believe MuseScore 1.0 is actually self-reporting as version 0 not version 1.0. See #9259: [Plugin framework] Version numbers do not work

#4
Title:This version of MuseScore is not suppored» This version of MuseScore is not supported
Syndicate content