Looking forward to your feedback
The new Python plugin is still young, many features are missing, and it's quite possible that you'll run into problems when using the plugin. By all means, tell us what you think, and we'll do our best to address your feedback and improve the plugin.
请先登录再写评论。
the only thing i ran into so far:
if i type let's say
walk and hit ctrl+space it does not offer me os.walk (and then auto import it)
same way
if i type TestCas (or TestCase) and hit ctrl+space it does not offer unittest.TestCase and then auto import unittest
should i file a jira ticket?
otherwise it looks promising and I really appreciate the effort!
I imported a django project and some of the modules in django's namespace didn't seem to be recognized.
Apart from that, I tested it briefly, and it appears to do exactly what it says on the tin.
I was really anticipating the Python plugin, many thanks.
It's not perfect, but it's a great job and I'm sure that in time, it will be a major tool for python developers everywhere.
yeah, the release note is pretty accurate, thanks for that! (the only issue not listed is the one I just posted above)
i am looking forward to see more and more features implemented! my wishlist would be:
- improving auto-import and code completion
- more advanced type inference
- many significant inspections are not implemented yet (unused values, unreachable code, unsafe string handling, definite assignment, endless loops, etc).
I've created a ticket for this issue and updated the release notes.
Looks awesome! For a first cut, this is really good. My vote is for better refactoring - overriding, etc. Perhaps generating __repr__ as well (analogous to GenerateToString plugin in Java) ? Maybe generating constructors? I know I could put in a live template, but will be nice to have it support out-of-the-box. Anyhow, I'm a happy man for now!
Improvements:
1) code folding beyond just method (probably related to finishing syntax hilighting?)
2) a way to predefine method or module-specific variables (and ASSUMED class types for those variables) that are assumed to exist BEYOND introspection or code detection (like those added via runtime from other modules using globals()['VAR'] = value)
3) Related to #2 above, a way to mark an introspection as OK, so the side bar is not filled with warnings, and if any new ones come up they can be looked at and marked OK accordingly.
4) Like in Wing 3, object probable-type detection
5) method exit point detection like in java (ctrl-f7 on a return hilights all exit points)
6) find usages of probable instance and class specific fields, and find unused fields/methods, etc
7) detection of field-scope (whether module or method), as well as field namespace and built-in override warnings (like with PyDev), ie defining a var named 'dir' or 'len', etc
More Improvements:
8) detection of aliased imports (seems like you may already be aware of this)
9) not sure if you plan on this but basic django integration: template file parsing, wizards, detection/completion of models objects manager, filter parameters, etc
Yet More Improvements:
10) Blind/Dumb field/method completion from all detected symbols/possible fields from imported/defined classes.. So even if the type is not known, you still don't have to go looking around for the exact spelling of a method/field on an instance object. This is possibly an easier option than implementing my #2.
I'm probably doing something very stupid but I can't get this to work. I have:
But the python file is treated as a simple text file and no syntax checking or other smarts are available. Any idea what I missed?
Hello malcolm,
Make sure that the .py extension is not mapped to plain-text files in Settings
| File Types.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks. That got things working.