Skip to content

TSServer errors for in-memory only resource #21204

Closed
@mjbvz

Description

@mjbvz

TypeScript Version: 2.7.0-dev.20180108

From microsoft/vscode#40915 (comment)

Repo

  1. Open VS Code
  2. Open interactive playground
  3. Try triggering intellisense in one of the JS/TS sections

These files are implemented using a custom uri scheme walkThroughSnippet that only exists in-memory

Expected behavior:
Works as expected.

Actual behavior:
Errors on these files

[Trace  - 11:18:51] Sending request: navtree (11). Response expected: yes. Current queue length: 7
Arguments: {
    "file": "walkThroughSnippet:/Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/out/vs/workbench/parts/welcome/walkThrough/electron-browser/editor/vs_code_editor_walkthrough.md#1.js"
}
[Trace  - 11:18:51] Response received: navtree (11). Request took 414 ms. Success: false . Message: Error processing request. Debug Failure. False expression: Script info with non-dynamic relative file name can only be open script info
Error: Debug Failure. False expression: Script info with non-dynamic relative file name can only be open script info
    at ProjectService.getOrCreateScriptInfoWorker (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:86857:30)
    at ProjectService.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:86843:29)
    at ProjectService.getOrCreateScriptInfoNotOpenedByClient (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:86823:29)
    at InferredProject.Project.getOrCreateScriptInfoAndAttachToProject (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:84850:54)
    at InferredProject.Project.getScriptSnapshot (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:84870:39)
    at SyntaxTreeCache.getCurrentSourceFile (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:81705:44)
    at Object.getNavigationTree (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:82196:71)
    at IOSession.Session.getNavigationTree (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:88735:44)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:87756:61)
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:89032:88
    at IOSession.Session.executeWithRequestId (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:89023:28)
    at IOSession.Session.executeCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:89032:33)
    at IOSession.Session.onMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:89052:35)
    at Interface.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:90253:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

Here's the complete tsserver log: tsserver.log

tsserver.log

Metadata

Metadata

Assignees

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