Node.js: Unresolved globals and no documentation after upgrade to 2016

I just upgraded to 2016.1, and I had to download additional libraries like 'node-DefinitelyTyped' just to get rid of 'unresolved' warnings for basic stuff like require(), despite the fact 'ECMAScript 6' was already 'predefined.' I don't remember having to do this in the past.

Also, nothing has documentation available anymore. I was pretty new to Webstorm in the last version, so I don't remember what all was documented, but I though I remember it at least showing method signatures etc. in the absence of explicit docs. This includes the things I downloaded libraries for, e.g. require(). Am I crazy, or is this all normal? I feel like I lost an important setting or something, but can't figure it out. Code completion seems to be working, that's about it.

3 comments

> I had to download additional libraries like 'node-DefinitelyTyped' just to get rid of 'unresolved' warnings for basic stuff like require(), despite the fact 'ECMAScript 6' was already 'predefined.' 

 

You don't need doing this, you just have to enable 'Node.js Core' library for your project - Settings | Languages & Frameworks | Node.js and NPM, press Enable button to do this

 

>Also, nothing has documentation available anymore. I was pretty new to Webstorm in the last version, so I don't remember what all was documented, but I though I remember it at least showing method signatures etc. in the absence of explicit docs. This includes the things I downloaded libraries for, e.g. require()

 

Still there. And, as before, quick documentation is based on comments attached to function

 

 

If it doesn't work for you, provide code samples that show up the issue

0

Thank you for the quick response! That resolved all my problems -- I was looking under Languages&Frameworks>Javascript, rather than looking in the parent list. I guess I must have figured this out in the past as everything is working as it used to.

One final question: is there a way to make settings under Languages&Frameworks "sticky"/global, rather than project-specific?

 

 

0

No, they all are project-specific. Note that you can modify some of them in File | Default Settings | Languages&Frameworks - options set there will affect all new projects

0

Please sign in to leave a comment.