https://bugs.kde.org/show_bug.cgi?id=470685
Bug ID: 470685
Summary: Parser hangs on Template Literals/strings and Arrow
functions
Classification: Applications
Product: kdevelop
Version: 5.11.230401
Platform: Archlinux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Language Support: QML/JavaScript
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 159486
--> https://bugs.kde.org/attachment.cgi?id=159486&action=edit
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
--
You are receiving this mail because:
You are watching all bug changes.