Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense not working consistently on 1.41 #87836

Closed
tomonline opened this issue Dec 29, 2019 · 7 comments
Closed

Intellisense not working consistently on 1.41 #87836

tomonline opened this issue Dec 29, 2019 · 7 comments
Assignees
Labels
javascript JavaScript support issues suggest IntelliSense, Auto Complete upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@tomonline
Copy link

Issue Type: Bug

Hi,

I am using VS Code 1.41 on Windows and I noticed that there was an issue with Intellisense suggesting auto-imports.

If an import was missing, the item is red-underlined, and pressing Ctrl+Space works once by showing suggested imports. However, if I try to use it a second time, on the same file, same import or even anywhere in the application it fails to work, returning just 'No suggestions'

Interestingly though, hovering over the item with the red underline and then selecting 'Quick Fix' does provide the suggested import consistently. However, this is a lot slower than the keyboard method.

I have downgraded back to 1.40.2 and the functionality has returned with Ctrl+Space working consistently again.

Could you suggest what is the issue here with 1.41?

Thanks
Tom

VS Code version: Code 1.41
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 x 3592)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 23.95GB (15.11GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (24)
Extension Author (truncated) Version
cucumberautocomplete ale 2.14.1
vscode-color ans 0.4.5
bracket-pair-colorizer Coe 1.0.61
vscode-markdownlint Dav 0.33.0
vscode-simpler-icons dav 1.6.5
gitlens eam 10.2.0
vscode-html-css ecm 0.2.3
prettier-vscode esb 3.18.0
auto-rename-tag for 0.1.1
terminal for 0.0.10
md2reader gdr 0.8.0
Angular2 joh 8.3.0
vscode-JS-CSS-HTML-formatter lon 0.2.3
json-to-ts Mar 1.5.5
vscode-docker ms- 0.9.0
vsliveshare ms- 1.0.1404
debugger-for-chrome msj 4.12.3
vscode-react-native msj 0.13.2
live-sass rit 3.0.0
LiveServer rit 5.6.1
code-settings-sync Sha 3.4.3
html5-boilerplate sid 1.0.3
vscode-icons vsc 9.7.0
markdown-all-in-one yzh 2.6.1
@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Dec 29, 2019
@kieferrm
Copy link
Member

@tomonline I'm guessing you are talking about JavaScript? Can you please provide short example that exhibits the problem? Thank you!

@kieferrm
Copy link
Member

/needsMoreInfo

@vscodebot vscodebot bot added the info-needed Issue requires more information from poster label Dec 29, 2019
@vscodebot
Copy link

vscodebot bot commented Dec 29, 2019

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

@1nfility
Copy link

1nfility commented Dec 29, 2019

Same issue on Darwin x64 19.0.0 (Catalina).
VSC Version: 1.41.1

example: const request = require('request'); // request. - No intellisense to give properties

@tomonline
Copy link
Author

@kieferrm Apologies - yes it's javascript, though to be specific, it's a Typescript file generated from Angular CLI.

VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)

The first time I invoke intellisense via Ctrl+Space, VSC suggests which file to import:
image

The scond time I invoke intellisense via Ctrl+Space, VSC provides no suggestions:
image

An error is thrown in DevTools, as follows:

ERR TypeScript Server Error (3.7.3)
Cannot read property 'symbol' of undefined
TypeError: Cannot read property 'symbol' of undefined
at tsserver.js:106151:69
at Object.forEach (tsserver.js:170:30)
at Object.get (tsserver.js:106144:24)
at getSymbolsFromOtherSourceFileExports (tsserver.js:107274:79)
at getGlobalCompletions (tsserver.js:107103:49)
at tryGetGlobalSymbols (tsserver.js:107015:25)
at getCompletionData (tsserver.js:106813:22)
at Object.getCompletionsAtPosition (tsserver.js:106177:34)
at Object.getCompletionsAtPosition (tsserver.js:130777:35)
at IOSession.Session.getCompletions (tsserver.js:140414:64)
at Session.handlers.ts.createMapFromTemplate._a. (tsserver.js:139394:61)
at tsserver.js:140929:88
at IOSession.Session.executeWithRequestId (tsserver.js:140920:28)
at IOSession.Session.executeCommand (tsserver.js:140929:33)
at IOSession.Session.onMessage (tsserver.js:140952:35)
at Interface. (tsserver.js:142267:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17): Error: TypeScript Server Error (3.7.3)
Cannot read property 'symbol' of undefined
TypeError: Cannot read property 'symbol' of undefined
at tsserver.js:106151:69
at Object.forEach (tsserver.js:170:30)
at Object.get (tsserver.js:106144:24)
at getSymbolsFromOtherSourceFileExports (tsserver.js:107274:79)
at getGlobalCompletions (tsserver.js:107103:49)
at tryGetGlobalSymbols (tsserver.js:107015:25)
at getCompletionData (tsserver.js:106813:22)
at Object.getCompletionsAtPosition (tsserver.js:106177:34)
at Object.getCompletionsAtPosition (tsserver.js:130777:35)
at IOSession.Session.getCompletions (tsserver.js:140414:64)
at Session.handlers.ts.createMapFromTemplate._a. (tsserver.js:139394:61)
at tsserver.js:140929:88
at IOSession.Session.executeWithRequestId (tsserver.js:140920:28)
at IOSession.Session.executeCommand (tsserver.js:140929:33)
at IOSession.Session.onMessage (tsserver.js:140952:35)
at Interface. (tsserver.js:142267:27)
at Interface.emit (events.js:200:13)
at Interface._onLine (readline.js:314:10)
at Interface._normalWrite (readline.js:459:12)
at Socket.ondata (readline.js:170:10)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
at Function.create (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:47388)
at h.dispatchResponse (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:206557)
at h.dispatchMessage (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:205455)
at c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:204931
at l.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:893)
at t.Reader.onLengthData (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:212021)
at Socket. (c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:211669)
at Socket.emit (events.js:200:13)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 30, 2019

Tracked upstream by microsoft/TypeScript#35036

@tomonline If you have a change, please share steps to reproduce this issue upstream (such as the code that causes this)

@mjbvz mjbvz closed this as completed Dec 30, 2019
@mjbvz mjbvz added javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) suggest IntelliSense, Auto Complete and removed terminal General terminal issues that don't fall under another label info-needed Issue requires more information from poster labels Dec 30, 2019
@1nfility
Copy link

Same issue on Darwin x64 19.0.0 (Catalina).
VSC Version: 1.41.1

example: const request = require('request'); // request. - No intellisense to give properties

Also occurs with javascript, not only typescript.

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues suggest IntelliSense, Auto Complete upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants