Open svbrunov opened 4 years ago
Hello. Reproduced. I will fix in near future.
But, do not expect many features from JS plugin. This plugin have minor priority due limited resources.
Thanks
Dear Valery Semenchuk (@VISTALL),
Understood.
Thank you very much for the prompt reply!
Best regards,
Sergey Brunov.
Dear Valery Semenchuk (@VISTALL),
Please, kindly see the following issue report.
Environment
Consulo
Node
Problem
The
import
statements that have the local name specified are not recognised correctly: the Consulo file editor shows the errors with the «Comma expected» message.ECMAScript 2015 Language Specification
Such
import
statements are specified by the language specification. Please, see the table: ECMAScript 2015 Language Specification – ECMA-262 6th Edition: Table 40 (Informative) — Import Forms Mappings to ImportEntry Records:Test scenario
Precondition steps
Create a new JavaScript project using Consulo: specify the empty directory.
Add the «ECMAScript 6» extension to the project module:
Create the following two
.mjs
files:a.mjs
:b.mjs
:(Optional, but highly recommended.) Run the
b.mjs
module usingnode
to make sure the module works fine (without errors):Steps
b.mjs
file in Consulo to see (edit) it the Consulo file editor.Actual result
The Consulo file editor shows two errors with the same «Comma expected» message:
Expected result
The Consulo file editor does not show any error.
Best regards, Sergey Brunov.