-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Cannot complete correctly for pytorch #1316
Comments
I find adding |
I feel like Jedi has a really hard time finding matmul. By reading the pytorch code I have trouble to find it. Can you enlighten me where it is defined? |
Since Also, the docstring of
|
Oh, now I see. Please wait for #839 and tell me if it's not working once that is finished. Note to myself: The stubs are here: https://github.com/pytorch/pytorch/blob/master/torch/__init__.pyi.in |
@davidhalter Hi, I faced the same issue with Pytorch, and created a new issue in the vscode section : |
@Coderx7 Happy to have to conversation here. However it's now just a matter of time until we have a release. On the master branch you should be able to work with pytorch stubs. Feel free to try :) You just need to clone Jedi, I'm actively looking for feedback for this branch, so you're the perfect "customer" :). PS: I'm not sure if that all works with vscode, but you could just do what I said and copy the whole Jedi folder to the place where vscode's Jedi resides. |
@davidhalter , seems they have it baked into the Python extension and there is no separate folder for Jedi! |
Why? The Jedi files need to be somewhere ;-) |
I found it. it was located in the |
0.9 is really old. That's probably one of the first "ok" versions, but please use a newer one. No idea why they ship such old versions. Please use the latest version. Switching from 0.12.0 to 0.13.2 should probably be worry-free, however switching from 0.9 might cause some problems (some things have been deprecated and removed since then). |
I updated my anaconda's Jedi to the latest version. I also downloaded the latest master branch, and copied the Jedi subfolder to the VSCode Extensions folder, replacing the old version there. After doing so, the intellisense broke and didnt work anymore, I had to revert back my changes (i.e using the former 0.12.0 version in VSCode directory) . |
For VSCode, I'm really unsure. I would probably need an exception to tell what's going on. There's probably logs somewhere or a debug function that you can enable. |
Here is the log concerning my latest changes (updating the Jedi to the latest version) and this is the console log when the default jedi package is used and is working fine. |
And i get:
[<Completion: manager_path>, <Completion: manual_seed>, <Completion: math>]
BUT, what I what is
matmul
. Why cannot jedi complete this function?Besides, jedi cannot complete
torch.from_numpy
as well.The text was updated successfully, but these errors were encountered: