-
-
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
Auto-complete does not pick up strings #749
Comments
Jedi version? |
@davidhalter , version 0.9.0 |
I can see the use case for namedtuple, but at least for now I disagree about strings. I think that in strings autocompletion is something that is left to editors. |
I agree, string completion would generally fall into the responsibility of the editor. Just quite difficult to determine whether the user is in the middle of a raw string or not. Thanks |
Definitely related to #253. |
I will close this issue for now, because I disagree with the string autocompletion and namedtuple is using the new method, which Jedi currently doesn't support. Maybe we will one day, but it doesn't have any priority (it's not just about namedtuples, it's just one of quite a few magic methods that Jedi ignores). |
@davidhalter - There are a few other use cases mentioned in the original issue. Do you find them all invalid and/or low priority? |
@davidhalter, agreed |
@nchammas Well, next time just use this tracker, it's pretty hard to discuss things from different issues ;)
Your example touches a very special case that I think will not be cared for in the next few years. It's just too much work for very tiny results. I would rather have way better dictionary type inference where you can actually tell what's in a dict when it's modified. But that's also for another day (on my list, though).
This is something I definitely will not support at the moment. It doesn't fit the API and it's something that an IDE can do quite easily.
That's IMO unclean Python. I would recommend against even writing such an API. However it might one day be implemented if we decide to make it possible to follow |
OK, thanks for elaborating. Just from a user perspective, it's helpful to understand more of the rationale behind feature decisions.
Sorry about that. I didn't know about Jedi until @DonJayamanne opened this issue here as a copy of an issue I opened upstream against his project. (I'm just a dumb VS Code end-user. 😅) The issue here only mentioned 2 of the 4 use-cases from the upstream issue, so I just wanted to make sure none of the remaining use cases would have changed your position. |
Well, it's also totally fine if you open a new issue if you have a feature request. (Even if it's 4, doesn't make the work much bigger). While there's a lot of possible small enhancements for completion, I've never really thought about those. They are not what interests me. I want to be able to do refactoring and linting and just have a set of awesome tools, like REPL completion. So I have to find a general balance between all of those new features and maintaining the project. Your requests are not wrong. There's just almost always the technology missing that is needed to implement them properly. What does better dict.update() completion help you if the dictionary support is just marginal? Nothing. I'm continuously trying to improve the technology behind Jedi to make such things possible. Therefore I have a very slow release schedule. But it has enabled things that seemed impossible with the old code base. It enabled me to add like 5 features in the last week (but I haven't added features for like half a year before that). So be very patient, help out and ask again in 2-3 years. The next improvement might be just around the corner and the feature request trivial. |
Yup, totally understood. Thank you again for elaborating on your rationale. |
Raised on behalf of @nchammas against Python extension using Jedi library.
Original issue raised here DonJayamanne/pythonVSCode/issues/223#issuecomment-234818601
The text was updated successfully, but these errors were encountered: