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

Code Completion in adjacent cells is slow/non existent #4290

Closed
corman44 opened this issue Jan 4, 2021 · 6 comments
Closed

Code Completion in adjacent cells is slow/non existent #4290

corman44 opened this issue Jan 4, 2021 · 6 comments
Labels
info-needed Issue requires more information from poster

Comments

@corman44
Copy link

corman44 commented Jan 4, 2021

Issue Type: Bug

Create Jupyter notebook, import requests, Shift+Enter to run and create new Cell, type "r = req" and press Ctrl+Space to attempt code completion. No Suggestions are available

Extension version: 2020.12.414227025
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:32:10.090Z)
OS version: Linux x64 5.4.0-58-generic snap

System Info
Item Value
CPUs Intel(R) Core(TM) i3-4170 CPU @ 3.70GHz (4 x 3700)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 0, 0
Memory (System) 7.72GB (1.83GB free)
Process Argv --force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id a5791e2f-e43f-45ab-84a7-8e7a11f52bda
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492cf:30211402
wsl2prompt:30224612
pythonvsdeb440cf:30237828
unusedpromptcf:30224611
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773:30236629
vsjup459cf:30237188

@corman44 corman44 changed the title Code Completion in adjacent cells is slow/non existant Code Completion in adjacent cells is slow/non existent Jan 4, 2021
@joyceerhl
Copy link
Contributor

Hi @corman44! Which Python language server are you currently using? You can check this value in your settings.json:

  "python.languageServer"

@corman44
Copy link
Author

corman44 commented Jan 5, 2021

Hi @joyceerhl Jedi is defined. Is this the default for VS Code on Ubuntu 20.04? I have not edited this setting
"python.languageServer": "Jedi"

@joyceerhl
Copy link
Contributor

That is the default, but if you switch it to Pylance and install the recommended Pylance extension, does code completion improve?

@greazer greazer added the info-needed Issue requires more information from poster label Jan 5, 2021
@HaleTom
Copy link

HaleTom commented Jan 6, 2021

I have the same issue with "python.languageServer": "Pylance".

See more generic issue: Pylance / Language server support #4307

@HaleTom
Copy link

HaleTom commented Jan 6, 2021

@corman44
Copy link
Author

corman44 commented Jan 6, 2021

Hi @joyceerhl, code completion seems to be working after switching to Pylance. Thank you for the support!

@corman44 corman44 closed this as completed Jan 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
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
Projects
None yet
Development

No branches or pull requests

4 participants