You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
How to have parameters and docs showing for code installed with codan develop or pip -e . #2088
I have installed multiple packages in development mode. See my python path:
❯ python -c "import sys; [print(p) for p in sys.path]"
/Users/brandomiranda/miniconda3/envs/my-env/lib/python37.zip
/Users/brandomiranda/miniconda3/envs/my-env/lib/python3.7
/Users/brandomiranda/miniconda3/envs/my-env/lib/python3.7/lib-dynload
/Users/brandomiranda/miniconda3/envs/my-env/lib/python3.7/site-packages
/Users/brandomiranda/proj/my-proj
/Users/brandomiranda/ultimate-utils/ultimate-utils-project
/Users/brandomiranda/higher
However when I try to auto-complete to see docs, parameters etc for my own project it does not work (note intellicode does seem to suggest sensible things for Pytorch for the moment so I assume that is working and the docs for .tensor).
I press ^ space (control space) and it says:
No suggestions
in addition it does not shows a preview of the parameters or the docs (e.g. the docstrings I wrote for my own code).
I am mainly using conda develop . to install my editable code.
but they don't seem to work for me. Besides, if I already have my packages installed in my conda environment as the print of the python environment path shows, I don't understand why I need to tell vscode manually again about them.
How can we make the IntelliSense feature work for my own code installed in editable mode?
Jake Bailey (@jakebailey) I have an issue where I can go to the declaration of the project in one place but not in the other (and also it never gives me suggestions for project I installed myself with conda develop . or even pip -e .).
What should I do?
e.g.
import uutils.emailing #1
from uutils.emailing import send_email, send_email_pdf_figs #2
with 1 I CANNOT go to the declaration with a right click but I CAN with 2 when I go to emailing.
Please, provide logs. The page I linked has the settings to enable trace logging and where to find it in VS Code.
I will, sorry if I missed the instruction, I usually don't.
Meanwhile I have a question. If I open everything from my home directory were all my projects are, will that allow illi-code, the language server etc all those nice features work better?
Activity
brando90 commentedon Jun 24, 2020
cross posted: https://stackoverflow.com/questions/62564321/how-does-one-have-intellisense-or-intellicode-work-for-my-own-packages-install
brando90 commentedon Jun 24, 2020
I have installed multiple packages in development mode. See my python path:
However when I try to auto-complete to see docs, parameters etc for my own project it does not work (note intellicode does seem to suggest sensible things for Pytorch for the moment so I assume that is working and the docs for
.tensor).I press
^ space(control space) and it says:in addition it does not shows a preview of the parameters or the docs (e.g. the docstrings I wrote for my own code).
I am mainly using
conda develop .to install my editable code.I saw other resources like:
but they don't seem to work for me. Besides, if I already have my packages installed in my conda environment as the print of the python environment path shows, I don't understand why I need to tell vscode manually again about them.
How can we make the IntelliSense feature work for my own code installed in editable mode?
brando90 commentedon Jun 25, 2020
Jake Bailey (@jakebailey) I have an issue where I can go to the declaration of the project in one place but not in the other (and also it never gives me suggestions for project I installed myself with
conda develop .or evenpip -e .).What should I do?
e.g.
with 1 I CANNOT go to the declaration with a right click but I CAN with 2 when I go to
emailing.jakebailey commentedon Jun 25, 2020
You used the question template, the issue template asks for a lot more info. The trace logs would be important to look at, for the paths being used. https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue
brando90 commentedon Jun 25, 2020
there were no indications of that when I opened this issue fyi. I always check that sort of thing carefully.
brando90 commentedon Jun 25, 2020
There is a warning where there is no code and the surrounding warning makes no sense:
jakebailey commentedon Jun 25, 2020
Please, provide logs. The page I linked has the settings to enable trace logging and where to find it in VS Code.
brando90 commentedon Jul 1, 2020
I will, sorry if I missed the instruction, I usually don't.
Meanwhile I have a question. If I open everything from my home directory were all my projects are, will that allow illi-code, the language server etc all those nice features work better?