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 stuck or hang with specific module #3552

Closed
joonhyuk opened this issue Oct 28, 2022 · 4 comments
Closed

intellisense stuck or hang with specific module #3552

joonhyuk opened this issue Oct 28, 2022 · 4 comments
Labels
waiting for user response Requires more information from user

Comments

@joonhyuk
Copy link

Environment data

  • Language Server version: v2022.10.30+
  • OS and version: Linux 6.0.2-arch1-1 (Arch Linux)
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.8

Code Snippet

from collections import deque

d = deque()

Repro Steps

  • My python project imports many modules and custom libraries
  • After 10.30(now 10.40), intellisense and F12(go to definition) for collections.deque not working("Loading...") and vscode seizes one cpu core 100% until killed manually.
  • Vscode itself still works without intellisense and F12
  • 10.20 and earlier versions work well
  • With clean(empty) codebase, works well

Expected behavior

  • Intellisense and Go to definition work well

Actual behavior

  • Intellisense not working(with "Loading..." message)
  • Go to definition not working(keep loading progress bar animating)
  • code process seizes one cpu core to 100% (hang)

Logs

No specific log for this problem.
(Output panel appears to be frozen after the problem occurs)

@mehdigmira
Copy link

Looks like this #3548
You may want to check if installing the prerelease version fixes the issue

@Object905
Copy link

Object905 commented Oct 28, 2022

Had same issue until upgraded to pre-release version. Every time I've used defaultdict language server hanged until manually killed.

Edit:
Nope, same problem on pre-release version.

Noticed this in trace log output

Could not import '_collections' in file '/usr/lib/python3.11/collections/__init__.py'
[Info  - 1:41:19 PM] (157085)   Looking in stubPath '/home/obj/Dev/provider_cabinet/typings'

@rchiodo
Copy link
Contributor

rchiodo commented Oct 28, 2022

@Object905 which prerelease version did you try? 2022.10.41?

There was a hang with large projects that should be fixed in 2022.10.41. #3513

If the prerelease you were using is 2022.10.41, can you give more details on your setup?

@rchiodo rchiodo added the waiting for user response Requires more information from user label Oct 28, 2022
@joonhyuk
Copy link
Author

joonhyuk commented Nov 3, 2022

As far as my problem is concerned, it seems to have been solved.
(v2022.11.10)

Thanks everyone.

@joonhyuk joonhyuk closed this as completed Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user response Requires more information from user
Projects
None yet
Development

No branches or pull requests

4 participants