Commit Graph
15603 Commits
Author SHA1 Message Date
Semyon Proshev 1a3094ed6d PY-19075 Fixed: PyCharm 2016.1.1 freezes immediately after the update
SQL injection heavy cases tests have been added, limit injected string literal with 10K symbols
2016-04-08 16:55:08 +03:00
Mikhail Golubev 101c03829f PY-18877 PEP 484 update: function type comments can be on the same line as function header
I actually reverted the old fix by @traff where he removed this test
from PyMissingTypeHintsInspectionTest (but not its test data surprisingly).
2016-04-08 14:48:13 +03:00
Mikhail Golubev 208bbc51be PythonCopyPasteProcessor#findEmptyStatementListNearby() checks that statement list is actually empty 2016-04-08 14:48:12 +03:00
Dmitry Trofimov 1ce7e238d9 Restore horizontal scrolling as PY-18440 is fixed properly by IDEA-CR-9694 2016-04-07 21:25:34 +02:00
Valentina Kiryushkina b8268bee09 Extract separate test function for #PY-18725 and #PY-18954 2016-04-07 20:48:17 +03:00
Valentina Kiryushkina cdc22c48e3 Fix false positive in PyStringFormatInspection for keyword substitution in % string with dictionary argument #PY-18725 2016-04-07 20:48:17 +03:00
Valentina Kiryushkina 6f3a0596f4 Fix false positive in PyStringFormatInspection for positional substitution in % string with dictionary argument #PY-18954 2016-04-07 20:48:16 +03:00
Vladimir.Orlov 923b2859fc Merge remote-tracking branch 'origin/master' 2016-04-07 19:58:03 +03:00
Vladimir.Orlov d498f32d69 EDU: updated path to win jdk. 2016-04-07 19:56:26 +03:00
Valentina Kiryushkina 508ac21f3c Fix PY-19096 In Inspection "PEP 8 Naming convention violation" don't show warning for CamelCase named Context Manager classes 2016-04-07 19:21:32 +03:00
Semyon Proshev 5c7d96e49e PY-19075 Fixed: PyCharm 2016.1.1 freezes immediately after the update
The problem was in SQL regexps, in comments matching. It runs exponential on the strings like "/**//**//**//**//**//**/"
2016-04-07 18:21:27 +03:00
Vladimir.Orlov 523a2e124b JB jdk for windows by default. 2016-04-07 18:12:41 +03:00
Anton Makeev c92133bd13 Merge remote-tracking branch 'origin/master' 2016-04-07 15:44:34 +02:00
Semyon Proshev cf8a80f3c0 PY-19075 Fixed: PyCharm 2016.1.1 freezes immediately after the update
The problem was in SQL regexps, in comments matching. It runs exponential on the strings like "-----------------------------"
2016-04-07 16:29:10 +03:00
Alexander Koshevoy 7b65d5b30c PyDev advertising removed from logs (IDEA-CR-9560) 2016-04-07 12:36:27 +03:00
Alexander Koshevoy 39a929e113 PyDev advertising removed from logs (IDEA-CR-9560) 2016-04-07 12:16:44 +03:00
Anton Makeev 8ef1d93cc4 Merge branch 'master' into amakeev/build-number 2016-04-07 10:58:23 +02:00
Elizaveta Shashkova 1d6e6c7ec1 Eventlet monkey patching breaks debugger (PY-18929)
Remove condition about gevent installed on interpreter. There is no need for such check anymore, because multithreading debugging was fixed (PY-18823), but it breaks support for other patching libraries such as eventlet.
2016-04-06 15:01:06 +03:00
Vladimir.Orlov 7a1f722adf Merge remote-tracking branch 'origin/master' 2016-04-06 08:07:10 +03:00
Elizaveta Shashkova ce694b8e1d Pydev debugger fails when passed interpreter arguments or environment variable (PY-9033)
On windows we should remove brackets from some arguments in order to find interpreter options and put them in the correct place when  patching args for the new python process.
2016-04-05 20:15:31 +03:00
Vladimir.Orlov 5e81fde2d8 removed obsoleted install-over from ApplicationInfo.xml files and build scripts. 2016-04-05 17:42:48 +03:00
Mikhail Golubev e3c9f28909 PY-18522 Detection of empty parent block takes comments into account 2016-04-05 17:04:19 +03:00
Mikhail Golubev 5744c4792c PY-18522 Better detection of empty statement blocks near whitespace
Now it's able to find not only empty function/class bodies but also
empty blocks of other compound statements such as conditional
branches, loops, try/except/finally parts etc.
2016-04-05 17:04:18 +03:00
Mikhail Golubev 9a6cf9f077 PY-19064 PY-18522 Detection of ambiguous parent block on text pasting
If pasted fragment can belong to several statements lists depending on
its indentation we let user to choose by using indentation before the
caret. However it's not allowed to insert new text so that it breaks
existing block structure, i.e. we constrain minimum and maximum
possible indentation.
2016-04-05 17:04:18 +03:00
Mikhail Golubev 0701389294 PY-18522 First indent of statement list can be used as an anchor for PyIndentUtil#getElementIndent
Now first and consecutive indents of a statement list are treated
equally by the method.

Also getExpectedIndent was renamed into getExpectedBlockIndent and
made part of the implementation. It actually should accept only
statement lists, because for other element it didn't work as expected
previously.
2016-04-05 17:04:18 +03:00
Mikhail Golubev 793a8a4b77 PY-18522 Reuse methods from PyIndentUtil in PythonCopyPasteProcessor 2016-04-05 17:04:17 +03:00
Mikhail Golubev 3d6d284dab PY-18522 Cleanup in PythonCopyPasteProcessor 2016-04-05 17:04:17 +03:00
Liana Bakradze c5668806e3 EDU-444 Task Description wraps lines too short 2016-04-05 13:01:27 +03:00
Mikhail Golubev 77425f305d PY-18522 PY-19053 Paste raw text if there are non whitespace symbols before caret on line
This previously existed check was lost after the recent fixes for
PY-18522. It also caused failures of PyCopyPasteTest.testEmpty(), so
I reverted previous fix for the test.
2016-04-04 21:52:11 +03:00
Elizaveta Shashkova e29a0ef3b0 Debugger hangs on Jython with "Attach to subprocess" option enabled (PY-18742)
We shouldn't update sys.modules for the main thread, cause it leads to the second importing 'threading' module, and the new instance of main thread is created. In this case we lose thread id and thread additional info, so it totally breaks the debugger.
2016-04-04 20:31:16 +03:00
Vladimir.Orlov f2e4c265d7 python 2.7.11 and 3.5.1 2016-04-04 16:13:20 +03:00
Vladimir Krivosheev d1d0e3da58 IDEA-CR-8978 don't use deprecated method resume 2016-04-04 13:41:26 +02:00
Mikhail Golubev 6cfda94808 PY-18522 Don't paste text before the line if it's only spaces and caret is at the end of line 2016-04-04 12:51:13 +03:00
Elizaveta Shashkova 4e9d5f9836 Debugger doesn't stop on breakpoints in threads if "Gevent compatible" option is set in Python debugger settings (PY-18823)
Patch user's thread and threading modules and avoid deadlock while importing global debugger
2016-03-31 20:03:58 +03:00
Mikhail Golubev 40f9d95817 PY-18522 Always try to infer expected indent when pasting into empty definition
Use indent based on caret position only when we're pasting neither
inside existing statement list (e.g. in the middle of a function), nor
inside empty statement list
2016-03-31 19:43:00 +03:00
Mikhail Golubev 511fabfcf6 Several minor improvements in API and javadoc of PyIndentUtil class 2016-03-31 19:43:00 +03:00
Anton Makeev 4a9555742c Platform: build numbers: updated ApplicationInfo.xmls 2016-03-31 18:37:19 +02:00
Ekaterina Tuzova 92b0899546 PY-18405 Version of devpi package is always latest 2016-03-31 18:31:44 +03:00
Ekaterina Tuzova 88ca76cdc8 show hidden releases for pypi packages 2016-03-31 18:31:43 +03:00
Ekaterina Tuzova 6f4a31f100 PY-18404 Not able to install package from devpi repo with old version 2016-03-31 18:31:43 +03:00
Ekaterina Tuzova d416cd9438 PY-18395 Install button isn't available if only devpi repo exists 2016-03-31 18:31:40 +03:00
Andrey Vlasovskikh 3ab9e67d6c Fixed settings folder name for PyCharm 2016.1.1 2016-03-31 17:09:22 +03:00
Elizaveta Shashkova 6dcbea6fa1 Fix behaviour with Python3 (PY-17987) 2016-03-30 18:59:43 +03:00
Mikhail Golubev 6c78cf08ab PY-18486 Better solution: on enter generate content for empty docstrings too
I reverted previously modified test data in PyEditingTest, since
this fix doesn't affect top-level string literals treated as module
docstrings. They are processed in BaseQuoteHandler as earlier.
2016-03-30 15:47:28 +03:00
Valentina Kiryushkina 4fafd9f058 Fixes according to review IDEA-CR-9573
* Fix problems found in review and add tests
* Fix problems with positional substitution resolving, where arguments consist of positional and packed arguments and add tests
* Remove doc string check
2016-03-29 23:07:40 +03:00
Valentina Kiryushkina 1edb242fdd In percent string resolve positional substitution on first position to non-tuple left part expression #PY-18115 2016-03-29 23:07:40 +03:00
Valentina Kiryushkina 0270c059c5 Fix highlighting substitutions in formatted strings #PY-18859, #PY-18861 and update tests 2016-03-29 23:07:39 +03:00
Valentina Kiryushkina 82180b88e2 Fix false positives #PY-18769, #PY-18752, #PY-18837, #PY-18115 2016-03-29 23:07:39 +03:00
Elizaveta Shashkova 30fda77bb7 PyCharm debugger breaks django form validation (PY-14578)
Create a separate resolver for Django forms in order to prevent calling self.errors because it is a property and has side effects. Also We shouldn't call str(), because it also has side effects.
2016-03-29 20:47:27 +03:00
Mikhail Golubev 6809e81440 PY-18486 Don't auto close quotes that start docstring, so PythonEnterHandler could complete it 2016-03-29 17:13:10 +03:00