casser / intellij-es67

Other
56 stars 4 forks source link

How to use? #1

Open urish opened 9 years ago

urish commented 9 years ago

First of all, thanks for creating this plugin! I installed it on my WebStorm, however, it still does not recognize the await keyword. Does the plugin require any special configuration?

Thanks!

casser commented 9 years ago

await is context depended keyword can you share code example where its not recognized ?

urish commented 9 years ago

Sorry, I meant to say that async is not recognized. Here is an example:

async function test() {
    return 1;
}

test().then(value => console.log(value));

WebStorm has an error marker that says Expecting newline or semicolon just after the async keyword.

casser commented 9 years ago

Did you change Javascript mode to ECMAScript 6 ?

Please check Preferences -> Languages & Frameworks -> Javascript to be sure that Javascript language version is set to ECMAScript 6 , if still have an issue let me know your System, and exact WebStorm version

PS: I have tested plugin in IntellijIDEA 14 Ultimate on Mac, in theory it should work on WebStorm too but I have never tested directly

urish commented 9 years ago

Indeed, I have changed the language version to ECMAScript 6. Even tried switching back to 5.1 and then to 6 again, but to no avail.

Using WebStorm 9.0.3 (WS-139.1112), checked both on Linux and Windows 7. If you can give me some pointers how to debug this, I can look into it

zazagag commented 9 years ago

the same problem PhpStorm 8.0.3, Win8

meenie commented 9 years ago

I've just installed this plugin, turned on ES6 and it's still having issues with Annotations.

image

meenie commented 9 years ago

@casser: Is there any sort of work around to get Annotations working?

wmakeev commented 9 years ago

I have the same issue with async keyword.

async

MacOS X 10.10.3 WebStorm 9.0.3 (WS-139.1112) Plugin version 1.0.1 ECMAScript 6 (selected)

mlaccetti commented 9 years ago

Similar issue with WebStorm 10.0.4 - OS X.

meenie commented 9 years ago

@casser: Just wanted to say that I've got this working now. All I had to do was uninstall the plugin, restart, install the plugin, and then restart. Thanks :)

wmakeev commented 9 years ago

@meenie what version of plugin and webstorm are you using?

meenie commented 9 years ago

Plugin: 1.2.0 IDE: IntelliJ IDEA Ultimate 14.1.4

smashercosmo commented 9 years ago

Also can't make it work (( Windows 7 Plugin: 1.2.0 WebStorm: 10.0.4

osdio commented 9 years ago

I also failed: mac os 10.10.2 Plugin: 1.2.0 Webstorm: 10