wojnilowicz / workrave-applet

KDE Plasma 5 applet for displaying Workrave timers.
GNU General Public License v2.0
4 stars 7 forks source link

Error loading QML file #5

Open sundarv85 opened 3 years ago

sundarv85 commented 3 years ago

I installed this applet and I'm getting this error

Error loading QML file: file:///home/sundarv/.local/share/plasma/plasmoids/org.kde.workraveApplet/contents/ui/main.qml:103:16: Expected token ';'

Any idea what the issue could be?

wojnilowicz commented 3 years ago

No idea. First, you seem to be using 0.1 version, and the latest one is 0.2. Second, maybe your interpreter doesn't handle "let" keyword, so try changing "for (let i = 0; i < timersModel.count; ++i)" to "for (var i = 0; i < timersModel.count; ++i)" in file:///home/sundarv/.local/share/plasma/plasmoids/org.kde.workraveApplet/contents/ui/main.qml

Besides, what's your OS, Qt and KDE Plasma version?

sundarv85 commented 3 years ago

Hi @wojnilowicz

I'm using 0.2 - I tried both from the KDE store and directly from Git.

WRT the other details:

image

wojnilowicz commented 3 years ago

Your Qt version is 5.11.3, and the code uses "let" keyword that appeared only from Qt 5.12, so it's not backward compatible. You could open "file:///home/sundarv/.local/share/plasma/plasmoids/org.kde.workraveApplet/contents/ui/main.qml" and replace all "let" keywords with "var" keywords, and see if it works for you.