Commit Graph
22854 Commits
Author SHA1 Message Date
Dmitry Jemerovandintellij-monorepo-bot 18620631e0 Use FileTypeRegistry.isFileOfType() instead of file type equality checks (2)
GitOrigin-RevId: 9cf021142cdd4897aa47934563a85874617c710d
2019-06-13 16:24:34 +03:00
Andrey Lisinandintellij-monorepo-bot 3073a08f7e PY-36252 No more syntax warnings in debugger console
GitOrigin-RevId: 129a9f6c1ff35dea5ab65f5e36b67f43fcfff3fc
2019-06-13 16:24:03 +03:00
Andrey Lisinandintellij-monorepo-bot fea9e8b66e Merge pull request #1103 (https://github.com/JetBrains/intellij-community/pull/1103)
GitOrigin-RevId: cb001fb10456f79a141b0811037b21912d462fc7
2019-06-13 16:23:32 +03:00
Mikhail Golubevandintellij-monorepo-bot c83753100d PY-27749 Return tokens composing literal f-string parts in getStringLiteralElements()
instead of the whole STRING_LITERAL_EXPRESSION as it's expected to
return tokens instead of composite AST nodes, and, otherwise, real
expressions embedded inside f-strings get caught as string occurrences.

GitOrigin-RevId: 5625b7c3ba9aac37dc047c6d876df80de0a4ab31
2019-06-13 12:25:29 +03:00
Roman Shevchenkoandintellij-monorepo-bot c1a58ffd17 Cleanup (warnings; typos; formatting)
GitOrigin-RevId: 1cad4232ba1d1f58c522aa26019d245e2bf6832d
2019-06-13 03:32:53 +03:00
Vyacheslav Karpukhinandintellij-monorepo-bot e4effb75b9 Merge commit 'a85b798667f6a81500b21eda3c8d508a28cb969c' into slava/out_of_process_sim_and_dev
GitOrigin-RevId: ccfc7bb2ab1846fbf2c169f6262ffa412f3efb80
2019-06-13 03:32:21 +03:00
Dmitry Jemerovandintellij-monorepo-bot 7afa5ca0ac @NotNull for RunConfigurationExtension.updateJavaParameters()
GitOrigin-RevId: 5c472044f340aeaf67f3a81695814e70e3a125f0
2019-06-13 03:31:49 +03:00
Vyacheslav Karpukhinandintellij-monorepo-bot 8f41ae3227 Merge commit 'a85b798667f6a81500b21eda3c8d508a28cb969c' into egorzhdan/coverage
GitOrigin-RevId: 55b653eb620e8dc5642c467b0308e447a5ac32a7
2019-06-13 03:31:18 +03:00
Anna Kozlovaandintellij-monorepo-bot 91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdanandintellij-monorepo-bot 39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Dmitriy.Panovandintellij-monorepo-bot 06b2cabbe0 update *ApplicationInfo.xml: 'master' branch now targets 2019.3 versions
GitOrigin-RevId: 80624d0664078b984c78e11c078a4b6d95e992e2
2019-06-12 14:07:49 +03:00
Roman Shevchenkoandintellij-monorepo-bot 57e7cc56a0 [project] non-runtime code should not use directly use runtime classes
Reverting SystemInfo -> SystemInfoRt change

GitOrigin-RevId: a4a8c2b339e037cbf9209f9730c2ae30db485932
2019-06-11 17:48:13 +03:00
Dennis Ushakovandintellij-monorepo-bot 1093cb7279 open source textmate support
GitOrigin-RevId: 7616fa75678f55d7260129791edfabd1dcb627a4
2019-06-11 17:41:27 +03:00
Mikhail Golubevandintellij-monorepo-bot 513e5d6cda Set the flag for the test mode of generator even in test runner process
So that its functions behave identically regardless of how being invoked: either
by importing the module directly or launching generator in a separate process.

GitOrigin-RevId: a4e513a851faece624b8133cba2068a6b0e5ce82
2019-06-10 22:09:47 +03:00
Mikhail Golubevandintellij-monorepo-bot defc680bb1 Use first 10 characters of sha256 in cache tests to shorten paths in test data
Otherwise, it affects developers on Windows, especially if they cannot increase
maximum path length limit on older versions of OS.

GitOrigin-RevId: 785363fcbb0d39f41b53211e2cef156cb672e525
2019-06-10 22:09:16 +03:00
Mikhail Golubevandintellij-monorepo-bot 51fe36f4e4 Distinguish tests in different interpreters by prepending version to their name
GitOrigin-RevId: e549ee924bf1e43b6144be6cecd5d365bdcf5938
2019-06-10 20:00:19 +03:00
Mikhail Golubevandintellij-monorepo-bot e1dcfcbfe0 Display lengthy output of generator3.py inside corresponding test blocks
Make sure that all messages including those to a logger go through
the buffered sys.stdout.

GitOrigin-RevId: c785e0b2da1ec2f3c72764c388d275b782a5769d
2019-06-10 19:59:47 +03:00
Mikhail Golubevandintellij-monorepo-bot 975217fb4f Allow to run an arbitrary helpers test with __main__.py
GitOrigin-RevId: b2178dbcf44c141ace011dbf165f48cc819dbd0d
2019-06-10 19:59:17 +03:00
Mikhail Golubevandintellij-monorepo-bot 882ba4dcdc Fix metaclass declaration in a Python 3 specific test
GitOrigin-RevId: e73704b5cd261ce617676e5ed5b32f1545265f30
2019-06-10 19:58:46 +03:00
Mikhail Golubevandintellij-monorepo-bot f2cfa9ea75 Move tox.ini to the tests root to be able to run all tests with it
GitOrigin-RevId: 24c79d256dc106cdee1ae65917672e5d2dff95af
2019-06-10 19:58:15 +03:00
Mikhail Golubevandintellij-monorepo-bot 020ff1765a Add an entry point to discover and run helpers tests with teamcity-messages
Utilize it to run tests on TC instead of plain "-m unittest discover".

GitOrigin-RevId: e021c4f5dd01f5a5b9b0d989d6befd795e394499
2019-06-10 19:57:45 +03:00
Aleksey Rostovskiyandintellij-monorepo-bot d685842863 PY-36307 Configure running of helpers' pure Python tests on TeamCity: build.gradle for running all tests
GitOrigin-RevId: a8b4f699896a89578b9e857febb3f2f415ce3480
2019-06-10 19:57:14 +03:00
Mikhail Golubevandintellij-monorepo-bot 3c43302abc Remove an unused script and system-specific .python-version from tests
GitOrigin-RevId: e716c8234cd5dba4992c655efc5b9b773d56b018
2019-06-10 19:56:44 +03:00
Mikhail Golubevandintellij-monorepo-bot ae63a3111d Make sure that we use Python 2/3 compatible open in tests
GitOrigin-RevId: f0f345d0d6524ee37c779be4b7fff619a361c879
2019-06-10 19:56:13 +03:00
Mikhail Golubevandintellij-monorepo-bot 6c3718ffd8 Allow to run an arbitrary test in supported Python versions via tox
GitOrigin-RevId: 00f2d24320927db10c8299b80dfe999cb708339e
2019-06-10 19:55:42 +03:00
Mikhail Golubevandintellij-monorepo-bot 17ea40ed9f Merge a module skeleton with an existing package __init__.py in cache if any
We've already done it in the opposite direction turning existing
module skeletons into packages' __init__.py while generating skeletons
for submodules. It turned out, it can happen in reverse order as well:
for "pyexpat" builtin skeletons for its submodules are generated earlier
that "pyexpat" itself if processed.

GitOrigin-RevId: 76631e901bb2476c59a0fce61c55cccc4408a9a8
2019-06-10 19:55:11 +03:00
Mikhail Golubevandintellij-monorepo-bot 69e82e96be Simplify the condition for submodules
GitOrigin-RevId: 70f11914a4dc2fcd734c035ee898fba0f2e16c56
2019-06-10 19:54:40 +03:00
Mikhail Golubevandintellij-monorepo-bot 08ee26d2bc Remove confusing check on that module should have imports to process its submodules
Modules like built-in "expat" can import nothing.

GitOrigin-RevId: 7d0dfa939e3c8e855c97332b99d090b0e2b772dd
2019-06-10 19:54:10 +03:00
Mikhail Golubevandintellij-monorepo-bot bad4e0594d Leave some indication about what's going on with skeleton caching in logs
GitOrigin-RevId: 60ad652ed195bafaf44e95bbb7a6b4a7e64d60d5
2019-06-10 19:53:39 +03:00
Mikhail Golubevandintellij-monorepo-bot 53ae42e6e6 Properly update origin stamp in skeletons copied from the cache
It's necessary to detect their import group for Optimize Imports and
delete them on package removal afterwards.

GitOrigin-RevId: e0d7d6a25978e4fb195a5607c55ea6aeb5b0e082
2019-06-10 19:53:09 +03:00
Mikhail Golubevandintellij-monorepo-bot 0850af0c62 Test data skeletons contain origin stamps with relative paths
GitOrigin-RevId: 84ceaa719e62245ee59fc1ff3d5720451dca9045
2019-06-10 19:52:38 +03:00
Mikhail Golubevandintellij-monorepo-bot 8d6daccfeb Secure line ending in .py files used for caching tests
Otherwise, automatic line ending conversion might affect SHA 256 hashes
calculated in test data based on its content. It allowed to uniformly
compute it both for binary and text files.

GitOrigin-RevId: b41ff089235c178b182271a81a26146cff54e053
2019-06-10 19:52:07 +03:00
Mikhail Golubevandintellij-monorepo-bot d11d689e6b Explicitly exclude "tests" subdirectory of helpers from installers
GitOrigin-RevId: 3ac6a82e92fa0fa73e90a31ba0ec68c5b93e2397
2019-06-10 19:51:37 +03:00
Mikhail Golubevandintellij-monorepo-bot 28ef299ca9 Move tests for helpers in a dedicated module
GitOrigin-RevId: e444b3666720460e9f3675b62af06d0f77adf48f
2019-06-10 19:51:06 +03:00
Mikhail Golubevandintellij-monorepo-bot cd94db51c6 Update the docstring for ModuleRedeclarator constructor
GitOrigin-RevId: 0892f49294e81b4a470e19c7662c23ab0f5cb5eb
2019-06-10 19:50:35 +03:00
Mikhail Golubevandintellij-monorepo-bot eb4c31ba1f Include all supported Python versions in tox.ini, remove Cython dependency
GitOrigin-RevId: fc3199eba4fa828a1641442128c1400b94cac195
2019-06-10 19:50:04 +03:00
Mikhail Golubevandintellij-monorepo-bot ebccbac968 Move sha256() function to util_methods. Rename it to "sha256_digest"
GitOrigin-RevId: 43d30b5c0c6d962f086613e8b402778e40113e07
2019-06-10 19:49:33 +03:00
Mikhail Golubevandintellij-monorepo-bot 9ac2281e82 Disable version and modification checks for SDK skeletons by env flag
to avoid any inconsistencies in how versions are compared on Java and
Python sides. At the moment generator will be run only if existing SDK
skeletons are missing or considered invalid, only then cache are
actually taken into account. Generator itself doesn't check SDK
skeletons.

GitOrigin-RevId: ecdd61591464162936b90e3730a848d4dd30c9f6
2019-06-10 19:49:02 +03:00
Mikhail Golubevandintellij-monorepo-bot b09d58fc09 Take into account binary modification times in legacy .blacklist file
GitOrigin-RevId: ec55f89e3db4b8ba37442d44bdb9d2b31103ac09
2019-06-10 19:48:32 +03:00
Mikhail Golubevandintellij-monorepo-bot 886ddf7dee Don't access environment every time to compute value of a flag
GitOrigin-RevId: 2f46a97092e7365bd9791f82c52dcc22c50b38e8
2019-06-10 19:48:01 +03:00
Mikhail Golubevandintellij-monorepo-bot e805c345e2 Extract cache directory name in a constant
GitOrigin-RevId: 0b1fecbbae5032d34cb81c683154fdf5d1860987
2019-06-10 19:47:30 +03:00
Mikhail Golubevandintellij-monorepo-bot cf5a86d687 Don't override existing skeletons for builtin modules as they're being generated
GitOrigin-RevId: 8b90099754e25a3d678fcc631d35d81e17dc60e7
2019-06-10 19:46:59 +03:00
Mikhail Golubevandintellij-monorepo-bot 4c80b749c7 Add a clarifying comment about modification time adjustment
GitOrigin-RevId: e1227bc817aec4bfb4f420b7b763c7c6d0b07f06
2019-06-10 19:46:29 +03:00
Mikhail Golubevandintellij-monorepo-bot f098cb174e Reorder methods for finding generator version for readability
GitOrigin-RevId: 4e7eae97a5816a6d499766da826dd681d326c49e
2019-06-10 19:45:58 +03:00
Mikhail Golubevandintellij-monorepo-bot b5af5de934 Extract method for finding and reading generator version from skeleton header
GitOrigin-RevId: eed6b2ac14f7949e44ac00a88ec1c04c22e2c6f3
2019-06-10 19:45:28 +03:00
Mikhail Golubevandintellij-monorepo-bot 0099d23bfe Give patterns for various version lines clearer names
GitOrigin-RevId: 0cbfed082672108d1b1da0d51eba16b2595563e8
2019-06-10 19:44:57 +03:00
Mikhail Golubevandintellij-monorepo-bot 7fd082a459 Put post_copy_hook callback in a better place in util_methods.copy()
GitOrigin-RevId: 1a60510ad5fbfc6024efb1791dcc2339ec0b22d3
2019-06-10 19:44:26 +03:00
Mikhail Golubevandintellij-monorepo-bot 16afeb86f0 Wrap __file__ access in os.path.abspath first for safety
GitOrigin-RevId: 9aa9a787b92867bfb5ba63b5e2f323013d119f3d
2019-06-10 19:43:55 +03:00
Mikhail Golubevandintellij-monorepo-bot 41a2404011 Use that str.endswith() can accept a tuple of endings
GitOrigin-RevId: 786f145f1f68f3dbe77053d214115b3e7ae4b80e
2019-06-10 19:43:25 +03:00
Mikhail Golubevandintellij-monorepo-bot 96174f9a0f Remove computing of artificial hashes for binaries in test mode
GitOrigin-RevId: 7d3f61e173ded71f922bd64022397dadceda2281
2019-06-10 19:42:54 +03:00