Closed harshmandan closed 4 weeks ago
Using svelte with typescript and opening typescript files in vscode crashes the typescript server in just a few seconds.
Here's a complete log:
Info 0 [15:21:06.628] Starting TS Server Info 1 [15:21:06.628] Version: 5.5.2 Info 2 [15:21:06.628] Arguments: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/macbook/Documents/GitHub/myapp/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/y0/0dq6fgpd31g3th4_w2vlbccc0000gn/T/vscode-typescript501/b12042cc5b60d466df80/tscancellation-e1d90ff5aec0fc3dc739.tmp* --logVerbosity verbose --logFile /Users/macbook/Library/Application Support/Code/logs/20240708T153836/window4/exthost/vscode.typescript-language-features/tsserver-log-ee1vCV/tsserver.log --globalPlugins typescript-svelte-plugin --pluginProbeLocations /Users/macbook/.vscode/extensions/svelte.svelte-vscode-108.5.4 --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc Info 3 [15:21:06.628] Platform: darwin NodeVersion: v20.9.0 CaseSensitive: false Info 4 [15:21:06.628] ServerMode: undefined hasUnknownServerMode: undefined Info 5 [15:21:06.633] Binding... Info 6 [15:21:06.636] request: { "seq": 0, "type": "request", "command": "configure", "arguments": { "hostInfo": "vscode", "preferences": { "providePrefixAndSuffixTextForRename": true, "allowRenameOfImportPath": true, "includePackageJsonAutoImports": "on", "excludeLibrarySymbolsInNavTo": true }, "watchOptions": {} } } Info 7 [15:21:06.637] Host information vscode Info 8 [15:21:06.637] Host watch options changed to undefined, it will be take effect for next watches. Info 9 [15:21:06.637] response: {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true} Perf 10 [15:21:06.637] 0::configure: async elapsed time (in milliseconds) 0.8933 Info 11 [15:21:06.637] request: { "seq": 1, "type": "request", "command": "compilerOptionsForInferredProjects", "arguments": { "options": { "module": "ESNext", "moduleResolution": "Bundler", "target": "ES2020", "jsx": "react", "allowImportingTsExtensions": true, "strictNullChecks": true, "strictFunctionTypes": true, "sourceMap": true, "allowJs": true, "allowSyntheticDefaultImports": true, "allowNonTsExtensions": true, "resolveJsonModule": true } } } Perf 12 [15:21:06.638] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.3604 Info 13 [15:21:06.638] response: {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true} Info 14 [15:21:06.638] request: { "seq": 2, "type": "request", "command": "updateOpen", "arguments": { "changedFiles": [], "closedFiles": [], "openFiles": [ { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "fileContent": "import { setContext, getContext } from 'svelte'\nimport type { Channel, ChannelSection } from '@myapp/db'\n\nconst CONTEXT_KEY = {}\n\nexport const setChannelContext = (\n channel: Channel,\n sections: ChannelSection[],\n) => {\n const context = {\n channel,\n sections,\n }\n return setContext(CONTEXT_KEY, context)\n}\n\ntype ChannelContext = ReturnType<typeof setChannelContext>\nexport const getChannelContext = () => getContext<ChannelContext>(CONTEXT_KEY)\n", "projectRootPath": "/Users/macbook/Documents/GitHub/myapp", "scriptKindName": "TS" }, { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts", "fileContent": "import type { LayoutServerLoad } from './$types'\nimport { error } from '@sveltejs/kit'\nimport { getChannelMetaProps } from '$lib/utils/metaProps'\nimport { QueryDocumentSnapshot, getFirestore } from 'firebase-admin/firestore'\nimport { firestore } from '@myapp/services/firebase-admin'\nimport type { Channel, ChannelSection, ViewerChannelVideo } from '@myapp/db'\nimport { getReturnURL } from '$lib/utils/serverOnly/surveyProviders'\n\nasync function getChannel(channelId: string) {\n const db = getFirestore()\n\n const channel = await db\n .doc(`items/${channelId}`)\n .get()\n .then((v) =>\n v.exists ? ({ ...v.data(), id: v.id, meta: {} } as Channel) : null,\n )\n\n if (!channel || channel.status !== 'active') {\n error(404, { message: 'Channel not found' })\n }\n\n return channel\n}\n\nasync function getChannelSections(channelId: string) {\n const db = getFirestore()\n\n const channelSections = await db\n .doc(`items/${channelId}`)\n .collection('sections')\n .get()\n .then(async (v) => {\n return v.docs\n })\n\n return channelSections\n}\n\nasync function getChannelVideos(channelId: string) {\n const channelVideos = await firestore\n .collection('items')\n .where('parentId', '==', channelId)\n .get()\n\n return channelVideos.docs.map((doc) => {\n return { ...doc.data(), videoId: doc.id, meta: {} } as ViewerChannelVideo\n })\n}\n\nfunction mergeSections(\n sections: QueryDocumentSnapshot[],\n videos: ViewerChannelVideo[],\n) {\n const mergedSectionData = sections.map((doc: QueryDocumentSnapshot) => {\n const docData = doc.data()\n\n return {\n ...docData,\n id: doc.id,\n meta: {},\n videos: videos.filter((video: ViewerChannelVideo) =>\n Object.keys(docData.items).includes(video.videoId),\n ),\n } as ChannelSection\n })\n\n return mergedSectionData\n}\n\nexport const load: LayoutServerLoad = async ({\n params,\n url,\n request,\n locals,\n}) => {\n const channelId = params.channelId\n\n const returnURL = await getReturnURL(url.searchParams)\n\n const [channel, sections, videos] = await Promise.all([\n getChannel(channelId),\n getChannelSections(channelId),\n getChannelVideos(channelId),\n ])\n\n const channelSections = mergeSections(sections, videos)\n\n return {\n channel,\n sections: channelSections,\n geo: {\n country: request.headers.get('x-appengine-country'),\n region: request.headers.get('x-appengine-region'),\n },\n metaProps: getChannelMetaProps(channel, url.href),\n returnURL,\n uid: locals.uid,\n anonymous: locals.anonymous,\n }\n}\n", "projectRootPath": "/Users/macbook/Documents/GitHub/myapp", "scriptKindName": "TS" } ] } } Info 6333 [15:21:25.120] response: {"seq":0,"type":"response","command":"documentHighlights","request_seq":48,"success":true,"body":[{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts","highlightSpans":[{"start":{"line":6,"offset":24},"end":{"line":6,"offset":38},"contextStart":{"line":6,"offset":1},"contextEnd":{"line":6,"offset":79},"kind":"writtenReference"},{"start":{"line":65,"offset":10},"end":{"line":65,"offset":24},"kind":"reference"}]}]} Info 6334 [15:21:25.121] request: { "seq": 49, "type": "request", "command": "projectInfo", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/packages/db/src/db/db.items/db.items.types.ts", "needFileNameList": false } } Perf 6335 [15:21:25.122] 49::projectInfo: elapsed time (in milliseconds) 0.1868 Info 6336 [15:21:25.122] response: {"seq":0,"type":"response","command":"projectInfo","request_seq":49,"success":true,"body":{"configFileName":"/Users/macbook/Documents/GitHub/myapp/src/packages/db/tsconfig.json","languageServiceDisabled":false}} Info 6337 [15:21:25.124] request: { "seq": 50, "type": "request", "command": "configure", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/packages/db/src/db/db.items/db.items.types.ts", "formatOptions": { "tabSize": 2, "indentSize": 2, "convertTabsToSpaces": true, "newLineCharacter": "\n", "insertSpaceAfterCommaDelimiter": true, "insertSpaceAfterConstructor": false, "insertSpaceAfterSemicolonInForStatements": true, "insertSpaceBeforeAndAfterBinaryOperators": true, "insertSpaceAfterKeywordsInControlFlowStatements": true, "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, "insertSpaceBeforeFunctionParenthesis": false, "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, "insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true, "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, "insertSpaceAfterTypeAssertion": false, "placeOpenBraceOnNewLineForFunctions": false, "placeOpenBraceOnNewLineForControlBlocks": false, "semicolons": "ignore", "indentSwitchCase": true }, "preferences": { "quotePreference": "auto", "importModuleSpecifierEnding": "auto", "jsxAttributeCompletionStyle": "auto", "allowTextChangesInNewFiles": true, "providePrefixAndSuffixTextForRename": true, "allowRenameOfImportPath": true, "includeAutomaticOptionalChainCompletions": true, "provideRefactorNotApplicableReason": true, "generateReturnInDocTemplate": true, "includeCompletionsForImportStatements": true, "includeCompletionsWithSnippetText": true, "includeCompletionsWithClassMemberSnippets": true, "includeCompletionsWithObjectLiteralMethodSnippets": true, "autoImportFileExcludePatterns": [ "**/internal" ], "preferTypeOnlyAutoImports": false, "useLabelDetailsInCompletionEntries": true, "allowIncompleteCompletions": true, "displayPartsForJSDoc": true, "disableLineTextInReferences": true, "interactiveInlayHints": true, "includeCompletionsForModuleExports": true, "includeInlayParameterNameHints": "none", "includeInlayParameterNameHintsWhenArgumentMatchesName": false, "includeInlayFunctionParameterTypeHints": false, "includeInlayVariableTypeHints": false, "includeInlayVariableTypeHintsWhenTypeMatchesName": false, "includeInlayPropertyDeclarationTypeHints": false, "includeInlayFunctionLikeReturnTypeHints": false, "includeInlayEnumMemberValueHints": false } } } Perf 6380 [15:21:25.935] 60::geterr: async elapsed time (in milliseconds) 0.1616 Info 6381 [15:21:25.937] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts","diagnostics":[]}} Info 6382 [15:21:25.937] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts","diagnostics":[]}} Info 6383 [15:21:25.937] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts","diagnostics":[]}} Info 6384 [15:21:25.944] event: {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts","diagnostics":[]}} Info 6385 [15:21:25.948] event: {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts","diagnostics":[]}} Info 6386 [15:21:25.953] event: {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts","diagnostics":[]}} Info 6387 [15:21:25.953] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":60}} Info 6388 [15:21:26.478] request: { "seq": 61, "type": "request", "command": "updateOpen", "arguments": { "changedFiles": [], "closedFiles": [ "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts" ], "openFiles": [] } } Info 6389 [15:21:26.478] FileWatcher:: Added:: WatchInfo: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts 500 undefined WatchType: Closed Script info Info 6390 [15:21:26.478] event: {"seq":0,"type":"event","event":"createFileWatcher","body":{"id":1705,"path":"/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts"}} Info 6391 [15:21:26.478] Project '/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json' (Configured) Info 6391 [15:21:26.478] Files (3143) Info 6391 [15:21:26.478] ----------------------------------------------- Info 6391 [15:21:26.478] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) Info 6391 [15:21:26.478] Files (2911) Info 6391 [15:21:26.478] ----------------------------------------------- Info 6391 [15:21:26.478] Project '/Users/macbook/Documents/GitHub/myapp/tsconfig.json' (Configured) Info 6391 [15:21:26.479] Files (0) InitialLoadPending Info 6391 [15:21:26.479] ----------------------------------------------- Info 6391 [15:21:26.479] Project '/Users/macbook/Documents/GitHub/myapp/src/packages/db/tsconfig.json' (Configured) Info 6391 [15:21:26.479] Files (745) Info 6391 [15:21:26.479] ----------------------------------------------- Info 6391 [15:21:26.479] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) Info 6391 [15:21:26.479] Files (2) Info 6391 [15:21:26.479] ----------------------------------------------- Info 6391 [15:21:26.479] Open files: Info 6391 [15:21:26.479] FileName: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts ProjectRootPath: /Users/macbook/Documents/GitHub/myapp Info 6391 [15:21:26.479] Projects: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Perf 6391 [15:21:26.479] 61::updateOpen: elapsed time (in milliseconds) 0.4228 Info 6392 [15:21:26.479] response: {"seq":0,"type":"response","command":"updateOpen","request_seq":61,"success":true,"body":true} Info 6393 [15:21:26.480] request: { "seq": 62, "type": "request", "command": "projectInfo", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "needFileNameList": false } } Info 6394 [15:21:26.480] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Info 6395 [15:21:26.483] DirectoryWatcher:: Added:: WatchInfo: /Users/macbook/Documents/GitHub/myapp/src/packages/node_modules 1 undefined Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json WatchType: Failed Lookup Locations Info 6396 [15:21:26.484] Elapsed:: 0.007625102996826172ms DirectoryWatcher:: Added:: WatchInfo: /Users/macbook/Documents/GitHub/myapp/src/packages/node_modules 1 undefined Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json WatchType: Failed Lookup Locations Err 6397 [15:21:26.505] Exception on executing command { "seq": 62, "type": "request", "command": "projectInfo", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "needFileNameList": false } }: Debug Failure. False expression. Error: Debug Failure. False expression. at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11) at Array.forEach (<anonymous>) at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19) at Map.forEach (<anonymous>) at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42) at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24) at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36) at IpcIOSession.getProjectInfoWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190249:5) at IpcIOSession.getProjectInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190239:17) at projectInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189161:43) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69 at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14) at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29) at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51) at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14) at process.emit (node:events:514:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) File text of /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts: import { setContext, getContext } from 'svelte' import type { Channel, ChannelSection } from '@myapp/db' const CONTEXT_KEY = {} export const setChannelContext = ( channel: Channel, sections: ChannelSection[], ) => { const context = { channel, sections, } return setContext(CONTEXT_KEY, context) } type ChannelContext = ReturnType<typeof setChannelContext> export const getChannelContext = () => getContext<ChannelContext>(CONTEXT_KEY) Info 6398 [15:21:26.505] response: {"seq":0,"type":"response","command":"projectInfo","request_seq":62,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11)\n at Array.forEach (<anonymous>)\n at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19)\n at Map.forEach (<anonymous>)\n at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42)\n at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24)\n at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36)\n at IpcIOSession.getProjectInfoWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190249:5)\n at IpcIOSession.getProjectInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190239:17)\n at projectInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189161:43)\n at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69\n at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14)\n at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29)\n at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51)\n at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14)\n at process.emit (node:events:514:28)\n at emit (node:internal/child_process:951:14)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"} Info 6399 [15:21:26.505] request: { "seq": 63, "type": "request", "command": "getApplicableRefactors", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "startLine": 1, "startOffset": 1, "endLine": 1, "endOffset": 1, "triggerReason": "implicit", "includeInteractiveActions": true } } Info 6400 [15:21:26.506] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Err 6401 [15:21:26.558] Exception on executing command { "seq": 63, "type": "request", "command": "getApplicableRefactors", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "startLine": 1, "startOffset": 1, "endLine": 1, "endOffset": 1, "triggerReason": "implicit", "includeInteractiveActions": true } }: Debug Failure. False expression. Error: Debug Failure. False expression. at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11) at Array.forEach (<anonymous>) at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19) at Map.forEach (<anonymous>) at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42) at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24) at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36) at ConfiguredProject2.getLanguageService (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182581:7) at IpcIOSession.getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190987:28) at getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189208:43) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69 at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14) at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29) at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51) at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14) at process.emit (node:events:514:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) File text of /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts: import { setContext, getContext } from 'svelte' import type { Channel, ChannelSection } from '@myapp/db' const CONTEXT_KEY = {} export const setChannelContext = ( channel: Channel, sections: ChannelSection[], ) => { const context = { channel, sections, } return setContext(CONTEXT_KEY, context) } type ChannelContext = ReturnType<typeof setChannelContext> export const getChannelContext = () => getContext<ChannelContext>(CONTEXT_KEY) Info 6402 [15:21:26.558] response: {"seq":0,"type":"response","command":"getApplicableRefactors","request_seq":63,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11)\n at Array.forEach (<anonymous>)\n at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19)\n at Map.forEach (<anonymous>)\n at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42)\n at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24)\n at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36)\n at ConfiguredProject2.getLanguageService (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182581:7)\n at IpcIOSession.getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190987:28)\n at getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189208:43)\n at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69\n at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14)\n at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29)\n at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51)\n at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14)\n at process.emit (node:events:514:28)\n at emit (node:internal/child_process:951:14)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"} Info 6403 [15:21:26.730] request: { "seq": 64, "type": "request", "command": "getApplicableRefactors", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "startLine": 2, "startOffset": 33, "endLine": 2, "endOffset": 33, "triggerReason": "implicit", "includeInteractiveActions": true } } Info 6404 [15:21:26.730] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Err 6405 [15:21:26.737] Exception on executing command { "seq": 64, "type": "request", "command": "getApplicableRefactors", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "startLine": 2, "startOffset": 33, "endLine": 2, "endOffset": 33, "triggerReason": "implicit", "includeInteractiveActions": true } }: Debug Failure. False expression. Error: Debug Failure. False expression. at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11) at Array.forEach (<anonymous>) at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19) at Map.forEach (<anonymous>) at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42) at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24) at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36) at ConfiguredProject2.getLanguageService (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182581:7) at IpcIOSession.getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190987:28) at getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189208:43) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69 at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14) at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29) at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51) at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14) at process.emit (node:events:514:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) File text of /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts: import { setContext, getContext } from 'svelte' import type { Channel, ChannelSection } from '@myapp/db' const CONTEXT_KEY = {} export const setChannelContext = ( channel: Channel, sections: ChannelSection[], ) => { const context = { channel, sections, } return setContext(CONTEXT_KEY, context) } type ChannelContext = ReturnType<typeof setChannelContext> export const getChannelContext = () => getContext<ChannelContext>(CONTEXT_KEY) Info 6406 [15:21:26.737] response: {"seq":0,"type":"response","command":"getApplicableRefactors","request_seq":64,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11)\n at Array.forEach (<anonymous>)\n at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19)\n at Map.forEach (<anonymous>)\n at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42)\n at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24)\n at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36)\n at ConfiguredProject2.getLanguageService (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182581:7)\n at IpcIOSession.getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:190987:28)\n at getApplicableRefactors (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189208:43)\n at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69\n at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14)\n at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29)\n at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51)\n at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14)\n at process.emit (node:events:514:28)\n at emit (node:internal/child_process:951:14)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"} Info 6407 [15:21:26.781] request: { "seq": 65, "type": "request", "command": "geterr", "arguments": { "delay": 0, "files": [ "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts" ] } } Perf 6408 [15:21:26.781] 65::geterr: async elapsed time (in milliseconds) 0.0963 Info 6409 [15:21:26.782] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Err 6410 [15:21:26.788] Exception on executing command delayed processing of request 65: Debug Failure. False expression. Error: Debug Failure. False expression. at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11) at Array.forEach (<anonymous>) at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19) at Map.forEach (<anonymous>) at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42) at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24) at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36) at checkOne (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189670:7) at MultistepOperation.executeAction (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:188339:9) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:188323:73 at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14) at Object.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189368:57) at Timeout._onTimeout (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:188323:30) at listOnTimeout (node:internal/timers:575:11) at process.processTimers (node:internal/timers:514:7) Info 6411 [15:21:26.788] event: {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":65}} Info 6412 [15:21:26.978] request: { "seq": 66, "type": "request", "command": "encodedSemanticClassifications-full", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "start": 0, "length": 458, "format": "2020" } } Info 6413 [15:21:26.978] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Err 6414 [15:21:26.985] Exception on executing command { "seq": 66, "type": "request", "command": "encodedSemanticClassifications-full", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts", "start": 0, "length": 458, "format": "2020" } }: Debug Failure. False expression. Error: Debug Failure. False expression. at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11) at Array.forEach (<anonymous>) at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19) at Map.forEach (<anonymous>) at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42) at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24) at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36) at ConfiguredProject2.getLanguageService (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182581:7) at IpcIOSession.getEncodedSemanticClassifications (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189730:20) at encodedSemanticClassifications-full (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189027:43) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69 at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14) at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29) at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51) at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14) at process.emit (node:events:514:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) File text of /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/lib/contexts/channelContext.ts: import { setContext, getContext } from 'svelte' import type { Channel, ChannelSection } from '@myapp/db' const CONTEXT_KEY = {} export const setChannelContext = ( channel: Channel, sections: ChannelSection[], ) => { const context = { channel, sections, } return setContext(CONTEXT_KEY, context) } type ChannelContext = ReturnType<typeof setChannelContext> export const getChannelContext = () => getContext<ChannelContext>(CONTEXT_KEY) Info 6415 [15:21:26.985] response: {"seq":0,"type":"response","command":"encodedSemanticClassifications-full","request_seq":66,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11)\n at Array.forEach (<anonymous>)\n at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19)\n at Map.forEach (<anonymous>)\n at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42)\n at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24)\n at updateProjectIfDirty (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184761:36)\n at ConfiguredProject2.getLanguageService (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182581:7)\n at IpcIOSession.getEncodedSemanticClassifications (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189730:20)\n at encodedSemanticClassifications-full (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:189027:43)\n at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69\n at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14)\n at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29)\n at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51)\n at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14)\n at process.emit (node:events:514:28)\n at emit (node:internal/child_process:951:14)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"} Info 6416 [15:21:27.078] request: { "seq": 67, "type": "request", "command": "updateOpen", "arguments": { "changedFiles": [], "closedFiles": [], "openFiles": [ { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts", "fileContent": "import type { LayoutServerLoad } from './$types'\nimport { error } from '@sveltejs/kit'\nimport { getChannelMetaProps } from '$lib/utils/metaProps'\nimport { QueryDocumentSnapshot, getFirestore } from 'firebase-admin/firestore'\nimport { firestore } from '@myapp/services/firebase-admin'\nimport type { Channel, ChannelSection, ViewerChannelVideo } from '@myapp/db'\nimport { getReturnURL } from '$lib/utils/serverOnly/surveyProviders'\n\nasync function getChannel(channelId: string) {\n const db = getFirestore()\n\n const channel = await db\n .doc(`items/${channelId}`)\n .get()\n .then((v) =>\n v.exists ? ({ ...v.data(), id: v.id, meta: {} } as Channel) : null,\n )\n\n if (!channel || channel.status !== 'active') {\n error(404, { message: 'Channel not found' })\n }\n\n return channel\n}\n\nasync function getChannelSections(channelId: string) {\n const db = getFirestore()\n\n const channelSections = await db\n .doc(`items/${channelId}`)\n .collection('sections')\n .get()\n .then(async (v) => {\n return v.docs\n })\n\n return channelSections\n}\n\nasync function getChannelVideos(channelId: string) {\n const channelVideos = await firestore\n .collection('items')\n .where('parentId', '==', channelId)\n .get()\n\n return channelVideos.docs.map((doc) => {\n return { ...doc.data(), videoId: doc.id, meta: {} } as ViewerChannelVideo\n })\n}\n\nfunction mergeSections(\n sections: QueryDocumentSnapshot[],\n videos: ViewerChannelVideo[],\n) {\n const mergedSectionData = sections.map((doc: QueryDocumentSnapshot) => {\n const docData = doc.data()\n\n return {\n ...docData,\n id: doc.id,\n meta: {},\n videos: videos.filter((video: ViewerChannelVideo) =>\n Object.keys(docData.items).includes(video.videoId),\n ),\n } as ChannelSection\n })\n\n return mergedSectionData\n}\n\nexport const load: LayoutServerLoad = async ({\n params,\n url,\n request,\n locals,\n}) => {\n const channelId = params.channelId\n\n const returnURL = await getReturnURL(url.searchParams)\n\n const [channel, sections, videos] = await Promise.all([\n getChannel(channelId),\n getChannelSections(channelId),\n getChannelVideos(channelId),\n ])\n\n const channelSections = mergeSections(sections, videos)\n\n return {\n channel,\n sections: channelSections,\n geo: {\n country: request.headers.get('x-appengine-country'),\n region: request.headers.get('x-appengine-region'),\n },\n metaProps: getChannelMetaProps(channel, url.href),\n returnURL,\n uid: locals.uid,\n anonymous: locals.anonymous,\n }\n}\n", "projectRootPath": "/Users/macbook/Documents/GitHub/myapp", "scriptKindName": "TS" } ] } } Info 6417 [15:21:27.078] FileWatcher:: Close:: WatchInfo: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts 500 undefined WatchType: Closed Script info Info 6418 [15:21:27.078] event: {"seq":0,"type":"event","event":"closeFileWatcher","body":{"id":1705}} Info 6419 [15:21:27.079] getConfigFileNameForFile:: File: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts ProjectRootPath: /Users/macbook/Documents/GitHub/myapp:: Result: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Info 6420 [15:21:27.079] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json Err 6421 [15:21:27.087] Exception on executing command { "seq": 67, "type": "request", "command": "updateOpen", "arguments": { "changedFiles": [], "closedFiles": [], "openFiles": [ { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts", "fileContent": "import type { LayoutServerLoad } from './$types'\nimport { error } from '@sveltejs/kit'\nimport { getChannelMetaProps } from '$lib/utils/metaProps'\nimport { QueryDocumentSnapshot, getFirestore } from 'firebase-admin/firestore'\nimport { firestore } from '@myapp/services/firebase-admin'\nimport type { Channel, ChannelSection, ViewerChannelVideo } from '@myapp/db'\nimport { getReturnURL } from '$lib/utils/serverOnly/surveyProviders'\n\nasync function getChannel(channelId: string) {\n const db = getFirestore()\n\n const channel = await db\n .doc(`items/${channelId}`)\n .get()\n .then((v) =>\n v.exists ? ({ ...v.data(), id: v.id, meta: {} } as Channel) : null,\n )\n\n if (!channel || channel.status !== 'active') {\n error(404, { message: 'Channel not found' })\n }\n\n return channel\n}\n\nasync function getChannelSections(channelId: string) {\n const db = getFirestore()\n\n const channelSections = await db\n .doc(`items/${channelId}`)\n .collection('sections')\n .get()\n .then(async (v) => {\n return v.docs\n })\n\n return channelSections\n}\n\nasync function getChannelVideos(channelId: string) {\n const channelVideos = await firestore\n .collection('items')\n .where('parentId', '==', channelId)\n .get()\n\n return channelVideos.docs.map((doc) => {\n return { ...doc.data(), videoId: doc.id, meta: {} } as ViewerChannelVideo\n })\n}\n\nfunction mergeSections(\n sections: QueryDocumentSnapshot[],\n videos: ViewerChannelVideo[],\n) {\n const mergedSectionData = sections.map((doc: QueryDocumentSnapshot) => {\n const docData = doc.data()\n\n return {\n ...docData,\n id: doc.id,\n meta: {},\n videos: videos.filter((video: ViewerChannelVideo) =>\n Object.keys(docData.items).includes(video.videoId),\n ),\n } as ChannelSection\n })\n\n return mergedSectionData\n}\n\nexport const load: LayoutServerLoad = async ({\n params,\n url,\n request,\n locals,\n}) => {\n const channelId = params.channelId\n\n const returnURL = await getReturnURL(url.searchParams)\n\n const [channel, sections, videos] = await Promise.all([\n getChannel(channelId),\n getChannelSections(channelId),\n getChannelVideos(channelId),\n ])\n\n const channelSections = mergeSections(sections, videos)\n\n return {\n channel,\n sections: channelSections,\n geo: {\n country: request.headers.get('x-appengine-country'),\n region: request.headers.get('x-appengine-region'),\n },\n metaProps: getChannelMetaProps(channel, url.href),\n returnURL,\n uid: locals.uid,\n anonymous: locals.anonymous,\n }\n}\n", "projectRootPath": "/Users/macbook/Documents/GitHub/myapp", "scriptKindName": "TS" } ] } }: Debug Failure. False expression. Error: Debug Failure. False expression. at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11) at Array.forEach (<anonymous>) at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19) at Map.forEach (<anonymous>) at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42) at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32) at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24) at updateWithTriggerFile (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184770:11) at updateConfiguredProject (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184778:9) at _ProjectService.findCreateOrReloadConfiguredProject (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187247:44) at _ProjectService.tryFindDefaultConfiguredProjectForOpenScriptInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187271:25) at _ProjectService.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187317:25) at _ProjectService.assignProjectToOpenedScriptInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187202:27) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187575:25 at Array.forEach (<anonymous>) at _ProjectService.applyChangesInOpenFiles (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187573:56) at updateOpen (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:188764:29) at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69 at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14) at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29) at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51) at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14) at process.emit (node:events:514:28) at emit (node:internal/child_process:951:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) Info 6422 [15:21:27.087] response: {"seq":0,"type":"response","command":"updateOpen","request_seq":67,"success":false,"message":"Error processing request. Debug Failure. False expression.\nError: Debug Failure. False expression.\n at watchFailedLookupLocationOfResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129626:11)\n at Array.forEach (<anonymous>)\n at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129729:19)\n at Map.forEach (<anonymous>)\n at Object.startCachingPerDirectoryResolution (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:129302:42)\n at ConfiguredProject2.updateGraphWorker (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:183126:26)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:182985:32)\n at ConfiguredProject2.updateGraph (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184287:24)\n at updateWithTriggerFile (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184770:11)\n at updateConfiguredProject (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:184778:9)\n at _ProjectService.findCreateOrReloadConfiguredProject (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187247:44)\n at _ProjectService.tryFindDefaultConfiguredProjectForOpenScriptInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187271:25)\n at _ProjectService.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187317:25)\n at _ProjectService.assignProjectToOpenedScriptInfo (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187202:27)\n at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187575:25\n at Array.forEach (<anonymous>)\n at _ProjectService.applyChangesInOpenFiles (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:187573:56)\n at updateOpen (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:188764:29)\n at /Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:69\n at IpcIOSession.executeWithRequestId (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191389:14)\n at IpcIOSession.executeCommand (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191397:29)\n at IpcIOSession.onMessage (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/typescript.js:191439:51)\n at process.<anonymous> (/Users/macbook/Documents/GitHub/myapp/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/tsserver.js:523:14)\n at process.emit (node:events:514:28)\n at emit (node:internal/child_process:951:14)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21)"} Info 6423 [15:21:27.087] request: { "seq": 68, "type": "request", "command": "projectInfo", "arguments": { "file": "/Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/src/routes/[channelId=channelId]/+layout.server.ts", "needFileNameList": false } } Info 6424 [15:21:27.088] Starting updateGraphWorker: Project: /Users/macbook/Documents/GitHub/myapp/src/apps/viewer-app/tsconfig.json
No response
channelContext.ts
import { setContext, getContext } from 'svelte' import type { Channel, ChannelSection } from '@myapp/db' const CONTEXT_KEY = {} export const setChannelContext = ( channel: Channel, sections: ChannelSection[], ) => { const context = { channel, sections, } return setContext(CONTEXT_KEY, context) } type ChannelContext = ReturnType<typeof setChannelContext> export const getChannelContext = () => getContext<ChannelContext>(CONTEXT_KEY)
Typescript server crashes after a few seconds but until those few seconds it works fine.
The server should not crash.
This is not verbose log. Please provide the verbose log with repro steps thanks
š Search Terms
Using svelte with typescript and opening typescript files in vscode crashes the typescript server in just a few seconds.
Here's a complete log:
š Version & Regression Information
āÆ Playground Link
No response
š» Code
channelContext.ts
š Actual behavior
Typescript server crashes after a few seconds but until those few seconds it works fine.
š Expected behavior
The server should not crash.
Additional information about the issue
No response