I use python 2.7 in a virtual environment and PyCharm 2.7 (new build as of feb 07 2013).
Whenever I open a python file in it that has unambiguous errors (equivalent to compile errors in other languages, e.g. using undeclared variables, calling non-existing functions), it shows red stripes in the gutter of the file.
So, I discover errors randomly as I happened to navigate to a file that contains them. What I would really like is to be able to list all of the python errors in a separate window. The Visual Studio 2005/2008/2010/... IDE has a separate "Errors" view that lists all of them with file names and line numbers, and gives me the ability to click on any one of these errors and navigate directly to the source.
Does PyCharm have anything like this?
PyCharm analyzes the code from the modified files by running inspections from the selected profile. If any errors or warnings are detected, you will see a notification. In the notification, click Review to see the list of the detected problems in the Messages tool window.
By default, PyCharm uses the TSLint package from the project node_modules folder and the tslint. json configuration file from the folder where the current file is stored. If no tslint. json is found in the current file folder, PyCharm will look for one in its parent folders up to the project root.
To fix this go to Settings or press Ctrl+Alt+S go to Project > Project Interpreter and from the Project Interpreter dropdown select Show All then from the list select the python.exe on its current path and press the + symbol on your right.
You can call Code|Inspect Code (formerly Analyze|Inspect Code, thanks to @CrackerJack9) to get all errors and warnings and ways to fix them. In result panel you can choose to see only errors (red/yellow button at the left side).
In Pycharm 2.6.3:
Code -> Inspect Code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With