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

Autocomplete stopped working after 1.41 update. #87034

Closed
hrds opened this issue Dec 15, 2019 · 34 comments
Closed

Autocomplete stopped working after 1.41 update. #87034

hrds opened this issue Dec 15, 2019 · 34 comments
Assignees
Labels
info-needed Issue requires more information from poster javascript JavaScript support issues suggest IntelliSense, Auto Complete upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@hrds
Copy link

hrds commented Dec 15, 2019

Issue Type: Bug

Every type of auto complete(snippets, intellisense etc) stopped working after 1.41 update. This issue reproducing on my laptop, on other computers everything is okay.

VS Code version: Code - Insiders 1.42.0-insider (cbeff45, 2019-12-13T07:08:57.560Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz (8 x 2395)
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) 7.86GB (3.06GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
path-intellisense chr 1.4.2
vscodeintellicode Vis 1.2.0
@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Dec 15, 2019
@hrds hrds changed the title Autocomplete stopped works after 1.41 update. Autocomplete stopped working after 1.41 update. Dec 15, 2019
@gjsjohnmurray
Copy link
Contributor

Does the problem also happen if you launch with all extensions disabled?

@StebanDev
Copy link

I have the exact same problem, tried in stable version and in insiders too. Got all extensions disabled, it is happening after 1.41 update, it works only for the first suggestion and then doesn't work anymore.
I noticed one of the code processes keep with 25% avg cpu load

@hrds
Copy link
Author

hrds commented Dec 15, 2019

I have the exact same problem, tried in stable version and in insiders too. Got all extensions disabled, it is happening after 1.41 update, it works only for the first suggestion and then doesn't work anymore.
I noticed one of the code processes keep with 25% avg cpu load

i have same behavior, works only for first suggestion and without extensions too

@RMacfarlane
Copy link
Contributor

@hrds What languages are you coding in?

@hrds
Copy link
Author

hrds commented Dec 16, 2019

@RMacfarlane JavaScript in this case, but it's problem with suggestions overall.

@St-Permiakov
Copy link

St-Permiakov commented Dec 16, 2019

Same issue here.
JavaScript, with extensions and without.

Intellisense stops responding alongside some other functions (like GoTo).
I guess it has something to do with imports and code size (removing most part of imports from js file may have helped), but I'm not sure.

Downgrade to 1.40 helps for sure, so it's a valid tmp fix.

Please, let us know when the issue is resolved somehow.

@aboe026
Copy link

aboe026 commented Dec 16, 2019

I'm seeing the same behavior as well. uninstalling vs-code then installing 1.41 did not seem to help.

@drillprop
Copy link

Same for me. When i do "Restart TS server" for a one import it works, but then stops again and showing 'No Suggestions'.

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 16, 2019

@hrds Do you see this issue in other files, such as json or html?

Also does this reproduce with all extensions disabled?

@mjbvz mjbvz added info-needed Issue requires more information from poster suggest IntelliSense, Auto Complete and removed terminal General terminal issues that don't fall under another label labels Dec 16, 2019
@drillprop
Copy link

I found workaround here: microsoft/TypeScript#35716 (comment). At least it works for me. It seems autocompletion with this extension works even better than before.

@jonas-wu
Copy link

mark,I have the same problem.

@bailiyang
Copy link

bailiyang commented Dec 17, 2019

Autocomplete back again now
what's happen

@hrds
Copy link
Author

hrds commented Dec 17, 2019

Autocomplete back again now
what's happen

Same, I'm checking right now, everything works. idk what you did, but thanks

@dandmcd
Copy link

dandmcd commented Dec 17, 2019

I'm not having the same luck as the above 2, Intellisense is just showing Loading while hovering, and not providing autocomplete. Extensions or not it is failing. I am working with JS files, it appears like it is breaking when a file can be auto-imported.

I restarted VSCode, and even rebooted to no avail. I updated perhaps 2 days ago, this error was not present until today. I was able to produce a Typescript server error in the exthost log. Turning off all extensions did not solve the issue, but the error was gone.

[2019-12-17 14:38:19.524] [exthost] [error] [vscode.typescript-language-features] provider FAILED [2019-12-17 14:38:19.525] [exthost] [error] Error: <semantic> TypeScript Server Error (3.7.3) No Project. Error: No Project. at Object.ThrowNoProject (tsserver.js:133314:23) at ScriptInfo.getDefaultProject (tsserver.js:134061:46) at ProjectService.doEnsureDefaultProjectForFile (tsserver.js:136599:48) at ProjectService.ensureDefaultProjectForFile (tsserver.js:136594:75) at IOSession.Session.getFileAndProjectWorker (tsserver.js:140251:87) at IOSession.Session.getFileAndProject (tsserver.js:140234:29) at IOSession.Session.getApplicableRefactors (tsserver.js:140684:31) at Session.handlers.ts.createMapFromTemplate._a.<computed> (tsserver.js:139539: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.<anonymous> (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:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:47388) at h.dispatchResponse (c:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:206361) at h.dispatchMessage (c:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:205259) at c:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:204735 at l.fire (c:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:893) at t.Reader.onLengthData (c:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:211825) at Socket.<anonymous> (c:\Users\dandm\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension.js:1:211473) at Socket.emit (events.js:200:13) at Socket.EventEmitter.emit (domain.js:471:20) 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)

@slaci
Copy link

slaci commented Dec 17, 2019

Intellisense doesn't work for me either on 1.41.0 (win 10 1909) with a react-native project. I had to downgrade to 1.40.2 where ac is instant. If I install the typescript@next plugin for 1.40.2 then the same happens, no intellisense anywhere (thats a nightly build so maybe just broken atm, otherwise related).

@jsm1003

This comment has been minimized.

@alexdima
Copy link
Member

Hey, does anyone here have any steps or any commonalities? Is everyone having trouble with react based projects only?

@St-Permiakov
Copy link

Well, not React based, but JS + ES6 Modules based.
Can't tell for others.

@drillprop
Copy link

@alexdima I tested on typescript and javascript react based projects, it's not working. For some reason in typescript projects when i enable typescript@next extension, intellisense and autoimports works fine.

@dandmcd
Copy link

dandmcd commented Dec 17, 2019

@alexdima I've only tried with React JS files thus far. Everything seems to work fine for the first minute or so, and than Intellisense starts failing. I'm not sure if there is a way to get a log of Intellisense, but I didn't find anything digging around the dev log file folder.

@dandmcd dandmcd mentioned this issue Dec 17, 2019
@mckennatim
Copy link

For me it autocomplete stopped a while ago on code insiders, switched to regular and it came back until 1.41. Just downgraded to 1.40 regular and all is good. 1.42 insiders is also broken

@fanzkday
Copy link

Me, too. But, can use lower version, 1.30 is working!

@crysispht
Copy link

crysispht commented Dec 18, 2019

I use typescript@next extension and choose the version of 3.6.*, it seems to work

@jonas-wu
Copy link

I added extension(JavaScript and TypeScript Nightly), and the problem is gone

@alexdima
Copy link
Member

@mjbvz From the comments, I think this is a problem with the specific tsserver version we shipped in 1.42

@alexdima alexdima removed their assignment Dec 18, 2019
@Cellv2
Copy link

Cellv2 commented Dec 18, 2019

Check the drive that your project is on. If it's on a different drive to the one you put your VS Code install on, try putting it on the same drive

This was raised a few weeks ago on insiders (#85889) - is down to the TS version. VS Code ships with TS 3.7.3, which has the issue

Fix is there (microsoft/TypeScript#35512), but it's not out the gates yet

Doing npm i -D [email protected].* then opening VS Code, bringing up the command palette (F1) > select typescript version and using workspace version was a workaround for me

@mjbvz mjbvz added the javascript JavaScript support issues label Dec 20, 2019
@mjbvz
Copy link
Collaborator

mjbvz commented Dec 20, 2019

@hrds So has the issue been fixed for you? Are your projects stored on non-c drives on windows? If so, please try upgrading your workspace to use typescript@next by installing this extension

@aboe026
Copy link

aboe026 commented Dec 21, 2019

i was seeing this issue and my projects are on a different drive than vscode is installed on, so there is probably some credence in that being the culprit. I've since downgraded to 1.4.0.2 so I cannot attempt the typescript workaround

@Cl00e9ment
Copy link

For me the issue was a bit different: Editor: Accept Suggestion On Enter has been put to off after updating. Putting to on again fixed the problem.

@codenoobforreal
Copy link

Use typescript@next is work for me!

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 30, 2019

Closing this as a likely duplicate of microsoft/TypeScript#35512

To workaround this, use typescript@next by installing this extension

@mjbvz mjbvz closed this as completed Dec 30, 2019
@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Dec 30, 2019
@prabhaw
Copy link

prabhaw commented Jan 18, 2020

i was seeing this issue and i install older version 1.40 it work fine for me.

@lomeat
Copy link

lomeat commented Feb 4, 2020

I added extension(JavaScript and TypeScript Nightly), and the problem is gone

WOW. Its worrks. Thank you man!

P.S. I honestly don't understand why I should install noname extension to use default features of editor.

@gjsjohnmurray
Copy link
Contributor

P.S. I honestly don't understand why I should install noname extension to use default features of editor.

As I understand the situation, that extension allows a 1.41 user to benefit in advance from a set of fixes that will land in 1.42, expected to ship later this week. @mjbvz is this true?

@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
info-needed Issue requires more information from poster 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