microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.15k stars 12.51k forks source link

Language service fails to provide type info #33713

Open falsandtru opened 5 years ago

falsandtru commented 5 years ago

Looks like recursive type breaks type info on Win10. Ubuntu works fine.

cc @ahejlsberg

Language service outputs no info. See #33631.

TypeScript Version: 3.4.0-dev.20191001

Search Terms:

Code

  1. use Win10.
  2. clone https://github.com/falsandtru/securemark
  3. run npm i
  4. open src/util/toc.ts
  5. wait for the language service to be ready
  6. look at type info as follows

image

Expected behavior:

Show correct info.

Actual behavior:

Show wrong info.

Playground Link:

Related Issues:

falsandtru commented 5 years ago

Type info sometimes shows any type after showing a correct type. So looks like the language service has lost caches.

falsandtru commented 5 years ago

This problem sometimes appears even on Ubuntu but it disappears when I try to repro it...