Skip to content

tsserver.js fails to run on node v5.4.1. "TypeError: this is not a typed array" at Buffer.from #25652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
minestarks opened this issue Jul 13, 2018 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue High Priority

Comments

@minestarks
Copy link
Member

minestarks commented Jul 13, 2018

This means the TypeScript 3.0 language service doesn't work at all in the current version of Dev15

TypeScript Version: 3.0
Node version: v5.4.1

Just install VS 15.7 or node <v6 and run tsserver.js:

> C:\vs\d15.7\Web\External\x86\node.exe -v
v5.4.1

> C:\vs\d15.7\Web\External\x86\node.exe "C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js"
C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:119888
                    var buf = Buffer.from ? Buffer.from(s) : new Buffer(s);
                                                   ^

TypeError: this is not a typed array.
    at Function.from (native)
    at Logger.write (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:119888:52)
    at Logger.msg (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:119874:22)
    at Logger.info (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:119847:22)
    at ts.server.ts.server (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:120548:16)
    at ts (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:120561:7)
    at Object.<anonymous> (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.0\tsserver.js:120562:3)
    at Module._compile (module.js:397:26)
    at Object.Module._extensions..js (module.js:404:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:429:10)
    at startup (node.js:139:18)
    at node.js:999:3

CC @mhegazy

@minestarks minestarks added this to the TypeScript 3.0.1 milestone Jul 13, 2018
@mhegazy mhegazy added the Bug A bug in TypeScript label Jul 13, 2018
@mhegazy mhegazy assigned ghost Jul 13, 2018
@ghost ghost closed this as completed in #25659 Jul 14, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jul 16, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue High Priority
Projects
None yet
Development

No branches or pull requests

2 participants