SublimeJEDI icon indicating copy to clipboard operation
SublimeJEDI copied to clipboard

Do not autosuggest packages with dashes in names

Open playpauseandstop opened this issue 5 years ago • 3 comments
trafficstars

First of all, this is awesome plugin! Thanks a lot for making it!

I'm using it everyday and in total highly happy with it results. However recently I found out one small issue and would like to consult, whether it should be fixed or not.

The issue is about package names with dashes and suggesting them for imports usage which makes no sense. Let's take a look on screenshot below,

Screen Shot 2020-02-20 at 14 48 53

It suggests to import from aiohttp-middlewares, but it will result in syntax error.

The source for suggestion is valid (from my pov), as aiohttp-middlewares named exactly as aiohttp-middlewares, but I believe SublimeJEDI should exclude that suggestions as they don't make much sense.

If this makes sense for you as well, I'll be glad to provide fix for given issue!

playpauseandstop avatar Feb 20 '20 12:02 playpauseandstop

BTW,

IPython, which also used JEDI for autosuggestion, do not suggest aiohttp-middlewares as seen at screenshot below,

Screen Shot 2020-02-20 at 21 30 09

playpauseandstop avatar Feb 20 '20 19:02 playpauseandstop

@playpauseandstop thanks for report.

srusskih avatar Feb 21 '20 10:02 srusskih

Could you please provide code reference which gathers entries for the autosuggestions list?

umairansar avatar Nov 29 '20 10:11 umairansar