plugin: console.log not working Linux but working on WIndows?
When I open the plugin creator and click on the "New" icon a minimal "Hello World" example appears.
The important line
console.log("Hello World!")
shows in the console as
debug: Hello World!
when I run MuseScore on a Windows machine.
But on my Linux Fedora 22 system, the console window stays white and empty.
Not having a working console.log() command on my Linux box makes creating and debugging mscore2 plugins a real nightmare :-(
Comments
Which specific build are you running on Linux, and how did you install it? What version of Qt are you running?
On my Fedora 22 system I cloned the latest GIT sources, and compile and installed myself following the instructions in README.md
Unstable Pre-release version 2.1.0
Revision 3523170
Qt version 5.5.0
On my WIndows box I simply downloaded the latest stable Windows installer from the Musescore website,
In reply to On my Fedora 22 system I by mtarenskeen
Including the 'make install' step?
Sorry, confused this with https://musescore.org/en/node/82106
In reply to On my Fedora 22 system I by mtarenskeen
There are known issues with MuseScore on Qt 5.5, so most of us are using 5.4.x
As mentioned, don't skip the install step - it is not optional.
Sure. No one else having this issue on Linux?
I've the same problem:
Working when using Wine and the windows version, but when using linux the console.log() has no effect anywhere (no output).
Fedora 23
kernel 4.7.5
qt 5.6.1
not builded by myself but used repo version:
Musescore 2.0.3 3c7a69d
In reply to I've the same by jhkst
MuseScore 2.0.3 uses Qt-5.4, won't work with 5.6 as far as I know
In reply to I've the same by jhkst
Actually I write an problem and after that I found a solution for that:
http://stackoverflow.com/questions/36338000/qml-console-log-and-console…
so simply:
{syntaxhighlighter }
$ mkdir -p ~/.config/QtProject
$ cat << EOF >> ~/.config/QtProject/qtlogging.ini
[Rules]
*.debug=true
qt.*.debug=false
EOF
{/syntaxhighlighter}
And now it's working
HTH