Open eminbahadir opened 3 years ago
(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
Seems like the same stack as https://github.com/microsoft/TypeScript/issues/37759
@eminbahadir please provide tsserver log for this issue as this is highly dependent on what happens before the change as well. You can upload logs by following these steps:
"typescript.tsserver.log": "verbose"
TypeScript: Open TS Server log
commandtsserver.log
. Please share this file. Additionally you can also share file ti.log
created next to it.Hi, i'm facing the same problem using typescript 4.7.4, 4.8.2, 4.8.4
Here is my output on 4.7.4, if you want I can reproduce on 4.8.4 and send the trace 🤔
Err 3333 [19:05:59.167] Exception on executing command {"seq":44,"type":"request","command":"completionInfo","arguments":{"file":"/Volumes/Dev/project/src/pages/AllowedServersList.tsx","line":4,"offset":43,"includeExternalModuleExports":true,"includeInsertTextCompletions":true,"includeAutomaticOptionalChainCompletions":true}}:
Debug Failure. False expression: Expected the specifier to be a default export
Error: Debug Failure. False expression: Expected the specifier to be a default export
at /Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129327:26
at Object.firstDefined (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:213:26)
at getNameForExportDefault (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129321:42)
at getDefaultExportInfoWorker (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129301:20)
at getDefaultExportInfoWorker (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129311:24)
at getDefaultLikeExportInfo (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129282:20)
at /Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129255:35
at /Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129207:116
at forEachExternalModule (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129226:17)
at forEachExternalModuleToImportFrom (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129207:9)
at Object.getExportInfoMap (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:129250:13)
at collectAutoImports (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:133423:37)
at getGlobalCompletions (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:133330:17)
at tryGetGlobalSymbols (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:133228:25)
at getCompletionData (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:132972:22)
at Object.getCompletionsAtPosition (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:131552:34)
at Object.getCompletionsAtPosition (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:164663:35)
at Session.getCompletions (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:176463:64)
at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:175138:61)
at /Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:177195:88
at Session.executeWithRequestId (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:177186:28)
at Session.executeCommand (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:177195:33)
at Session.onMessage (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:177221:35)
at Interface.<anonymous> (/Volumes/Dev/project/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/tsserver.js:179826:31)
at Interface.emit (node:events:527:28)
at [_onLine] [as _onLine] (node:internal/readline/interface:424:12)
at [_normalWrite] [as _normalWrite] (node:internal/readline/interface:613:59)
at Socket.ondata (node:internal/readline/interface:251:23)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Thanks for your time 🙏
Issue Type: Bug
❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️
TypeScript Version: 4.3.0-dev.20210319
Steps to reproduce crash 1. 2. 3.
TS Server Log ❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:
After enabling this setting, future crash reports will include the server log.
TS Server Error Stack Server:
syntax
VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T11:57:12.728Z) OS version: Darwin x64 20.3.0
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)| |GPU Status|2d_canvas: enabledgpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|5, 7, 6| |Memory (System)|64.00GB (0.04GB free)| |Process Argv|--crash-reporter-id 58d21724-f0f1-473c-96ad-86a38e18d24d| |Screen Reader|no| |VM|0%|
Extensions (264)
Extension|Author (truncated)|Version ---|---|--- vscode-openapi|42C|4.2.0 npm-audit|Abh|0.0.3 html-snippets|abu|0.2.1 commit-message-editor|ada|0.16.3 vscode-sql-formatter|adp|1.4.4 vscode-css-formatter|aes|1.0.1 vscode-nginx-conf|ahm|0.1.3 increment-selection|alb|0.2.0 Bookmarks|ale|13.0.4 project-manager|ale|12.0.1 javascript-snippets|alg|0.1.5 handlebars-preview-with-function-support|ano|2.2.0 html-end-tag-labels|ant|0.6.0 previewseqdiag-vscode|ari|0.2.4 asciidoctor-vscode|asc|2.8.7 vsc-export|asl|1.2.0 css-compressor|bes|0.0.2 markdown-mermaid|bie|1.9.2 devhints|brp|0.5.0 java-run|cao|1.1.4 turbo-console-log|Cha|2.1.6 handlebars-preview|cha|1.1.0 npm-intellisense|chr|1.3.1 path-intellisense|chr|2.3.0 vscode-devtools-for-chrome|cod|0.0.7 gitignore|cod|0.6.0 bracket-pair-colorizer-2|Coe|0.2.0 native-ascii-converter|cwa|1.0.9 yaml-preview|dai|0.0.1 vscode-vertx-starter|dan|0.1.0 vue-airbnb-vscode-snippets|dan|1.2.3 vue-peek|dar|1.0.2 markdown-table-prettify|dar|3.2.0 dart-code|Dar|3.20.1 flutter|Dar|3.20.0 rapid-json-search|dat|0.1.6 git-diff-and-merge-tool|dav|1.0.4 vscode-markdownlint|Dav|0.39.0 mustache|daw|1.1.1 vscode-eslint|dba|2.1.19 FreeMarker|dco|0.0.9 generator-java-unit-test-file|den|0.0.12 vscode-terminal-capture|dev|0.0.1 java-decompiler|dgi|0.0.2 javascript-vue|Dig|0.3.2 vuerd-vscode|din|0.7.8 docs-images|doc|0.0.9 docs-markdown|doc|0.2.85 docs-preview|doc|0.3.57 docs-yaml|doc|0.2.6 githistory|don|0.6.16 xml|Dot|2.5.1 java-debug|DSn|0.0.2 css-flexbox-cheatsheet|dzh|3.2.2 git-cheatsheet|dzh|1.4.2 rxjs-cheatsheet|dzh|1.0.2 gitlens|eam|11.3.0 vscode-html-css|ecm|1.10.2 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.17 LogFileHighlighter|emi|2.11.0 vscode-great-icons|emm|2.1.72 prettier-vscode|esb|6.3.1 unixtime-converter|esp|0.0.2 vue-inline-template|fai|1.0.1 baba-flow|Fat|1.0.2 bloc|Fel|5.6.0 freemarker-magnolia-snippets|fen|1.4.0 vscode-firefox-debug|fir|2.9.2 android-system-tools|fli|0.0.2 auto-rename-tag|for|0.1.6 shell-format|fox|7.0.1 openssl-configuration-file|gee|0.0.1 quarkus-snippets|ggr|1.2.0 github-extend-util|git|0.0.4 vscode-pull-request-github|Git|0.24.0 cloudcode|goo|1.10.0-insiders.3 vscode-flutter-files|gor|3.1.2 handlebars-preview|Gre|1.2.1 json2ts|Gre|0.0.6 global-config|Gru|0.0.15 todo-tree|Gru|0.0.207 editorenhancements|gur|1.0.1 vscode-nginx-conf-hint|han|0.1.0 json-to-dart|hir|2.6.3 vue-snippets|hol|1.0.4 beautify|Hoo|1.5.0 vscode-npm-dependency|how|1.2.2 rest-client|hum|0.24.4 output-colorizer|IBM|0.1.2 applescript|idl|0.20.0 path-autocomplete|ion|1.17.1 kubernetes-snippets|ipe|0.1.9 vuejs-peek|ish|0.0.3 java-properties|ith|0.0.2 highlight-string-code|iuy|0.4.4 jenkinsfile-support|ivo|1.1.0 javascript-snippets|jab|4.0.1 git-last-commit-message|Jan|1.9.0 fontawesome-autocomplete|Jan|1.1.2 vue|jcb|0.1.5 polacode-2019|jef|0.5.2 pubspec-assist|jer|2.2.1 diff-tool|jin|0.0.1 vsc-space-block-jumper|jmf|1.2.2 vue-cheatsheet|joj|1.0.3 vscode-insertdatestring|jsy|2.3.0 google-search|kam|0.0.1 json2csv|kha|0.0.1 vscode-liquid-snippets|kil|2.0.1 copy-unix-path|kir|0.2.1 vscode-gutter-preview|kis|0.27.1 wrapSelection|kon|0.10.0 l13-diff|L13|0.31.2 vscode-simple-icons|Lau|1.13.5 git-tree-compare|let|1.10.0 google-fonts|lio|0.0.1 paste-image-to-markdown|Liu|1.0.0 flutter-intl|loc|1.14.0 i18n-ally|lok|2.5.4 vscode-regexp-preivew|Lul|1.0.0 vue-discovery|maa|1.4.0 flutter-tree|mar|1.0.0 string-manipulation|mar|0.5.2 code-groovy|mar|0.1.2 javascript-docstrings|Mas|1.1.1 vscode-vuex-peek|Mcb|0.7.2 eclipse-new-java-project|mel|1.0.1 git-graph|mhu|1.29.0 mp-rest-client-generator-vscode-ext|Mic|0.1.2 mp-starter-vscode-ext|Mic|0.2.5 vscode-microprofile-pack|Mic|0.1.2 vscode-wrap-console-log|mid|1.7.2 dotenv|mik|1.0.1 escape-quotes|mil|1.10.0 file-downloader|min|1.0.10 mindaro|min|1.0.120210310 vuex-suggest|mis|1.1.1 select-part-of-word|mle|1.0.1 jvm-bytecode-viewer|mnx|0.3.1 vscode-android-webview-debug|mpo|1.1.1 vscode-docker|ms-|1.11.0 extension-manifest-editor|ms-|0.1.5 vscode-aks-tools|ms-|0.0.8 vscode-kubernetes-tools|ms-|1.3.0 jupyter|ms-|2021.3.619093157 remote-containers|ms-|0.163.2 remote-ssh|ms-|0.65.1 remote-ssh-edit|ms-|0.65.1 azure-account|ms-|0.9.7 hexeditor|ms-|1.4.0 js-debug-nightly|ms-|2021.3.1617 vscode-js-profile-flame|ms-|0.0.14 vscode-typescript-next|ms-|4.3.20210319 vscode-typescript-tslint-plugin|ms-|1.3.3 vscode-mscgen|msc|1.2.0 debugger-for-chrome|msj|4.12.12 debugger-for-edge|msj|1.0.15 jsflowchart|MUL|0.1.6 java-prettier-formatter|mwp|0.1.4 gradle-language|nac|0.2.3 awesome-flutter-snippets|Nas|2.0.4 color-highlight|nau|2.3.0 language-liquid|nei|0.1.1 vscode-javascript-snippet|Nic|0.0.16 vscode-json-editor|nic|0.3.0 vscode-groovy-lint|Nic|1.4.0 prettier-standard-vscode|num|0.8.1 vetur|oct|0.33.1 vscode-json-transform|oct|0.1.2 indent-rainbow|ode|7.5.0 vscode-jest|Ort|3.2.0 vuehelper|oys|0.1.0 prettier-vscode-with-tabs|pas|1.1.0 dartgettersetter|Pet|1.0.1 vscode-versionlens|pfl|1.0.9 openapi-designer|phi|0.3.0 csv-to-table|php|1.2.3 vue-navigator|Pid|0.1.3 vscode-gitignore-generator|pio|1.0.3 material-icon-theme|PKi|4.6.0 vscode-template-literal-editor|pli|0.9.0 vscode-css-peek|pra|4.1.2 live-preview|pro|0.0.3 vscode-git-flow|Psy|0.5.1 vscode-css-navigation|puc|1.10.5 drawio-preview|pur|0.0.3 quicktype|qui|12.0.46 subtle-brackets|raf|3.0.0 vscode-chartjs|Ran|1.2.0 nginx-formatter|ray|0.0.13 fabric8-analytics|red|0.3.2 java|red|0.76.0 vscode-apache-camel|red|0.0.31 vscode-commons|red|0.0.4 vscode-microprofile|red|0.1.1 vscode-quarkus|red|1.7.0 vscode-xml|red|0.15.0 vscode-yaml|red|0.16.0 vscode-gradle|ric|3.6.1 vscode-sort-json|ric|1.20.0 LiveServer|rit|5.6.1 code-stats-vscode|riu|1.0.18 vscode-text-tables|Rom|0.1.5 terraform-doc-snippets|run|0.6.0 partial-diff|ryu|1.4.1 santacodes-region-viewer|San|1.0.0 vscode-javascript-booster|sbu|14.0.1 prettier-vscode-space-parenthesis|sch|0.17.101 vue-vscode-snippets|sdr|2.2.0 vsc-jvm-build-menu|sed|1.2.1 git-merger|sha|0.4.1 markdown-preview-enhanced|shd|0.5.17 vscode-checkstyle|she|1.4.0 vue-helper|she|2.4.7 vscode-scss-formatter|sib|2.1.0 html5-boilerplate|sid|1.1.1 svg-preview|Sim|2.8.3 vsc-quokka-statusbar|ske|1.3.6 java-generate-setters-getters|soh|7.0.2 sonarlint-vscode|Son|1.20.1 vscode-taskexplorer|spm|2.0.7 rewrap|stk|1.14.0 code-spell-checker|str|1.10.2 tabnine-vscode|Tab|3.2.13 vue-ts-snippets|tan|0.1.1 vscode-nginx-format|tec|0.0.6 vue-docs|tit|1.0.2 es6-string-html|Tob|2.2.0 pdf|tom|1.1.0 treedboxjavascript|tre|1.0.6 modern-javascript-snippets|tun|1.1.0 java-imports-snippets|tus|0.0.1 terminal-tabs|Tyr|0.2.0 errorlens|use|3.2.5 reopenclosedtab|uyi|1.1.0 web-extension|Vai|0.1.0 vscodeintellicode|Vis|1.2.12 vscode-java-debug|vsc|0.32.0 vscode-java-dependency|vsc|0.18.1 vscode-java-pack|vsc|0.13.0 vscode-java-test|vsc|0.28.1 vscode-maven|vsc|0.28.0 vscode-icons|vsc|11.2.0 vscode-todo-highlight|way|1.0.4 sort-all-css-rules-in-css-files|Web|0.0.1 vscode-backup|Wes|0.0.6 vscode-js-console-utils|wht|0.7.0 vscode-nginx|wil|0.7.2 vscode-import-cost|wix|2.15.0 vsc-jsonsnippets|wmo|0.9.3 qf|Wsc|6.8.122 vue|Wsc|1.0.26 JavaScriptSnippets|xab|1.8.0 cheater|yae|0.0.1 vscode-surround|yat|1.0.2 licenser|ymo|1.5.0 markdown-all-in-one|yzh|3.4.0 commentbars|zfz|0.0.10 ascii-table|zha|1.0.0 json-helper|zho|1.3.2 vscode-open-in-github|ziy|1.3.6 vue|znc|0.6.3 openapi-preview|zoe|1.7.1 (1 theme extensions excluded)A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 pythonvspyt700cf:30270857 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstry914:30276682 pythonvsdeb440:30248342 pythonvsded773:30248341 pythonvspyt875:30259475 pythontb:30265425 vscoresta800:30276761 vspre833cf:30267465 vsdfh931:30275552 vshan820:30276952 ```