Skip to content
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

host.getGlobalTypingsCacheLocation is not a function #49177

Closed
tjx666 opened this issue May 19, 2022 · 4 comments
Closed

host.getGlobalTypingsCacheLocation is not a function #49177

tjx666 opened this issue May 19, 2022 · 4 comments
Labels
External Relates to another program, environment, or user action which we cannot control.

Comments

@tjx666
Copy link

tjx666 commented May 19, 2022

 ERR <semantic> TypeScript Server Error (4.8.0-dev.20220518)
host.getGlobalTypingsCacheLocation is not a function
TypeError: host.getGlobalTypingsCacheLocation is not a function
    at isNotShadowedByDeeperNodeModulesPackage (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129231:45)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129124:83
    at Array.filter (<anonymous>)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129124:51
    at Map.forEach (<anonymous>)
    at Object.search (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129119:28)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133499:32
    at resolvingModuleSpecifiers (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:131556:26)
    at collectAutoImports (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133498:17)
    at getGlobalCompletions (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133402:17)
    at tryGetGlobalSymbols (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133300:25)
    at getCompletionData (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133044:22)
    at Object.getCompletionsAtPosition (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:131625:34)
    at Object.getCompletionsAtPosition (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:164721:35)
    at Proxy.getCompletionsAtPosition (/Users/yutengjing/.vscode-insiders/extensions/vue.vscode-typescript-vue-plugin-0.34.15/out/index.js:92152:47)
    at Object.apply (/Users/yutengjing/.vscode-insiders/extensions/vue.vscode-typescript-vue-plugin-0.34.15/out/index.js:92419:27)
    at IpcIOSession.Session.getCompletions (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:176511:64)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:175186:61)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177243:88
    at IpcIOSession.Session.executeWithRequestId (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177234:28)
    at IpcIOSession.Session.executeCommand (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177243:33)
    at IpcIOSession.Session.onMessage (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177269:35)
    at process.<anonymous> (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:179904:31)
    at process.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12)
    at processTicksAndRejections (node:internal/process/task_queues:84:21): Error: <semantic> TypeScript Server Error (4.8.0-dev.20220518)
host.getGlobalTypingsCacheLocation is not a function
TypeError: host.getGlobalTypingsCacheLocation is not a function
    at isNotShadowedByDeeperNodeModulesPackage (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129231:45)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129124:83
    at Array.filter (<anonymous>)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129124:51
    at Map.forEach (<anonymous>)
    at Object.search (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:129119:28)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133499:32
    at resolvingModuleSpecifiers (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:131556:26)
    at collectAutoImports (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133498:17)
    at getGlobalCompletions (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133402:17)
    at tryGetGlobalSymbols (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133300:25)
    at getCompletionData (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:133044:22)
    at Object.getCompletionsAtPosition (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:131625:34)
    at Object.getCompletionsAtPosition (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:164721:35)
    at Proxy.getCompletionsAtPosition (/Users/yutengjing/.vscode-insiders/extensions/vue.vscode-typescript-vue-plugin-0.34.15/out/index.js:92152:47)
    at Object.apply (/Users/yutengjing/.vscode-insiders/extensions/vue.vscode-typescript-vue-plugin-0.34.15/out/index.js:92419:27)
    at IpcIOSession.Session.getCompletions (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:176511:64)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:175186:61)
    at /Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177243:88
    at IpcIOSession.Session.executeWithRequestId (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177234:28)
    at IpcIOSession.Session.executeCommand (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177243:33)
    at IpcIOSession.Session.onMessage (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:177269:35)
    at process.<anonymous> (/Users/yutengjing/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.8.20220518/node_modules/typescript/lib/tsserver.js:179904:31)
    at process.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)
	at Function.create (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:505537)
	at dispatchResponse (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:499385)
	at dispatchMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:498253)
	at ChildProcess.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:497738)
	at ChildProcess.emit (node:events:390:28)
	at emit (node:internal/child_process:917:12)
	at processTicksAndRejections (node:internal/process/task_queues:84:21)

versions:

MacOS: 12.3.1
VSCode: 1.68.0-insider
Typescript: 4.6.4
@tjx666
Copy link
Author

tjx666 commented May 19, 2022

@mjbvz

@mjbvz mjbvz transferred this issue from microsoft/vscode May 19, 2022
@andrewbranch andrewbranch self-assigned this May 25, 2022
@andrewbranch andrewbranch added Bug A bug in TypeScript Crash For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output labels May 25, 2022
@andrewbranch andrewbranch added this to the TypeScript 4.7.3 milestone May 25, 2022
@andrewbranch andrewbranch removed Bug A bug in TypeScript Crash For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output labels May 25, 2022
@andrewbranch andrewbranch removed this from the TypeScript 4.7.3 milestone May 25, 2022
@andrewbranch
Copy link
Member

I’m pretty sure this is crashing because of vue.vscode-typescript-vue-plugin. Can you try with that plugin disabled?

@andrewbranch andrewbranch removed their assignment May 26, 2022
@andrewbranch andrewbranch added the Needs More Info The issue still hasn't been fully clarified label May 26, 2022
@tjx666
Copy link
Author

tjx666 commented May 26, 2022

@johnsoncodehk another related issue vuejs/language-tools#1339

@johnsoncodehk
Copy link

I think this issue can be close if already resolve in volar.

@andrewbranch andrewbranch added External Relates to another program, environment, or user action which we cannot control. and removed Needs More Info The issue still hasn't been fully clarified labels Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Relates to another program, environment, or user action which we cannot control.
Projects
None yet
Development

No branches or pull requests

3 participants