Skip to content

TSServer Crashes When Opening Sharepoint Folder  #13874

@mjbvz

Description

@mjbvz

TypeScript Version: 2.1.5

We're seeing a large number of reports of TSServer crashes from VSCode users when they attempt to open a project stored on sharepoint. I can repo this by opening a simple sharepoint folder with a single empty js file on windows.

Here's an example trace of the communications from VSCode:

Insiders\resources\app\extensions\typescript\node_modules\typescript\lib\tsserver.js
[Trace - 1:31:58 PM] Sending request: configure (153). Response expected: yes. Current queue length: 0
Arguments: {
    "hostInfo": "vscode"
}
[Trace - 1:31:58 PM] Response received: configure (153). Request took 294 ms. Success: true 
[Trace - 1:31:58 PM] Sending request: compilerOptionsForInferredProjects (154). Response expected: yes. Current queue length: 3
Arguments: {
    "options": {
        "module": "CommonJS",
        "target": "ES6",
        "allowSyntheticDefaultImports": true,
        "allowNonTsExtensions": true,
        "allowJs": true,
        "jsx": "Preserve"
    }
}
[Trace - 1:31:58 PM] Response received: compilerOptionsForInferredProjects (154). Request took 296 ms. Success: true 
Result: true
[Trace - 1:31:58 PM] Sending request: open (155). Response expected: no. Current queue length: 2
Arguments: {
    "file": "//microsoft.sharepoint.com@SSL/DavWWWRoot/teams/DD_OTP/Documents/Java and Open Tools/Node/test/main.js",
    "fileContent": ""
}
[Trace - 1:31:58 PM] Sending request: geterr (156). Response expected: no. Current queue length: 1
Arguments: {
    "delay": 0,
    "files": []
}
[Trace - 1:31:58 PM] Sending request: geterr (157). Response expected: no. Current queue length: 0
Arguments: {
    "delay": 0,
    "files": [
        "//microsoft.sharepoint.com@SSL/DavWWWRoot/teams/DD_OTP/Documents/Java and Open Tools/Node/test/main.js"
    ]
}
[Error - 1:31:58 PM] TSServer exited with code: 3221226356

TSS_LOG did not produce any data, just Info 0 Binding...

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHigh PriorityVS 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