How to ignore warnings import musicxml by musescore4 command line
command:mscore ./t.musicxml -f -o my.mxl
musescore3.6.2 is converted successful, but musescore4.1.1 is blocking, following is musescore4 log:
2023-08-02T14:46:25.366 | INFO | main_thread | GlobalModule | onPreInit: log path: /root/.local/share/MuseScore/MuseScore4/logs/MuseScore_230802_144625.log
2023-08-02T14:46:25.366 | INFO | main_thread | GlobalModule | onPreInit: === Started MuseScore 4.1.1, build number 232071203 ===
2023-08-02T14:46:25.407 | INFO | main_thread | DiagnosticsModule | onInit: success start crash handler
2023-08-02T14:46:25.893 | INFO | main_thread | ConverterController | fileConvert: in: ./t.musicxml, out: my.mxl
2023-08-02T14:46:25.991 | WARN | main_thread | Qt | This plugin does not support propagateSizeHints()
Attachment | Size |
---|---|
t.musicxml | 1.04 KB |
Comments
Using the GUI to open will prompt
“Not a valid MusicXml file。 Fatal error: line 10 column 8 Element work is not defined in this scope.”,
select "Yes" to ignore it, but the command line does not work
In reply to Using the GUI to open will… by g30225579
Just a hint that there is a separate forum dedicated to Plugins:
https://musescore.org/en/forum/443
You might get a better response posting there in future?
In reply to Just a hint that there is a… by DanielR
There's no plugin involved here as far as I can tell.
That message in the logs seems a red herring to me.
In reply to Using the GUI to open will… by g30225579
Using the GUI to open will prompt propagateSizeHints
Huh??
Trying to import (in the GUI) gives:
In Mu2, Mu3 and Mu4.
The corresponding code is:
Ignoring the error and it does import properly.
Maybe Mu3 ignores this problem in converter mode but Mu4 does not?
It seems that
work
section needs to come before the ìdentification`s section, not after, at least that is what MuseScore's (?) MusicXML validator seems to expect.Supported by https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/score…
In reply to Importing it gives: Fatal… by Jojo-Schmitz
Thanks for you.
I understand it's not a problem with musescore, but the xml format is wrong, the file may be exported by other software (GuitarPro).
GUI can ignore such errors, I hope command line can do this
In reply to Thanks for you. I understand… by g30225579
The command line converter mode should ignore those by default I guess (and seem to in Mu3). Or at least provide an option for that,
--ignore-errors
or some suchIn reply to Thanks for you. I understand… by g30225579
Maybe report that export error to GuitarPro?
In reply to Thanks for you. I understand… by g30225579
Maybe this does it:
Ignore score corruption and version mismatch warnings in “converter mode”
In reply to Maybe this does it: -f | -… by Jojo-Schmitz
Thanks.
I tried it and it doesn't work
In reply to Thanks. I tried it and it… by g30225579
Then please report this as a bug on GitHub