Intellisense Broken in 2018.2 for certain situations

Windows 10, WebStorm: 2018.2, build 182-3684-70

Ever since I upgraded, Intellisense for the following code snipped no longer works:

 

module.exports.dependencies = () => {

return {


getExchangeRate: ()=> {},

};
};

module.exports.runTransaction = async ()=>{

let dep = module.exports.dependencies();

dep.getE <--- this used to accurately pull up members, an no longer does

}

 

This is a big DI pattern for us, and we implemented is SPECIFICALLY to be able to use Intellisense. Can you advise as to why this is no longer working?

0
11 comments

Works for me:

Please try invalidating caches (File | Invalidate caches, Invalidate and restart) - does it help?

0

I tried to invalidate caches again, still not working.... see image below:

 

0

weird... Can you recreate the issue in a new project?

0

For what it's worth, this DOES work - but it doesn't help me from a Dependency Injection standpoint:

 

0

Interesting... in a brand spanking new project, it works fine... any ideas on how I can do a diff to figure out what's different in my project?

Perhaps it would help if I privately zipped up a project that works, and a project where this doesn't - and you could help identify the configuration issue causing the problem?

0

>Perhaps it would help if I privately zipped up a project that works, and a project where this doesn't - and you could help identify the configuration issue causing the problem?

 

yes, I think it would help...

0

OK,

This is really weird. I was going to zip up the projects and removed the node_modules folder to save space, and - lo and behold - now the Code Completion works. I tried to use trial and error to identify which node package was breaking the intellisense, and it looks like one of our private package, but it's flaky; it always works when that package is absent, but sometimes works and sometimes doesn't when the package is there.

Why would a npm package break Code Completion?

What's the best way to get you a copy of the project?

0

You can upload it to our FTP server: ftp://ftp.intellij.net/.uploads/ (anonymous login, .uploads directory has no permissions to list/download files, only for upload, so that other users will not be able to download your files)

0

I logged on, but when I type cd .uploads I get an error, and can't upload anything:

 

0

Hmmm... Works fine for me:

C:\JetBrains\WebStorm 2018.2>ftp -n ftp.intellij.net
Connected to ftp.intellij.net.
220 FTP Server ready.
ftp> user anonymous
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous login ok, restrictions apply.
ftp> cd .uploads
250 CWD command successful
ftp>

Can you try again?

If this doesn't work, pleadse create a new support ticket - they are kept private, all information you will provide will only be available to responsible support engineer

0

I just tried again, look at the conversation...

I'll try to open a support ticket.

0

Please sign in to leave a comment.