Description
Template info added by @mjbvz
TypeScript Version: 3.7.0-dev.20191013
Search Terms
- go to definition
- react
Issue Type: Bug
Open VSCode, open a React file (JS or JSX), and on hovering a class or any other element on the code, a definition popup shows up correctly.
After a while (it can be minutes, or just by editing a file), it stops working and all it shows up on hovering is a small "Loading..." tooltip.
And I was able to grab this from the app's console:
/C:/Users/MuTLY/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3579 [Extension Host] debugger listening on port 58674
log.ts:173 ERR <semantic> TypeScript Server Error (3.6.2)
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at Object.find (tsserver.js:385:35)
at getReferencedSymbolsForModuleIfDeclaredBySourceFile (tsserver.js:105629:78)
at Object.getReferencedSymbolsForNode (tsserver.js:105607:40)
at Object.getReferenceEntriesForNode (tsserver.js:105341:58)
at getSemanticDocumentHighlights (tsserver.js:104031:57)
at Object.getDocumentHighlights (tsserver.js:104019:20)
at Object.getDocumentHighlights (tsserver.js:125577:42)
at IOSession.Session.getDocumentHighlights (tsserver.js:134328:71)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:133752:61)
at tsserver.js:135178:88
at IOSession.Session.executeWithRequestId (tsserver.js:135169:28)
at IOSession.Session.executeCommand (tsserver.js:135178:33)
at IOSession.Session.onMessage (tsserver.js:135201:35)
at Interface.<anonymous> (tsserver.js:136516: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:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17): Error: <semantic> TypeScript Server Error (3.6.2)
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at Object.find (tsserver.js:385:35)
at getReferencedSymbolsForModuleIfDeclaredBySourceFile (tsserver.js:105629:78)
at Object.getReferencedSymbolsForNode (tsserver.js:105607:40)
at Object.getReferenceEntriesForNode (tsserver.js:105341:58)
at getSemanticDocumentHighlights (tsserver.js:104031:57)
at Object.getDocumentHighlights (tsserver.js:104019:20)
at Object.getDocumentHighlights (tsserver.js:125577:42)
at IOSession.Session.getDocumentHighlights (tsserver.js:134328:71)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:133752:61)
at tsserver.js:135178:88
at IOSession.Session.executeWithRequestId (tsserver.js:135169:28)
at IOSession.Session.executeCommand (tsserver.js:135178:33)
at IOSession.Session.onMessage (tsserver.js:135201:35)
at Interface.<anonymous> (tsserver.js:136516: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:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
at Function.create (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:63463)
at h.dispatchResponse (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:56618)
at h.dispatchMessage (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:55516)
at constructor._reader.onData.e (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:54992)
at u.fire (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:50:207)
at t.Reader.onLengthData (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:61683)
at Socket.t.Reader.constructor.e.on.e (c:\Users\MuTLY\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:53:61331)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at Socket.Readable.push (_stream_readable.js:219:10)
at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
I have to mention I already uninstalled and reinstalled VSCode a few times, even going thru the lengths of manually deleting folders and Registry keys as explained in several other issues here.
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:35:15.005Z)
OS version: Windows_NT x64 10.0.18362
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (4 x 2496) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software oop_rasterization: disabled_off protected_video_decode: enabled rasterization: enabled skia_deferred_display_list: disabled_off skia_renderer: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 7.87GB (1.27GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Extensions (3)
Extension | Author (truncated) | Version |
---|---|---|
beautify | Hoo | 1.5.0 |
subtle-brackets | raf | 3.0.0 |
highlight-matching-tag | vin | 0.9.5 |