You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running tsserver from Termux terminal app on Android:
$ tsserver
Expected behavior:
Tsserver to run.
Actual behavior:
/data/data/com.termux/files/usr/lib/node_modules/typescript/lib/tsserver.js:1317
throw new Error("Debug Failure. False expression: " + (message || "") + verboseDebugString);
^
Error: Debug Failure. False expression:
at Object.assert (/data/data/com.termux/files/usr/lib/node_modules/typescript/lib/tsserver.js:1317:23)
at getGlobalTypingsCacheLocation (/data/data/com.termux/files/usr/lib/node_modules/typescript/lib/tsserver.js:56199:22)
at ts.server.ts.server (/data/data/com.termux/files/usr/lib/node_modules/typescript/lib/tsserver.js:56563:160)
at ts (/data/data/com.termux/files/usr/lib/node_modules/typescript/lib/tsserver.js:56569:7)
at Object.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/typescript/lib/tsserver.js:56570:3)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Workaround:
Edit tsserver.js:
case"linux":
case"android": // add this linebasePath=os.homedir();break;
Activity
mhegazy commentedon Nov 15, 2016
A PR would be appreciated.
andraaspar commentedon Nov 19, 2016
I have created a pull request for this.
Merge pull request #12378 from andraaspar/master