문제

For some odd reason, I can't seem to have code completion with the "express" object in my node.js project. Here is a screen of it.

enter image description here

My OS is Windows 8 and I am using IntelliJ Idea 12.11. Perhaps I need to do some extra setup? Please let me know.

도움이 되었습니까?

해결책

@CrazyCoder got it right, it is indeed a intellij bug, as of now still unpatched, guess we have to wait =( The URL is http://youtrack.jetbrains.com/issue/WEB-6667. In the meantime, I guess I will have to live with it.

다른 팁

if you are on IDEA 13, you will still not get the Express methods until you use the express typescript stub

go to Javascript Libraries > Downloads and switch the combobox at the top to Typescript community stubs then type express

you should see the stub, it's also here: https://github.com/borisyankov/DefinitelyTyped/blob/master/express/express.d.ts

if you are on Java 1.7 and haven't disabled the SNI Support you will get a handshake alert and the download will fail, go to the directory where your IDEA.exe is located and add the following line to the idea.exe.vmoptions:

-Djsse.enableSNIExtension=false
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top