Created attachment 159486 [details] arrow function in a qml file SUMMARY *** When parsing qml files the parser throws unexpected token on arrow functions and template literals/strings then will stop updating after changes are made both of these are well supported in javascript for a long time *** STEPS TO REPRODUCE 1. Open a qml file with an arrow function or template literals (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) 2. wait for parser to finish 3. Unexpected token `>' will appear next to arrow functions Unexpected token `' will appear next to template literals 4. Hover functions; the "where is this declared" box doesn't work for the file, neither does highlighting 5. Parser will sometimes stop working kdevelop is restarted OBSERVED RESULT arrow functions and template string will show as errors and highlighting will fail EXPECTED RESULT file parses normally, and is fully highlighted SOFTWARE/OS VERSIONS Linux/KDE Plasma: 6.3.5.zen2-1 (available in About System) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9
The qmljs plugin lacks a maintainer and may have to be disabled during porting to Qt 6. See https://mail.kde.org/pipermail/kdevelop-devel/2022-August/063726.html