-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
How to detect undefined references (NameError, ecc.)? #1945
Comments
You should probably use mypy for that. I'm currently working on a tool that does that (Rewrite of Jedi & Mypy in Rust), but this will take quite a long time, still (it's been almost 3 years already). |
This is a bit of a complex topic. Jedi could do this partially, but it would be very slow. However the partial part is also important. Jedi was never designed to do that, because type checkers typically have a different architecture, than what I set out to do with Jedi. It's why I'm rewriting it. Jedi also sometimes uses heuristics, which is something type checkers usually don't do. Also imagine how long a completion typically takes and then multiply that by potentially 2000 lookups and you'll quickly see that it's very complicated. :) |
Hi, this is probably a stupid question, but I noticed that Jedi does not report an error (at least in VSCode) when accessing a non-existing function/property of an object or of a module. Is it outside the scope of the project or is it something the user is supposed to detect themselves using the information exposed by the API?
The text was updated successfully, but these errors were encountered: