https://bugs.kde.org/show_bug.cgi?id=409230
Bug ID: 409230 Summary: The Javascript parser does not support modern Ecmascript versions Product: kdevelop Version: 5.2.4 Platform: Ubuntu Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Language Support: QML/JavaScript Assignee: kdevelop-bugs-n...@kde.org Reporter: mattia.basag...@gmail.com Target Milestone: --- SUMMARY If I write javascript code using `class` and such, I get "Syntax Error" from the parser STEPS TO REPRODUCE 1. Create a js file in your project 2. Type something like `class Foo {}` 3. You might need to close and re-open the file for the parser to pick up the errors (not 100% reliable) 4. Open the "Problems" pane 5. Notice it highlights "class" as a syntax error OBSERVED RESULT The parser treats ECMAScript 6 features as syntax errors. EXPECTED RESULT It should parse them correctly. SOFTWARE/OS VERSIONS Ubuntu 18.10 KDE Frameworks 5.50.0 Qt 5.11.1 (built against 5.11.1) The xcb windowing system -- You are receiving this mail because: You are watching all bug changes.