Unresolved methods for built in types

WebStorm: 2020.3.1
OS: Windows 10 (via RDP into Windows Server)

When declaring an array (and other types) using a literal syntax, WebsStorm does not recognize its built-in methods and properties.

When declaring an array using the new Array() syntax, WebStorm recognizes the properties and methods, but suggests that the syntax should be simplified.

This is only one example of issues that I have been experiencing with WebStorm's type inference. For this specific issue, should I create a bug report?

Troubleshooting:

  • Invalidated Cache / restart
  • Ensure Node coding support is enabled for the project
0

Works fine for me - methods are resolved and suggested by completion; they are defined in the built-in libraries enabled for all projects...

 

Can you repeat the issue in a new project?

0

The previous example was from a new project. I created another one (empty project, no defaults) and had the same issue. It seems to be affecting all types, not just arrays.

 

 

Version information:

WebStorm 2020.3.1
Build #WS-203.6682.155, built on December 28, 2020
Licensed to xxxxxxx
Subscription is active until xxxxxxxx
Runtime version: 11.0.9.1+11-b1145.63 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows Server 2019 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
Non-Bundled Plugins: org.toml.lang, com.intellij.plugin.adernov.powershell

0

When you Ctrl+click on Array in new Array(), what file are you taken to?

0

Nothing

0

The pre-installed library definitions (d.ts files) must have become corrupted... Does it help if you start with default settings (File > Manage IDE Settings > Restore Default Settings...)? If it doesn't, I'd suggest re-installing from scratch

0

请先登录再写评论。