Commit Graph

23862 Commits

Author SHA1 Message Date
Dmitry.Krasilschikov
38f6f13df8 LAB-62 get rid of static *Bundle usages: more fields
GitOrigin-RevId: 69ded152ad5996ae07c45dc4fd6ff20224d25572
2020-01-01 11:03:11 +00:00
Dmitry.Krasilschikov
8718df4f50 LAB-62 get rid of static *Bundle usages: more fields with readable name
GitOrigin-RevId: a57e5216970e96c9e4ff5139ca8f5566835ca2e6
2019-12-31 17:02:19 +00:00
Dmitry.Krasilschikov
81be21f0e8 LAB-62 get rid of static *Bundle usages: more "bundle" fields with readable name
GitOrigin-RevId: 6c3695d146c1a01a904d3231903cf19ceb1f743c
2019-12-31 16:31:26 +00:00
Dmitry.Krasilschikov
925b542280 LAB-62 get rid of static *Bundle usages: more fields - replace getNAME() with more readable getName()
GitOrigin-RevId: 21134371a0a08ffc5f0023fa6551142631625d8b
2019-12-31 16:31:26 +00:00
Dmitry.Krasilschikov
3d68526667 LAB-62 get rid of static *Bundle usages: replace getNAME() with more readable getName()
GitOrigin-RevId: 9fd617248e5b405d2094ce949d1810555e0bf814
2019-12-31 16:31:26 +00:00
Semyon Proshev
f7a9d32840 Better warning message instead of Name 'variable' can be not defined (PY-39866)
GitOrigin-RevId: 68ab0989afd535a0f0958028290a021a21794663
2019-12-31 12:33:54 +00:00
Ilya.Kazakevich
4508e0de9d PY-31836: Use pytest parameter as test name, not keyword.
The correct way to use parameters is to add them to the test name.
"-k" is also works in some cases, but it is not official nor stable.

* pytest runner reports "testname[param]" as metainfo
* we fetch param
* add "parameters" field to the pytest
* glue it with test name

GitOrigin-RevId: 56c5d93fd93a12ba5742b21af51ea04823a9d8f7
2019-12-30 13:34:33 +00:00
Dmitry.Krasilschikov
443cff010d LAB-62 get rid of static *Bundle usages: inline third party plugins used fields with default values
GitOrigin-RevId: fd3877a97f8a075ec3e1ff2ecc7ba61a1a61cf6f
2019-12-29 19:03:50 +00:00
Dmitry.Krasilschikov
6676ae39cc LAB-62 get rid of static *Bundle usages: public static final fields
replace `public static final String X = *Bundle.message(...)` with
```public static String getX() {
    return *Bundle.message(...)
}
```

Also, let's mark fields that are used in third party plugins as `@deprecated`

GitOrigin-RevId: b9d42527ed14126b84dca91b837064c306c03177
2019-12-29 19:03:50 +00:00
Dmitry.Krasilschikov
f0df6b34fe LAB-62 get rid of static *Bundle usages: public static fields
replace `public static String X = *Bundle.message(...)` with
```public static String getX() {
    return *Bundle.message(...)
}
```

GitOrigin-RevId: cb9d31ce0cc938d794867c9467083c9968d8cbd5
2019-12-29 19:03:50 +00:00
Dmitry.Krasilschikov
f0a9c5f83b LAB-62 get rid of static *Bundle usages: more private static fields
replace `private static String X = *Bundle.message(...)` with
```protected static String getX() {
    return *Bundle.message(...)
}
```

GitOrigin-RevId: 5de111f477a214e87d22226974c3fdf0e10fcbb0
2019-12-29 19:03:50 +00:00
Dmitry.Krasilschikov
2004fcac98 LAB-62 get rid of static *Bundle usages: private static fields
replace `private static String X = *Bundle.message(...)` with
```private static String getX() {
    return *Bundle.message(...)
}
```

GitOrigin-RevId: f7562fdda0b52c4a4b04c17b7bb43aa17310e20d
2019-12-29 19:03:50 +00:00
Bas Leijdekkers
7b5e596c1a use inspection name from bundle
GitOrigin-RevId: eb5415071ec90aee3ead59cc792fcc460e882b25
2019-12-29 09:38:12 +00:00
andrey.matveev
ae33c5c61b [PY-39742] Set model with considering PythonCompletionWeigher
GitOrigin-RevId: 4d9b49c59a1bf9d1ffa0ef79288828b22c722fed
2019-12-27 17:35:01 +00:00
Mikhail Golubev
1f57e524db PY-39532 Implement RestFileViewProvider.getContentElementType mimicking its createFile
It was forgotten during implementation of IDEA-106449. Without this method
we tried to parse the whole injected reStructuredText content as a valid
Python file not surprisingly containing tons of syntax errors and then
run all the normal Python inspection over it.

GitOrigin-RevId: ed12c9c6ead90ebb0b5a083126410b2c8cbff233
2019-12-27 15:40:08 +00:00
Lada Gagina
16be4d1594 IDEA-CR-56349: PY-39404 PY-39594 Fix type inference for TypedDict types
* For cases when a TypedDict was defined in a separate file
* Fix race when typing near inherited TypedDict's field

GitOrigin-RevId: e19792592c744e9c5a7a7c00af847296efb11d0c
2019-12-27 10:34:55 +00:00
Sergey Stupin
5b0838c129 all PyClass references are found with base implementation. RenamePyClassProcessor is not needed anymore
GitOrigin-RevId: 6f5834b28ad56d9f9bbc3ddc004eb796cd35be7a
2019-12-27 10:34:55 +00:00
Semyon Proshev
74d29abf8d Don't run auto-configuration on a project with .idea (PY-39541)
GitOrigin-RevId: 7f455a4abfb71647080da37eb039eeda83bb21f1
2019-12-26 12:36:03 +00:00
Elizaveta Shashkova
89fab4571b PY-26367 Disable Pep8 inside code fragments
GitOrigin-RevId: d3262b71c18e420efc186c21a90fe1f0d56999bd
2019-12-25 11:37:26 +00:00
Semyon Proshev
0d0afcfd80 Expire notification on opening interpreters popup (PY-39541)
GitOrigin-RevId: 3e9f3fb3dbcb8feb9c6dbf034d00bd3449050525
2019-12-24 17:07:58 +00:00
Sergey Simonchik
e21607dc6e introduce PackageManagementService.getID for reported usage data to replace hardcoded class names (IDEA-CR-56765)
GitOrigin-RevId: a283677e4afaaf66633ef05c2bf0c71ccdf850fa
2019-12-24 14:42:58 +00:00
andrey.matveev
937e9b68ea [PY-39742] Add model without position feature
GitOrigin-RevId: 01db932cad1466d449658163aec834cc6c7bb0c1
2019-12-24 14:42:58 +00:00
Ilya.Kazakevich
820a665815 PY-29154: Return test runner exit code
When test runner returns code > 0 (because of test failure), our runner must do the same.

See issue description for the reason

GitOrigin-RevId: 231c9ab337e80f70872bf6e6f61a397599f18e26
2019-12-23 20:53:08 +00:00
Ilya.Kazakevich
8aa373bfa5 PY-39484: Do not add Python message filter to anything but python run configs.
It is safer to add python filter explicitly, not to add it to any other configuration.

And that is already done (see PythonTracebackFilter)

GitOrigin-RevId: 883972d1694eba9b3fe7602b5348ff1022b80efc
2019-12-23 20:53:08 +00:00
Semyon Proshev
882df3d911 Add notification about auto-configured interpreter (PY-39541)
GitOrigin-RevId: 1decdf12e9a3ddae6e6c36622da353f2e6fb583f
2019-12-23 17:01:57 +00:00
Sergey Ignatov
9432eb9178 py bundle
GitOrigin-RevId: f881a433069400ce5e23bd4b179120cd7497bbef
2019-12-23 15:07:19 +00:00
Semyon Proshev
b369994381 No more disregard for unresolved member on None (PY-39078)
GitOrigin-RevId: aa2cb4908b8472905400e11a2f12f3e67556abeb
2019-12-23 15:07:19 +00:00
Semyon Proshev
468aad6048 Configure Python interpreter in background (PY-39541)
GitOrigin-RevId: b9a48a2a89320715cd3c3524269af7eea080487e
2019-12-23 13:08:30 +00:00
andrey.matveev
d66e0eec0e PY-10184 Impl hasattr support
GitOrigin-RevId: e5826372ddfe233656097da774d978c57ee54937
2019-12-23 13:08:30 +00:00
Sergey Ignatov
23cfc5c2e4 python bundle
GitOrigin-RevId: e80fd24be0e55e6b26aa00ab333df441b8edfaaf
2019-12-21 18:09:08 +00:00
Andrey Vlasovskikh
7b2d0ce401 Moved PyTypedDictInspection.html from PyCharm IDE resources to the Python Community plugin resources
Python inspections are defined in the Python Community plugin, not in the PyCharm IDE, since they have
to be available e.g. in IntelliJ with Python Community plugin installed.

GitOrigin-RevId: e2e2af5bade75e93a22cb07bfa37b7fbf49b0596
2019-12-20 14:44:33 +00:00
Alexander Koshevoy
3e81c18ec6 PY-39011 Fix loss of Path Mappings field in Project Interpreter settings
The logic of `PyActiveSdkConfigurable` had been slightly changed previously. This resulted in the loss of the event of setting initial SDK in "Project Interpreter" combo box.

GitOrigin-RevId: 4a435344f36f8f8a8a85bccd582746175a272656
2019-12-20 12:32:37 +00:00
andrey.matveev
701660837c PY-39742 Change model version with before_rerank_order feature
GitOrigin-RevId: 47278c34506c815c3bff03b9ef290793d2100227
2019-12-20 12:08:35 +00:00
andrey.matveev
7eae287320 PY-39742 Disable ml completion by default
GitOrigin-RevId: 44aca73bec4e39f7a10df085a86a4d2f20671b8a
2019-12-20 12:08:35 +00:00
andrey.matveev
024cdece96 PY-39742 Turn on ml completion by default
GitOrigin-RevId: 275f9b984e674473b8bc4f37f487f196d213b4a2
2019-12-20 12:08:35 +00:00
Semyon Proshev
138392e594 Reuse interpreters popup in quickfix (PY-39694)
GitOrigin-RevId: acafc9fbdf73eb52482fb79cae891f5c049b3a7b
2019-12-20 11:35:51 +00:00
Elizaveta Shashkova
dcfe526ea4 PY-39736 Make "Execute selection" and "Execute cell" available during indexing
GitOrigin-RevId: 5fd7b13de31780236b6ad8686b7623f5e0ccf886
2019-12-20 11:35:51 +00:00
Sergey Ignatov
ef0bfae0bf rest bundle
GitOrigin-RevId: 1e2017f3b1e6ca2e8320eec404797955627ea5ce
2019-12-19 22:06:01 +00:00
Vladimir Krivosheev
2422a15654 deprecate getContentManager — use RunContentManager.getInstance() directly
GitOrigin-RevId: da81162abe382947ee2b159774bb2efd9aeeda01
2019-12-19 20:02:35 +00:00
Elizaveta Shashkova
9670bc3457 PY-27257 Reuse Console tool window in Python plugin and add action to make Python Console available before tool window registered
If Console tool window was created once, it's available as action in Python plugin. But before creation it's impossible to start Python Console during debug session.

GitOrigin-RevId: cfb9ac4450246f067d70626b139d8830166d68f1
2019-12-19 17:35:54 +00:00
Andrey Lisin
a22effa122 PY-38347 Fix frame evaluator opcodes to lines mapping procedure
The previous version of the procedure could miss breakpoints when extra `EXTENDED_ARG` instructions are added before the injected code. This happened because in some corner cases after updating the opcodes to lines mapping an `EXTENDED_ARG` instruction could land as the last instruction in a line, and the instruction which argument it extends - on another. This lead to the situation when it was impossible to detect that we have hit the next line. These changes also add the ability to trace opcodes when the `PYDEVD_TRACE_OPCODES` environment variable is set to `True` (available only for Cython) to ease the debugging of such cases in the future.

(cherry picked from commit 77399d3b7b2b9bc6aac1b85d59ae305500cb6ecb)

GitOrigin-RevId: 105bf9d3d2cc51a940b03b1cb11c07e97074048b
2019-12-19 14:08:32 +00:00
Ilya.Kazakevich
70f83ef44c Test broken because of PY-39656
GitOrigin-RevId: 0ebc631dd4748a7583c9653db2dc77b2cb419d6c
2019-12-18 20:02:55 +00:00
Ilya.Kazakevich
3348ea74ef Flaky test goes to staging
GitOrigin-RevId: 47045f1686bcde1fd8d32c5e212704b0c18791f0
2019-12-18 18:12:51 +00:00
Ilya.Kazakevich
f8544fb8ee PY-26062, PY-38540, PY-25935: Various Django performance improvements.
* Do not provide references for "open" in Django (already done by another code)
* Do not use full resolve for class and functions names. In most cases "resolve", "ManyToMany" and "ModelForm" are imported as-is, not with aliases.

GitOrigin-RevId: 8a0803e6b19482654c91186aa9754ea3d91da282
2019-12-18 17:32:32 +00:00
Nikolay.Tropin
20e3cc86ad fix raw type in all implementations of RunProfileState.execute
GitOrigin-RevId: 4ffa418429f3f874af75564706c2db2e201da984
2019-12-18 15:34:12 +00:00
Mikhail Golubev
abcc326dc7 Allow to change multiprocessing start method via environment for testing purposes
GitOrigin-RevId: 2e0cb4c240f02a600b37e7511bdb6903a6708d1d
2019-12-18 11:08:59 +00:00
Mikhail Golubev
e8d5bd4376 Properly re-configure logging in a subprocess during skeleton generation
On platforms where "fork" is not available or not used by multiprocessing
root logger configuration is not automatically inherited and, thus, we loose
messages sent by worker processes. So as not to depend on particular
implementation of the module, e.g. by checking sys.platform or
multiprocessing.get_start_method(), we now explicitly reset and setup
logging anew in every created process.

GitOrigin-RevId: 572b5a1a77346f46421a6dd1e0ed0b1ed9c4ca6f
2019-12-18 11:08:59 +00:00
Alexander Doroshko
7d67af8bd8 add default implementation to DirectoryIndexExcludePolicy.getExcludeRootsForModule()
GitOrigin-RevId: da4fecfc5a43ea29043bcf53968630266ea4f5c2
2019-12-18 10:32:28 +00:00
Andrey Vlasovskikh
8600468ad7 Show the Python interpreter widget in all IDEs for which Python is a primary language
GitOrigin-RevId: ef0bb2a32b40751ac9e7a533fe6a1f874eda8299
2019-12-17 19:03:57 +00:00
Andrey Vlasovskikh
42843b151f Removed unused python-core-ide.xml
The components registered in it are included via pycharm-core.xml anyway.

GitOrigin-RevId: 210cc113414f277b4d13e23e1add02d12f03c36b
2019-12-17 19:03:57 +00:00