You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch VS Code and open a javascript project and wait for the "Initializing JS/TS language features"
Open a js file and type a function/object exported from another module
Intellisense will show the symbol but when hovering, the "Auto import from '...'" does not
Clicking or hitting enter does NOT import the symbol.
Does this issue occur when all extensions are disabled?: Yes
I've found many issues reporting like #61660, but installing typescript@next globally does not fix the issue.
Tracking VSCode older versions, I tracked the issue started in version 1.28, works fine in 1.27 which uses typescript 3.0.3 internally, but installing [email protected] globally does not fix the issue either.
The only workaround I found was to go inside "Visual Studio Code.app" and installing typescript 3.0.3 locally in "Contents/Resources/app/extensions".
Here are the tsserver logs for TypeScript output:
[Trace - 12:13:44 PM] Sending request: completionEntryDetails (54). Response expected: yes. Current queue length: 0
Arguments: {
"file": "/Users/rodri/dev/ceipfo/client/components/personas/detalle/trabajo-final/TrabajoFinal.jsx",
"line": 5,
"offset": 69,
"entryNames": [
{
"name": "formatBool",
"source": "/Users/rodri/dev/ceipfo/client/utils/bool"
}
]
}
[Trace - 12:13:44 PM] Response received: completionEntryDetails (54). Request took 27 ms. Success: false . Message: Error processing request. Debug Failure.
Error: Debug Failure.
at Object.assertDefined (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2080:24)
at getDefaultExportInfoWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:115542:80)
at getDefaultLikeExportInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:115523:24)
at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:115320:35
at forEachExternalModule (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:115663:21)
at getAllReExportingModules (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:115315:13)
at Object.getImportCompletionAction (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:115301:31)
at getCompletionEntryCodeActionsAndSourceDisplay (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:99848:33)
at Object.getCompletionEntryDetails (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:99812:30)
at Object.getCompletionEntryDetails (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:122110:35)
at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131177:57
at Object.mapDefined (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:670:30)
at IOSession.Session.getCompletionEntryDetails (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131175:33)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:130106:61)
at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131665:88
at IOSession.Session.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131656:28)
at IOSession.Session.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131665:33)
at IOSession.Session.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131687:35)
at Interface.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:132978:27)
at Interface.emit (events.js:182:13)
at Interface._onLine (readline.js:290:10)
at Interface._normalWrite (readline.js:433:12)
at Socket.ondata (readline.js:149:10)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:279:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onread (net.js:636:20)
The text was updated successfully, but these errors were encountered:
Hi @mjbvz, I installed typescript@next within the VSCode application and doesn't fix the issue. Also setting the allowSyntheticDefaultImports=false in the jsconfig.json doesn't work either.
Sorry I can't share the project, but as @donovanhiland commented in #31975, it might be for the project having many files (~1,400).
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
I've found many issues reporting like #61660, but installing
typescript@next
globally does not fix the issue.Tracking VSCode older versions, I tracked the issue started in version
1.28
, works fine in1.27
which uses typescript3.0.3
internally, but installing[email protected]
globally does not fix the issue either.The only workaround I found was to go inside "Visual Studio Code.app" and installing typescript
3.0.3
locally in "Contents/Resources/app/extensions".Here are the
tsserver
logs for TypeScript output:The text was updated successfully, but these errors were encountered: