Commit Graph
20269 Commits
Author SHA1 Message Date
Semyon Proshev 03c7843ae3 Revert "Special case typing for Python < 3.5 (PY-22945)"
This reverts commit 891b423d16.

Don't disable resolve to typing because stubs would become useless.
2017-12-29 15:38:17 +03:00
Andrey Vlasovskikh cc59ef98e1 PY-27004 Updated test data to include one more correct search result
Previously we failed to find it due to resolving to only one element.
Now we resolve to multiple elements, which in this case includes the
target expression for a global variable and its 'global' statement.
2017-12-29 09:46:13 +03:00
Andrey Vlasovskikh ed1ead9fbd PY-27004 Fixed code style 2017-12-29 09:46:13 +03:00
fitermayandAndrey Vlasovskikh 2cee9b66a0 PY-27004: Use multiResolve to check if Python refs match 2017-12-29 09:46:13 +03:00
fitermayandAndrey Vlasovskikh a9248797ae PY-26239: Fix find class usages performance
Instead of searching for "__init__" text. Search for references named the same as the class but with __init__ method target
2017-12-29 09:39:19 +03:00
Semyon Proshev b7ecfbdd8b Attempt to fix flaky PyiInspectionsTest.testPyiCompatibilityAndEllipsis and testPyiMissingOrEmptyDocstring 2017-12-28 20:02:21 +03:00
Ekaterina Tuzova 84f10f71f7 NPE: Jupyter notebook closed during cell evaluation 2017-12-28 17:43:05 +03:00
Ekaterina Tuzova efe246192c output_type before traceback in jupyter json format 2017-12-28 17:41:17 +03:00
Ekaterina Tuzova 0111e9707c PY-26089 Jupyter fails with '_xsrf' argument missing from POST 2017-12-28 17:10:32 +03:00
Anton Bragin ee405b15ca PY-4813 Performance tests fix 2017-12-28 13:31:33 +03:00
Rustam Vishnyakov 22aa31baf8 Deprecate common code style settings in CodeStyleSettings class
Common settings can be referenced only by language.
2017-12-27 15:02:43 +03:00
abragin 196806239c PY-4813 PySuperMethodSearchExecutor refactored
MRO and findFirst / findAll inconsistencies fixed.
2017-12-27 14:02:08 +03:00
abragin ff72b10e29 PY-4813 Return type retrieval switched back to use annotation only
To avoid false-positives return type is gathered from supertype
annotations only.
2017-12-27 14:02:08 +03:00
abragin c62904d99c PY-4813 Code review fixes
Overload constant name improved, overload test improved, overload name
reused.
2017-12-27 14:02:08 +03:00
abragin 26731f5738 PY-4813 Type hints retrieval from superclasses implemented
Type information from superclass method is now available in overriden methods.
2017-12-27 14:02:07 +03:00
nik 9b52eaa5bb build scripts: put groovy scripts under source roots
So script files are checked for errors during compilation, and also it's now possible to use classes from scripts in tests.
2017-12-26 10:04:55 +03:00
Semyon Proshev 7787957394 Support extras in vcs requirements (PY-26844) 2017-12-25 15:08:26 +03:00
Semyon Proshev c69668c37e Don't forget about operands union while getting slice type (PY-26973) 2017-12-25 15:00:11 +03:00
Semyon Proshev 7a26f7cf22 Fix calculating receiver of inner class initialization (PY-26992) 2017-12-25 14:55:18 +03:00
Semyon Proshev 6b2814e09c Add forgotten test data (PY-25974) 2017-12-25 14:55:17 +03:00
Semyon Proshev 85bea17b09 Add pending edge from left operand in boolean expressions (PY-25974) 2017-12-25 14:24:04 +03:00
Semyon Proshev 1d8fda0172 Allow multiple outcoming edges from if conditions (PY-25974) 2017-12-25 14:23:49 +03:00
Alexander Koshevoy f5237723cd PY-22979 Sending messages twice from IDE to main debugging process fixed
One of the consequences of the problem was skipping the next breakpoint occasionally after resuming the execution of a Python script because IDE sent `CMD_RUN` message twice to the main debugging script process.
2017-12-23 18:03:53 +03:00
Alexander Koshevoy b9d5f4b2a9 PY-27704 "Works currently only with OSProcessHandler" error fixed
`PythonRunConfiguration.emulateTerminal()` setting might stick from the Python Run configuration with a local interpreter used and running configuration with an interpreter later changed to the remote will fail with "Works currently only with OSProcessHandler" error.
2017-12-22 16:45:51 +03:00
Semyon Proshev a212addc37 Drop first parameter when getting instance parameters from __call__ 2017-12-22 16:20:10 +03:00
Semyon Proshev 2a89127f6d Compare ints as big ints in python package version comparator 2017-12-22 12:49:39 +03:00
Ilya.Kazakevich 9c64404925 PY-22578: Use working dir or project root as init. value for "Browse"
When TextFieldWithBrowseButton does not have correct value
it shows process cwd, which is not what user wants.

For Python run configurations one may use PyBrowseActionListener
that has fallback to AbstractPythonRunConfiguration workDir logic:
it uses workdir or project root or first module root etc.

There is also small refactoring to simplify FileChooserDescriptor
for Python
2017-12-22 03:07:07 +03:00
Sergey Malenkov a74f71c3c5 fix async tree test 2017-12-21 20:04:11 +03:00
Ekaterina Tuzova 05b0c625cf ConnectionRefusedError is not available in python2 2017-12-21 14:52:03 +03:00
Ekaterina Tuzova b36cbf1507 setFraction makes sense only for determinate progress indicator 2017-12-21 14:52:03 +03:00
Vladimir Krivosheev 19e2763f9a reduce usage of UsageViewSettings.getInstance()
Current implementation of show usages action is not good — it is bad to call loadState/getState. We should get rid of global usage view settings and use only provided one.
2017-12-21 12:21:02 +01:00
nik 6b5c6b78a0 platform: add UTM parameters to download URLs from About popup
Introduce IdeUrlTrackingParametersProvider service which is overriden in products to append necessary parameters, remove 'fromIDE' parameter from *ApplicationInfo.xml files.
(IDEA-CR-27675, IDEA-183268)
2017-12-21 13:50:19 +03:00
Ilya.Kazakevich 88901fd9fa PY-26447: Unify UI between all test runners and obey UX guide 2017-12-21 01:32:35 +03:00
Semyon Proshev 8678782c65 Ignore __getitem__ for Generic indirect inheritors (PY-27102) 2017-12-20 21:06:41 +03:00
Semyon Proshev 2b475bef7d Filter broken releases in package details (PY-27669) 2017-12-20 19:27:47 +03:00
Semyon Proshev fb1743b1f1 Don't forget to pass version in PyPackageManagementService.updatePackage (PY-27669) 2017-12-20 19:27:46 +03:00
Ilya.Kazakevich e6f5fd098e PY-27672: Use same names for tests and plain script 2017-12-20 18:20:35 +03:00
Elizaveta Shashkova 438202c658 Tests: build console runner via factory 2017-12-20 15:02:56 +03:00
Elizaveta Shashkova da24d335dc Tests: number of referrers depends on interpreter version, check for names instead 2017-12-20 14:27:02 +03:00
Vladimir Krivosheev ef76b2dd0d Merge remote-tracking branch 'origin/master' 2017-12-20 10:27:51 +01:00
Elizaveta Shashkova 0a4aef30d7 Tests: fix Show Referring Objects 2017-12-19 19:15:03 +03:00
Vladimir Krivosheev 3124f200c8 Merge remote-tracking branch 'origin/master' 2017-12-19 16:11:57 +01:00
Vladimir Krivosheev 616007c544 add NotNull 2017-12-19 13:34:08 +01:00
Elizaveta Shashkova 391a1d3575 Tests: execute breakpoint adding command in the same thread to be sure it's done before resume 2017-12-19 15:24:36 +03:00
Elizaveta Shashkova 5b78968625 Tests: revert env variable for defining list of Python test envs 2017-12-19 14:29:59 +03:00
Elizaveta Shashkova 90afc1f4c7 Tests: problems with extensions loading shouldn'd break debugger 2017-12-19 14:29:59 +03:00
Dmitry Trofimov dd829507e8 Add copyright starts year for PyCharm products (IDEA-182630) 2017-12-19 11:23:48 +01:00
Ilya.Kazakevich 46dec51f36 PY-27395: Cosmetic fixes
Number of spaces  + one line moved under "else"
2017-12-19 00:57:07 +03:00
Ilya.Kazakevich 804cedea65 PY-27180: Fixed IDEA-CR-27412: rename func, move to different package 2017-12-19 00:30:13 +03:00
Ilya.Kazakevich 3ebad657c3 PY-27180: Move methods to different modules according to IDEA-CR-27412 2017-12-19 00:30:12 +03:00