Uh oh!
There was an error while loading. Please reload this page.
Add a plugin to provide autoimport functionality - #199
Conversation
…already in document
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Other smaller changes: - Allow memory only database for testing. - Configuration parameter for memory database
bagel897
commented
May 27, 2022
so this is almost ready:
|
bagel897
commented
Jun 22, 2022
Some notes about the future of this. I'm working on splitting it out to its own repository where 1-3 things will happen.
But for now, this is perfectly functional code |
bagel897
commented
Sep 15, 2022
Yes, but its probably better to mark it off by default, and explain that it is experimental unless it is replaced in jedi/rope |
ccordoba12
commented
Sep 15, 2022
Agreed, that's fine for me too. |
mostley
commented
Oct 17, 2022
Can I help somehow to make this happen? |
bagel897
commented
Oct 17, 2022
If Jedi manifested a should_insert API, that'd help - but isn't necessary for the merge. I'm not sure what else is needed. |
ccordoba12
commented
Oct 17, 2022
I didn't know this was ready. I'll try to review it this week so we can include it in our next version. |
ccordoba12
left a comment
There was a problem hiding this comment.
Thanks a lot @bagel897 for your work on this! I left a very lightweight review for you, mostly about style issues. Otherwise looks good to me.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
…server into autoimport
bagel897
commented
Nov 3, 2022
Pushed a bugfix and the style changes. Let me know if there's anything else (or if the CI fails, I'll check). You might want to squash the PR, since its a lot of poorly labeled commits, but up to you. Thanks for the feedback @ccordoba12! |
ccordoba12
left a comment
There was a problem hiding this comment.
Thanks for addressing my previous review @bagel897! One last suggestion for you then this should be ready.
Uh oh!
There was an error while loading. Please reload this page.
ccordoba12
commented
Nov 3, 2022
Don't worry about that, we squash merge all PRs in this repo. |
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
ccordoba12
left a comment
There was a problem hiding this comment.
Thanks @bagel897 for this addition! It's a great improvement!!
Autoimport plugin for pylsp
Depends on accompanying pull request in rope
@bagel897
Closes#34
Prereqs
Rope > 1.0.0 (AKA git builds rn)
Demo Images
can detect external modules
grabs names from the external modules
Features
Will take suggestions on how to improve the basic algorithm
Besides the cache generation, it preforms fine on my machine
Most of the test cases are to cover this and it should be pretty functional.
the main ones are in parsing existing names and whether to suggest imports
Won't fix
__init__.pymodules. Would be difficult to preform type inference on.