Javascript native objects not recoginzed?

Hi, I'm pretty puzzled and annoyed that JS ecosystem specific IDE is not recognizing JS built in objects like JSON, Date, Math? Why I'm getting ‘Unresolved variable of type Math’ or ‘Unresolved function or method now()’ for Date.now().

How to fix this? Also pretty wild that there is this kind of issue at all….
 

0
9 comments

Unfortunately I failed to reproduce the issue:

 

It looks as if the basic web API definitions like lib.es5.d.ts that are usually installed in <IDE install dir>/plugins/javascript-plugin/jsLanguageServicesImpl/external can't be resolved for the certain reason.

Could you check if you can reproduce the issue in a brand new JavaScript project?

0

Checked another project and same there. Not sure about new projects, but I'm getting this problem in existing projects not created in WS. Extremley annoying, I just switched to WS for - dedicated JS IDE…..

0

even console.log is unresolved !?!?!

0

Please create a new empty project, add a .js file, write some code - does the issue persist?

0

yes, same for new project created in WS

0

Please could you check the file patterns assigned to the Typescript file type in Settings | Editor | File Types? Additionally, could you share the idea.log (Help > Show Log in ...) plus a <IDE config dir>/options/fileTypes.xml file? This will give us the information we need about your environment, settings and custom plugins you have installed.

0

file patterns are correct. Sorry can't share logs don't have time to check whats there.
Is there a solution for this problem? 

0
It's not clear what the problem is, so I can't offer any solution. Please share the data I asked for.
0

Yea, I guess its really not clear… thanks for your time.

0

Please sign in to leave a comment.