NodeJS + Code Completion not working

Hi,

I'm new to NodeJS but not to JetBrains products.  I've been working through all the JetBrains specific examples, but I can't get Code Completion to work as expected.  Even the simple helloworld.js on nodejs.org does not resolve http.createServer (screenshot attached with unresolved function tooltip)

What does work:
- I can Run / Debug a NodeJS process including successful local debug + breakpoints

I'm running:
- Win XP Pro x64
- tested on IntelliJ 11.0.2 and WebStorm 3.0.2 (both not working)
- node.js version =0.6.11

Wanted to see if anyone else got this working before I raise an issue.

nodeCodeCompletion.gif



Attachment(s):
nodeCodeCompletion.gif
0
2 comments

Hi,

You should follow instructions in http://blog.jetbrains.com/webide/2011/11/webstorm-your-node-app/

In short: please point to directory containing sources of NodeJS (there are bunch of JavaScript files inside), do NOT point to directory of NodeJS executable. There are quite a few tickets and forum threads on the same issue -- I guess article is not clear enough on this and hopefully next version/build should have some explanation text/hint added to that dialog window.

0

Hi Andriy,

Thanks -- I had looked at that before but and after reading it very closely again, I see it now

Yes -- would be a little more clear if the JDialog / popup said Specify NodeJS source file location...but it was silly of me.

Thanks again!

0

Please sign in to leave a comment.