This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262459 - requireJS no longer working with ECMA 6 editor
Summary: requireJS no longer working with ECMA 6 editor
Status: RESOLVED DUPLICATE of bug 262327
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-16 21:33 UTC by dylanv
Modified: 2016-06-17 13:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dylanv 2016-06-16 21:33:27 UTC
Ive been following the ECMA6 Development very heavily in netbeans and now that is finally in the nightly builds, I started making use of a few features such as the default parameters. The problem is, that my existing source code base is still very much ECMA 5 and as such, I still use the requireJS / old node way of importing files using the require() syntax. This no longer works when Im typing in a path, and expect to get autocompletion for the paths relative to the directory I am in. I can still CMD + Click on the path once its fully typed to take to the file however, can we get this working again?

Im in a position, where I cannot easily use tools such as babel because of the scale of the project, and so I think it would still be a good idea to support the requireJS syntax along with the import syntax, which would allow developers to make a steady transition, especially because this used to work.

In a related note, it would be fantastic if double clicking on the node libraries that are listed under "npm Libraries" would open up the main file of the library in the editor, otherwise what else is the reason for listing the library there?
Comment 1 Petr Pisl 2016-06-17 12:19:10 UTC
The firs two paragraphs describe a defect. It has to work both and there should not be a regression. So I'm going to fix it.

Could you enter new issue as enhancement for the opening the main file of a library? It's different thing and should be treat as an enhancement. Thanks.
Comment 2 Petr Pisl 2016-06-17 12:27:03 UTC
Could you exactly describe, what doesn't work? I'm asking because when I call code completion in require ('../|'), then the code completion work. Probably it's to simple case, but I need to find how to reproduce. Thanks.
Comment 3 Vladimir Riha 2016-06-17 12:31:21 UTC
I've faced similar issue when re-using user dir from older NetBeans, see bug #262327

Starting IDE with fresh user dir helped
Comment 4 dylanv 2016-06-17 12:57:43 UTC
it might have to do with the project cache, ill remove those now and try again, Ill also open up a new issue as you mentioned.
Comment 5 dylanv 2016-06-17 13:08:38 UTC
@Vladimir Riha you were right, ill close this issue now in favour of your other issue (I did search through the existing bug DB for something relating to this, but didn't seem to find yours when I first logged this :/ )
Comment 6 dylanv 2016-06-17 13:09:39 UTC

*** This bug has been marked as a duplicate of bug 262327 ***
Comment 7 Vladimir Riha 2016-06-17 13:17:00 UTC
No problem, thank you.
Comment 8 Petr Pisl 2016-06-17 13:19:18 UTC
Guys, thanks for helping with this.