Bug 409230 - The Javascript parser does not support modern Ecmascript versions
Summary: The Javascript parser does not support modern Ecmascript versions
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: QML/JavaScript (show other bugs)
Version: 5.2.4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-27 06:23 UTC by Mattia Basaglia
Modified: 2019-06-27 06:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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