Imports completion

Hello.

I have strange behavior in new 96.115 release with imports completion. Consider samples below.

1. Nested modules:

root

    __init__.py

    nested_mod.py

client_mod.py

Code in client_mod.py:

import ro<Ctrl-Space> -> import root (OK)

import root.<Ctrl-Space> -> import root.nested_mod (OK)

But:

form ro<Ctrl-Space> -> from root (OK)

from root.<Ctrl-Space> -> no suggestion for nested_mod (F)

import root.nested_mod

ro<Ctrl-Space> -> root

root.<Ctrl-Space> -> no suggestion for nested_mod

2.

import module

module.<ctrl-space> -> Sometimes(!) __init__.py and some other py files are shown in the list. Not all of them.

Should I create issue for 1? For 2 I can't make sample to reproduce at this moment.

Thanks again for (I hope) best IDE for Python in future.

---

wbr, Serge Travin.

0
4 comments

Hello Serge,

You don't have to ask in the forums before filing YouTrack issues. :-) Please

do.

I have strange behavior in new 96.115 release with imports completion.

Consider samples below.

1. Nested modules:

root

__init__.py

nested_mod.py

client_mod.py

Code in client_mod.py:

import ro<Ctrl-Space> -> import root (OK)

import root.<Ctrl-Space> -> import root.nested_mod (OK)

But:

form ro<Ctrl-Space> -> from root (OK)

from root.<Ctrl-Space> -> no suggestion for nested_mod (F)

import root.nested_mod

ro<Ctrl-Space> -> root

root.<Ctrl-Space> -> no suggestion for nested_mod

2.

import module

module.<ctrl-space> -> Sometimes(!) __init__.py and some other py

files are shown in the list. Not all of them.

Should I create issue for 1? For 2 I can't make sample to reproduce at

this moment.

Thanks again for (I hope) best IDE for Python in future.

---

wbr, Serge Travin.

---

Original message URL:

http://www.jetbrains.net/devnet/message/5261488#5261488

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Avatar
Permanently deleted user

Hello Dmitry.

I've decided to ask since this feaure (completion for modules) was inroduced (fixed) in new relase.

And I was thinking that might I'm missing smth in options or completion concept. =)

New issue - http://youtrack.jetbrains.net/issue/PY-874

Also, please, close this one - http://youtrack.jetbrains.net/issue/PY-858 since it seems to be fixed in new release.

I've tried to mark it as duplication, but stuck with issue id in command.

Version 96.115 is not avaliable in "Affected version" field. Is it normal?

---

wbr, Serge Travin.

0
Avatar
Permanently deleted user

Hello Dmitry,

Sorry avout posting in this thread.

I'm  stuck wih following two problems in PyCharm:

1. IDE  often refuses to open "Find usages" and "Find in path" dialogs and  reports about internal error in status bar. Restarting solves this  problem, but it happens in about 40% of starts.

2. Follwing  sequence hangs IDE with 100% CPU on one of the cores:

     a.  Open js-file.

     b. Find some function and call "Find usages".

      c. In the results window double-click on any of the found usages.

      Result - IDE hangs and do not repond to any actions. (E.g click close  btn)

I've tried to do the same actions in WebStorm  beta, but got the same result. (I mean only second problem).

Could  u suggest smth to collect more info about these issues?

Thanks  in advance!

---

wbr, Serge Travin.

0

Hello Serge,

1. IDE  often refuses to open "Find usages" and "Find in path" dialogs

and  reports about internal error in status bar. Restarting solves

this  problem, but it happens in about 40% of starts.

Could you please post a YouTrack issue and include the stacktrace of the

internal error?

2. Follwing  sequence hangs IDE with 100% CPU on one of the cores:

a.  Open js-file.

b. Find some function and call "Find usages".

c. In the results window double-click on any of the found

usages.

Result - IDE hangs and do not repond to any actions. (E.g click

close  btn)

I've tried to do the same actions in WebStorm  beta, but got the same

result. (I mean only second problem).

Could you please file a YouTrack issue and attach the contents of %USERHOME%\.PyCharm10\system\log\threadDumps-xxx

from the session in which you experienced the hang?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.