This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDevelop Javascript/ECMAscript support

Tags: None
(comma "," separated)
andrewmcleod
Registered Member
Posts
2
Karma
0
I use KDevelop for Python development, and am a big fan generally (although I always get the impression I'm not getting the most, or anything, out of Projects as I use the filesystem tool view rather than the 'Project' view

Anyway, I also do a bit of JS development on the same projects, and I've found that _mostly_ everything works fine but a few things don't. ECMAscript shorthand syntax e.g.
Code: Select all
const my_object = {
    my_function(frm) {
        stuff;
    }
}
or just class declarations, both throw a 'Syntax error' in the Problems toolview and wiggly red lines under the code.

The KDevelop 'Features' page (on the website) says that 'QML and Javascript' is a fully-supported language; is that some heavily-restricted version of Javascript (or does it _actually_ mean Javascript and not ECMAscript)? It still initially gave me the impression that 'Javascript' (i.e. ECMAscript) would be supported, but that appears not to be the case unless I am doing something wrong?

If the support is incomplete, is there a way to turn it off (just to stop the errors)?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]