-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Intellisense tooltip not show #817
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
Comments
Most probably #263 |
It's not related to RAM consumption. I can reproduce this bug when VScode consumes only 200 MB RAM. |
Its not vscode but rather |
I did see a python2 process appeared when I used Intellisense tooltip in VScode. But when I reproduced the bug (move mouse cursor to GlobalInit), the python2 process disappeared (crash!?). During the test, the KDE System Load Viewer showed the python2 process consumed < 70 MB RAM... |
This bug seems to be unrelated to Detectron but caffe2.python. caffe2 is a C/C++ libraries/tools with python wrappers. I checked the definition of workspace.GlobalInit from /usr/caffe2/python/workspace.py. workspace.py shows:
It seems GlobalInit is a Python interface to a C/C++ function global_init. |
I am debugging vscode-python. I achieve a line which causes the external python process crash in jediProxy.ts: |
I find a workaround by restarting the external python process. See #826. |
I successfully debug
Finally, I find
|
Interesting. Thanks for digging :-) |
@DonJayamanne , what's your take |
I think it should be blacklisted by Jedi. The try:
import fist_compiled_implementation
except ImportError:
import other_compiled_implementation It looks like since Jedi is unable to determine which one is going to be loaded it tries to load both. |
Its highly likely a jedi issue. We're not importing anything manually. I don't believe Jedi imports either. I always assumed it performed static analysis. |
These are C modules so I believe Jedi does try to import them: |
Ah yes, thats correct. @MrMYHuang |
@DonJayamanne Sorry for the off-topic but vscode-python team seems to be working hard on adding PTVS support for debugging, right? Does that mean that it will also be used for IntelliSense (code completion) and jedi will be dropped some day? |
@balta2ar - yes, both the debugger and intellisense will be seeing improvements. Since they're fundamental to just about any scenario, they're a high priority for the next few months. |
Thank for everyone. I report this issue to jedi. |
Environment data
VS Code version: 1.20.1
Python Extension version: 2018.1.0
Python Version: 2.7.5
OS and version: CentOS 7.4.1708
caffe2 (with GPU enabled) commit: 5651c4ce0279c895cbb1d1eeecc6594cc8791103
Actual behavior
Intellisense tooltip is not shown.
Expected behavior
Intellisense tooltip is shown.
Steps to reproduce:
git clone https://github.com/facebookresearch/Detectron.git
cd Detectron/tools
code infer_simple.py
Logs
Output from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: