Bug 409230

Summary: The Javascript parser does not support modern Ecmascript versions
Product: [Applications] kdevelop Reporter: Mattia Basaglia <glax>
Component: Language Support: QML/JavaScriptAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.2.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mattia Basaglia 2019-06-27 06:23:05 UTC
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