code completion do not work in Nodeclipse 0.4

2019-04-09 19:15发布

问题:

Are there something that I messed up, when installing Nodeclipse 0.4 so I can not do code completion since my code is worked.



EDIT:

as you can see at picture,
- the red one is Node mode in Eclipse Kepler which enable after Nodeclipse installed
- the blue one is Java EE IDE in Eclipse which I use as to installed Nodeclipse
- the yellow one is Node code in Eclipse which default exist if I chose the example
- the green is Node code class representative.

if I press CTRL+Space in console., there is not any code completion showed up which should showed up cause I already have JsHint v. 0.9.6

if I follow instructions of installation.. then..

I got this list.. (note: the disables means I already installed it.)

then.. I got this message..



ANOTHER ADDITIONAL EDIT: as the comment of Nodeclipse developer,

if I reproduced but to installed JSHint alone then it goes with this message..

Thanks,
Ahmad

回答1:

There is work in progress on content assist for Node.js modules Content assist for Eclipse JSDT based Editor

fork with work in progress: https://github.com/Enide/nodeclipse-1/compare/Nodeclipse:master...master

http://www.nodeclipse.org/img/Completion-for-base-Node.js-modules.PNG



回答2:

Code completion is depending on what code you have. Could you please share your snippet? Version 0.4 has Eclipse JSDT standard functions. Node.js specific libraries support is not yet implemented.

Opened issue for new feature is #50 support for node.js style module definitions

console is defined inside node.js, and as such is not yet supported.



回答3:

For second part of the question (about installation using Enide .p2f file):

if I follow instructions of installation.. then..

some update sites like StartExplore are not stable and often unavailable

So if there is problem installiing, The recommendation would be to install less plugins in one time (only 1 at a time, for example) (Then there is way to know what exact plugin update site is unavailable at this time)

For nodeclipse itself latest Eclipse (Like 4.2.2 IDE for Java EE Developers) is recommended & enough.