Closed CGQAQ closed 3 years ago
did you find a solution?
@mifi No, unfortunately. I didn't manage to find a solution
Yeah I get this problem too. It might be because I added too many folders to jsconfig.json/tsconfig.json (I have 10 folders; its a monorepo). When I choose 2/3 folders at a time, that problem goes away. Not a memory issue I think :/
repo url
plugin file
tsserver.log
``` Info 0 [11:10:48.46] Starting TS Server Info 1 [11:10:48.47] Version: 4.0.2 Info 2 [11:10:48.47] Arguments: C:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName C:\Users\mjaso\AppData\Local\Temp\vscode-typescript\b87e8066d8c7ee7967b6\tscancellation-19660b8beb7e2284e49f.tmp* --logVerbosity verbose --logFile c:\Users\mjaso\AppData\Roaming\Code - Insiders\logs\20200921T001439\exthost47\vscode.typescript-language-features\tsserver-log-kVlcXZ\tsserver.log --globalPlugins typescript-vscode-sh-plugin,typescript-deno-plugin --pluginProbeLocations c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features,c:\Users\mjaso\Desktop\contribution\vscode_deno --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation Info 3 [11:10:48.48] Platform: win32 NodeVersion: 12 CaseSensitive: false Info 4 [11:10:48.48] ServerMode: undefined syntaxOnly: false hasUnknownServerMode: undefined Info 5 [11:10:48.51] Binding... Info 6 [11:10:48.63] event: {"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":6284}} Info 7 [11:10:48.66] request: {"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true,"includePackageJsonAutoImports":"auto"},"watchOptions":{}}} Info 8 [11:10:48.67] Host information vscode Info 9 [11:10:48.67] Host watch options changed to undefined, it will be take effect for next watches. Info 10 [11:10:48.68] response: {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true} Perf 11 [11:10:48.68] 0::configure: async elapsed time (in milliseconds) 1.5501 Info 12 [11:10:48.68] request: {"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","sourceMap":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"resolveJsonModule":true}}} Info 13 [11:10:48.70] Scheduled: *ensureProjectForOpenFiles* Perf 14 [11:10:48.70] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 1.6023 Info 15 [11:10:48.70] response: {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true} Info 16 [11:10:48.70] request: {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"c:/Users/mjaso/Desktop/dtest/main.ts","fileContent":"import {five} from \"./mod.ts\"\r\nconsole.log(\"hello world\", five)\r\n","projectRootPath":"c:\\Users\\mjaso\\Desktop\\dtest","scriptKindName":"TS"}]}} Info 17 [11:10:48.72] Search path: c:/Users/mjaso/Desktop/dtest Info 18 [11:10:48.73] ConfigFilePresence:: Current Watches: :: File: c:/Users/mjaso/Desktop/dtest/tsconfig.json Currently impacted open files: RootsOfInferredProjects: OtherOpenFiles: c:/Users/mjaso/Desktop/dtest/main.ts Status: File added to open files impacted by this config file Info 19 [11:10:48.73] ConfigFilePresence:: Current Watches: :: File: c:/Users/mjaso/Desktop/dtest/jsconfig.json Currently impacted open files: RootsOfInferredProjects: OtherOpenFiles: c:/Users/mjaso/Desktop/dtest/main.ts Status: File added to open files impacted by this config file Info 20 [11:10:48.73] For info: c:/Users/mjaso/Desktop/dtest/main.ts :: No config files found. Info 21 [11:10:48.77] Loading global plugin typescript-vscode-sh-plugin Info 22 [11:10:48.77] Enabling plugin typescript-vscode-sh-plugin from candidate paths: c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features,c:\Users\mjaso\Desktop\contribution\vscode_deno,c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/tsserver.js/../../.. Info 23 [11:10:48.77] Loading typescript-vscode-sh-plugin from c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features (resolved to c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/typescript-language-features/node_modules) Info 24 [11:10:48.97] typescript-vscode-sh-plugin initialized. Intercepting getEncodedSemanticClassifications and getEncodedSyntacticClassifications. Info 25 [11:10:48.97] Plugin validation succeded Info 26 [11:10:48.97] Loading global plugin typescript-deno-plugin Info 27 [11:10:48.97] Enabling plugin typescript-deno-plugin from candidate paths: c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features,c:\Users\mjaso\Desktop\contribution\vscode_deno,c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/tsserver.js/../../.. Info 28 [11:10:48.97] Loading typescript-deno-plugin from c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features (resolved to c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/typescript-language-features/node_modules) Info 29 [11:10:48.138] Loading typescript-deno-plugin from c:\Users\mjaso\Desktop\contribution\vscode_deno (resolved to c:/Users/mjaso/Desktop/contribution/vscode_deno/node_modules) Info 30 [11:10:48.161] [typescript-deno-plugin] "TDP creating started" Info 31 [11:10:48.175] [typescript-deno-plugin] "TDP created." Info 32 [11:10:48.175] Plugin validation succeded Info 33 [11:10:48.175] ConfigFilePresence:: Current Watches: :: File: c:/Users/mjaso/Desktop/dtest/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/mjaso/Desktop/dtest/main.ts OtherOpenFiles: Status: Open file was set as Inferred root Info 34 [11:10:48.176] FileWatcher:: Added:: WatchInfo: c:/Users/mjaso/Desktop/dtest/tsconfig.json 2000 undefined Project: WatchType: Config file for the inferred project root Info 35 [11:10:48.176] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/mjaso/Desktop/dtest/tsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/mjaso/Desktop/dtest/main.ts OtherOpenFiles: Status: Updated the callback Info 36 [11:10:48.176] ConfigFilePresence:: Current Watches: :: File: c:/Users/mjaso/Desktop/dtest/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/mjaso/Desktop/dtest/main.ts OtherOpenFiles: Status: Open file was set as Inferred root Info 37 [11:10:48.177] FileWatcher:: Added:: WatchInfo: c:/Users/mjaso/Desktop/dtest/jsconfig.json 2000 undefined Project: WatchType: Config file for the inferred project root Info 38 [11:10:48.177] ConfigFilePresence:: Current Watches: Config file for the inferred project root:: File: c:/Users/mjaso/Desktop/dtest/jsconfig.json Currently impacted open files: RootsOfInferredProjects: c:/Users/mjaso/Desktop/dtest/main.ts OtherOpenFiles: Status: Updated the callback Info 39 [11:10:48.179] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info 40 [11:10:48.179] [typescript-deno-plugin] "getprogram: [\"c:/Users/mjaso/Desktop/dtest/main.ts\"]" Info 41 [11:10:48.967] DirectoryWatcher:: Added:: WatchInfo: c:/Users/mjaso/Desktop/dtest/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info 42 [11:10:48.967] c for path c:/Users/mjaso/Desktop/dtest/node_modules/@types not found in cache... Info 43 [11:10:48.967] Starting C:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe with args: ["c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/watchGuard.js","c:/Users/mjaso/Desktop/dtest/node_modules/@types"] Info 44 [11:10:49.76] WatchGuard for path c:/Users/mjaso/Desktop/dtest/node_modules/@types returned: OK Info 45 [11:10:49.78] Elapsed:: 111ms DirectoryWatcher:: Added:: WatchInfo: c:/Users/mjaso/Desktop/dtest/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info 46 [11:10:49.78] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true Elapsed: 899ms Info 47 [11:10:49.78] Project '/dev/null/inferredProject1*' (Inferred) Info 48 [11:10:49.78] Files (19) c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es5.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2016.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.dom.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.dom.iterable.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.webworker.importscripts.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.scripthost.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.core.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.collection.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.generator.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.iterable.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.promise.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.proxy.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.reflect.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.symbol.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2016.array.include.d.ts c:/Users/mjaso/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/node_modules/typescript/lib/lib.es2016.full.d.ts c:/Users/mjaso/Desktop/dtest/main.ts Info 49 [11:10:49.78] ----------------------------------------------- Info 50 [11:10:49.340] Project '/dev/null/inferredProject1*' (Inferred) Info 50 [11:10:49.340] Files (19) Info 50 [11:10:49.340] ----------------------------------------------- Info 50 [11:10:49.340] Open files: Info 50 [11:10:49.340] FileName: c:/Users/mjaso/Desktop/dtest/main.ts ProjectRootPath: c:/Users/mjaso/Desktop/dtest Info 50 [11:10:49.340] Projects: /dev/null/inferredProject1* Perf 50 [11:10:49.340] 2::updateOpen: elapsed time (in milliseconds) 1270.5822 Info 51 [11:10:49.340] response: {"seq":0,"type":"response","command":"updateOpen","request_seq":2,"success":true,"performanceData":{"updateGraphDurationMs":899},"body":true} Info 52 [11:10:49.348] request: {"seq":3,"type":"request","command":"projectInfo","arguments":{"file":"c:/Users/mjaso/Desktop/dtest/main.ts","needFileNameList":false}} Perf 53 [11:10:49.349] 3::projectInfo: elapsed time (in milliseconds) 0.4108 Info 54 [11:10:49.349] response: {"seq":0,"type":"response","command":"projectInfo","request_seq":3,"success":true,"body":{"configFileName":"/dev/null/inferredProject1*","languageServiceDisabled":false}} Info 55 [11:10:49.350] request: {"seq":4,"type":"request","command":"configurePlugin","arguments":{"pluginName":"typescript-deno-plugin","configuration":{"enable":true,"unstable":true,"import_map":null,"lint":true}}} Info 56 [11:10:49.351] response: {"seq":0,"type":"response","command":"configurePlugin","request_seq":4,"success":true} Perf 57 [11:10:49.351] 4::configurePlugin: async elapsed time (in milliseconds) 0.5590 Info 58 [11:10:49.351] request: {"seq":5,"type":"request","command":"encodedSemanticClassifications-full","arguments":{"file":"c:/Users/mjaso/Desktop/dtest/main.ts","start":0,"length":65}} Perf 59 [11:10:49.352] 5::encodedSemanticClassifications-full: elapsed time (in milliseconds) 0.4539 Info 60 [11:10:49.352] response: {"seq":0,"type":"response","command":"encodedSemanticClassifications-full","request_seq":5,"success":true,"body":{"spans":[],"endOfLineState":0}} Info 61 [11:10:49.353] request: {"seq":6,"type":"request","command":"geterr","arguments":{"delay":0,"files":["c:/Users/mjaso/Desktop/dtest/main.ts"]}} Perf 62 [11:10:49.354] 6::geterr: async elapsed time (in milliseconds) 0.7078 Info 63 [11:10:49.354] request: {"seq":7,"type":"request","command":"configurePlugin","arguments":{"pluginName":"typescript-deno-plugin","configuration":{"enable":true,"unstable":true,"import_map":null,"lint":true}}} Info 64 [11:10:49.355] response: {"seq":0,"type":"response","command":"configurePlugin","request_seq":7,"success":true} Perf 65 [11:10:49.355] 7::configurePlugin: async elapsed time (in milliseconds) 0.1984 Err 66 [11:10:49.363] Exception on executing command delayed processing of request 6: Could not find source file: 'c:/Users/mjaso/Desktop/dtest/main.ts'. Error: Could not find source file: 'c:/Users/mjaso/Desktop/dtest/main.ts'. at getValidSourceFile (c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143248:29) at Proxy.getSyntacticDiagnostics (c:\Users\mjaso\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\tsserver.js:143449:52) at Object.proxy.