镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

TS Server crashes once TS file is open #15716

Description

@mjbvz

From Amin Pakseresht (@aminpaks) on May 9, 2017 11:21

  • VSCode Version: 1.12.1
  • OS Version: macOS 10.12.4 (16E195)

The project is private so I can't share the code or steps to reproduce it though I'm going to provide some logs, hopefully will be enough. If you need something else please ask.
The file that I open is about 1100 lines and it's a pure typescript file that is importing some of lodash, d3 and angular v4.
As soon as I open this file TS Server crashes and nothing will work anymore! TS Server restarts but it gets stuck at binding forever, and the only way to get Code to work is to restart.
This issue started right after updating to 1.12

Here is the TS Server log file
Here is the ChromeDevTools console

Copied from original issue: microsoft/vscode#26299

Activity

  1. mjbvz commented on May 10, 2017

    @mjbvz
    Author

    From Amin Pakseresht (@aminpaks) on May 9, 2017 17:43

    So apparently the issue is with Typescript v2.3.x, it works with v2.2.x
    Should I inform Typescript team, or you guys can move this?

  2. mjbvz commented on May 10, 2017

    @mjbvz
    Author

    Moving over to TypeScript repo since it sounds like the issue only happens when TypeScript 2.3 is used. I don't see anything suspicious in the log file or the the developer tools screenshot

    Amin Pakseresht (@aminpaks) Can you try setting "typescript.tsserver.trace": "verbose" in VSCode and reproducing the issue. Then open the output panel and share the output from the TypeScript output section. This may provide some additional clues to what is going wrong

    Also does this happen for all projects, or just the one project you are working in?

  3. aminpaks commented on May 10, 2017

    @aminpaks
    Contributor

    Sure Matt,
    This happens only on a few files of one specific project so far.

    Here is the TS Server trace log

  4. westonpace commented on May 11, 2017

    @westonpace

    This seems very similar to #15028 . I've recorded my observations there but it's about the same, crashes as soon as I open (actually it won't crash until I try and resolve a particular symbol in my file), doesn't occur on 2.2 but does on 2.3, etc.

  5. aminpaks commented on Jul 12, 2017

    @aminpaks
    Contributor

    Andy (Andrewkraft) (@Andy-MS) I'd really like to help, and I tried to reproduce it with typescript@next but no luck.
    I'll keep you posted if I had a chance to catch it.

  6. mhegazy commented on Aug 16, 2017

    @mhegazy
    Contributor

    closing for now. please reopen if you see the issue again.

  7. locked and limited conversation to collaborators on Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions