Closed petobens closed 8 years ago
This is a known problem. I didn't post this plugin anywhere, so I didn't think it needed my attention right away. 😅
The issue is because a 1 character module name becomes lost in the module parsing. I'll take a look at this as soon as I can!
Awesome. Thank you!
@petobens This should be fixed now!
Hi @tweekmonster , thanks for the previous fix. I found another case where import lines are deleted. If I write
from pyhive import presto
from pyhive.exc import DatabaseError
and then run :ImpSort
I get:
from pyhive.exc import DatabaseError
Can this be fixed? Thanks
@petobens I fixed this today in the latest commit. Make sure you're up to date. The problem was with the sorting function.
@tweekmonster I believe I'm using the latest version however I still see the behaviour. Can you reproduce it? Again thanks for the help
@petobens I think I found the issue. Are the imports the only thing that's in the file? Try adding any non-import after them. If that's the issue you're having, I'll look into fixing it.
@tweekmonster , adding non-import lines indeed fixes the issue.
Thanks! I narrowed down the issue. A fix will be inbound shortly.
@petobens Should be fixed now. Thanks for finding these issues!
Thank you for fixing them so quickly! :)
Hi, thanks for writing this plugin, I find it really useful. One quick question, why is that if I write:
and run
:ImpSort
then I get:I don't understand why the
appscript
import line gets deleted. Is this a feature? Thanks in advance