Commit Graph

26154 Commits

Author SHA1 Message Date
andrey.matveev
aa5eb8dc43 PY-23500 Impl considering dependencies for introduce constant fix
(cherry picked from commit fe2adaeabbf1862c2f51a93df14995264a251cca)

IJ-MR-5221

GitOrigin-RevId: 08d0db849d31cdf7684a1b7a68d68072cc0d3686
2021-10-12 17:44:11 +00:00
Andrey Vlasovskikh
d3b2036ae1 PY-50536 [NPW] Made installFrameworkIfNeeded() public to re-use it in IntelliJ project generators
GitOrigin-RevId: 5a2e0dbba2c3ad0739cdbc1515d23e81121d49d2
2021-10-12 16:06:39 +00:00
Andrey Vlasovskikh
d7393c78f8 PY-50536 [NPW] Added an adapter to covert GeneratorNewProjectWizard into a DirectoryProjectGenerator for new project dialogs in minor IDEs
GitOrigin-RevId: f045b92226a36aac498b60f3da4981bed29db213
2021-10-12 16:06:36 +00:00
Andrey Vlasovskikh
ca954ebf09 PY-50536 [NPW] Added New Python project wizard for IntelliJ
GitOrigin-RevId: ef728d8ec331182f18ee19948d96dd7e3c89291f
2021-10-12 16:06:33 +00:00
Peter Gromov
edc74347d1 [grazie] join adjacent comment texts with \n, not a space (IDEA-279919: unpaired symbol false positives)
GitOrigin-RevId: 1c42e091f56391f7b3642701e3490c92d43ca8b9
2021-10-12 14:54:54 +00:00
Vladimir Lagunov
bb7215086a PyInterpreterVersionUtil: use progress indicator provided by run callee
GitOrigin-RevId: 914d694f3973e77581a0b952db356709f7e0a518
2021-10-12 08:25:10 +00:00
Vladimir Lagunov
02520a7251 PythonScripts: use correct path delimiters on targets
GitOrigin-RevId: 3ffc22c9b9b01647c7eab424a418578eba0bcbca
2021-10-12 08:25:07 +00:00
andrey.matveev
1156723b14 PY-33055 Fix move attribute to __init__ method quickfix
(cherry picked from commit cd6abb8ad8a01b22066bed85639242b03a85d1d0)

IJ-MR-8050

GitOrigin-RevId: f8a350835ce303c96b7f404263d8367242f4eaa6
2021-10-12 06:16:05 +00:00
Alexander Koshevoy
7856d63abc PY-51089 Select newly added interpreter in drop-down
GitOrigin-RevId: 679f28abc003a7f7d1e66cfa6871c96506803ff8
2021-10-11 16:56:52 +00:00
Semyon Proshev
c8ee65e8f3 Remove python 2.7 from prebuilt binary stubs and bundled shared indexes (PY-50829)
GitOrigin-RevId: 89d6e9c046748ede16b8d6fd6b708c2c2962101e
2021-10-11 14:08:29 +00:00
Alexandr Evstigneev
dc31def4ec Removed redundant method
IJ-CR-15114

GitOrigin-RevId: 366aa9b3d0bed860520bbd6b05ab0859f7d26df1
2021-10-11 13:54:24 +00:00
Semyon Proshev
b51d38a0cd Bump python versions used in building debug binaries (PY-50829)
GitOrigin-RevId: 351306cdaa6b937b609eb320f278438910de92dc
2021-10-11 13:31:28 +00:00
Alexander Koshevoy
27b559c419 Filter out incompatible targets for creating Python interpreter
F.e. filter out WSL target from Add Interpreter options in IDE started on macOS and Linux.

GitOrigin-RevId: 137180b37014ef341603569353e66e969f1879ee
2021-10-11 12:43:11 +00:00
Alexander Koshevoy
5c895e5073 Add @Nullable/@NotNull annotations to PythonSdkFlavor methods and its subclasses
GitOrigin-RevId: 9b18bf04d4330e4cc6b45760e3b99b171295a883
2021-10-11 11:37:31 +00:00
Alexander Koshevoy
65742824b4 Enable add Python interpreter actions while indexing is in progress
GitOrigin-RevId: 206ae2df30e01191274ed59fa67f08b9a871b2bc
2021-10-10 10:39:27 +00:00
Svetlana.Zemlyanskaya
662aacebd6 ML in SE: bundle plugin to PyCharm Community
GitOrigin-RevId: 47f87c4ca757493cbfff173c6c1f9228de181185
2021-10-09 12:12:10 +00:00
Ilya.Kazakevich
ed0b0ea640 Runnerw is deprecated, use WinP to kill process.
This is how it works by default now, so you don't need to do anything to enable it.

CLion also uses runnerw/mediator to create console window, but they will migrate to another solution soon

GitOrigin-RevId: 29a8c9564f20d51f72b47ec3f7d25bff00be272b
2021-10-08 21:48:42 +00:00
Vladimir Lagunov
f55d7a5fdc Fix IAE in PyAddCondaEnvPanel
GitOrigin-RevId: 2168f2f0067852928b79e788f5ba0c51b3f6636f
2021-10-08 17:59:03 +00:00
Vladimir Lagunov
700c30b652 Fix HelpersAwareLocalTargetEnvironmentRequest which was resetting the target environment request on every getter call.
GitOrigin-RevId: eda2d6890d15155187f5504a1ccc7d0463cc341d
2021-10-08 17:59:00 +00:00
Alexander Koshevoy
f9b6e4c069 PY-45900 Add new version of new interpreter UI to Python interpreter settings
GitOrigin-RevId: 8e3f0ec0ada1900796f82cabc53e60b5322c0fe0
2021-10-08 13:32:52 +00:00
Alexander Koshevoy
79e05f7fbe Extract utility method for collecting list of add interpreter actions
GitOrigin-RevId: 3129ef22e97c5ea926ba793c724fdcd329a8f2f4
2021-10-08 13:32:51 +00:00
Alexander Koshevoy
47017aae3c I18nize add interpreter actions text
GitOrigin-RevId: 482095b7952ae67ea82fa4bca324c44c200e2776
2021-10-08 13:32:49 +00:00
Alexander Koshevoy
453bd1fa45 Extract AddInterpreterOnTargetAction and AddLocalInterpreterAction from PySdkPopupFactory
GitOrigin-RevId: d715864650d2b5bfdcbfcf6e9cf608d28eb1c963
2021-10-08 13:32:48 +00:00
Mikhail Golubev
2d2ba280ac PY-50885 Fix CCE when resolving namespace package references in docstrings
GitOrigin-RevId: f8196bd41e5a0a880651fa08d3b6820594cf44b7
2021-10-08 13:00:29 +00:00
Konstantin Hudyakov
881df34fde IFT-296 Adapt onboarding tours to the new debugger UI
GitOrigin-RevId: 54cea8817ab2eac9f1396dfcb3b5b574cdfd4ae5
2021-10-08 09:11:55 +00:00
Nikolay Chashnikov
9f4e369671 [python] cleanup: delete unused deprecated API (IDEA-271555)
GitOrigin-RevId: 5d0a6f9c6dac057f638efec4b82b7946d5c14f37
2021-10-07 07:55:05 +00:00
Alexander Koshevoy
f5f66a62b9 Fix IllegalAccessError thrown by violating access control constraints
GitOrigin-RevId: f9fff0dc21b7fecb678f512168312b5894f12a21
2021-10-06 09:04:56 +00:00
Alexander Koshevoy
de0697f2ce Add @NotNull annotations for fields in PySkeletonGenerator and parameter in its constructor
GitOrigin-RevId: 719ef7bbd29f8d7c1dc6e8fc2a296e21782be408
2021-10-06 09:04:55 +00:00
Mikhail Golubev
3cfef388ae Stop at PyStatements when looking for a containing type hint
GitOrigin-RevId: d12b04002c8b0a495e59592fe8e60da863d4a3a5
2021-10-05 14:18:01 +00:00
Semyon Proshev
dcf4a22c8f Use java classes to run external process
Our process handler does not return execution by some reason.

GitOrigin-RevId: 1b7f4b3ab7d8ec3a94a614cc2d2e1b6803842c7c
2021-10-05 11:25:09 +00:00
Alexander Koshevoy
1b2e44eb3e Fix ClassCastException on trying to add interpreter path for target-based Python SDK
GitOrigin-RevId: 58d1fd96493631b880f876d77f242cfa08a2e127
2021-10-05 09:55:59 +00:00
Alexander Koshevoy
418100585c Pass project to PyRemotePathEditor directly
GitOrigin-RevId: 1ed8672330827fb5e86a73a3c13b6a0d450c1be6
2021-10-05 09:55:58 +00:00
Alexander Koshevoy
d05fc43610 Fix ClassCastException on opening Interpreter Paths dialog for target-based Python SDK
GitOrigin-RevId: 63954f1dfd38ca02fec219e7b6f41744058caf54
2021-10-04 22:03:22 +00:00
Alexander Koshevoy
c1e0a762cd Fill roots for target-based Python SDK
GitOrigin-RevId: 8346d421a2d7c64226d6bcf80f6d0edecaabca63
2021-10-04 22:03:20 +00:00
Alexander Koshevoy
880c2049e9 Fix NPE on updating sources for target-based Python SDK
GitOrigin-RevId: 7519ade852417eac7fbee504a58758f6da93d6ed
2021-10-04 22:03:18 +00:00
Pavel Bakhvalov
105415f0c0 [Grazie] Migration to LanguageTool 5.5
IJ-MR-14886

GitOrigin-RevId: 5a79f2eb654448f9c9e3ab780a9cd8afe37608cb
2021-10-04 19:28:54 +00:00
Alexander Koshevoy
e582beb3dc Implement path mapping logic for target-based Python interpreters
GitOrigin-RevId: e175ccec653df17d962d745d5054b8241638df1b
2021-10-04 18:18:24 +00:00
Mikhail Golubev
99c69b5485 Add Python 3.10 to the list of tox environments for the helpers tests
GitOrigin-RevId: 8fc6081d6418ab9010203c9da50dbc1fd53c8cda
2021-10-04 14:14:53 +00:00
Mikhail Golubev
7340667f7f PY-40486 Mark methods as static where applicable
GitOrigin-RevId: c5df75353b57124527dc8030bf998f63fe2e0f97
2021-10-04 14:14:50 +00:00
Mikhail Golubev
5ccf0cd5c7 PY-40486 Don't use argparse.FileType "encoding" argument missing in Python 2
We can't delegate decoding to json.load, however, because not all Python
versions support it. `json.load(s, encoding=...)` therefore is replaced with
`json.loads(s.decode(encoding=...))`. Also, there is a problem with non-ASCII
command line arguments, that need to be decoded explicitly in Python 2.

GitOrigin-RevId: 5b14972048615e3c738e5e86a339854ca9969c3b
2021-10-04 14:14:47 +00:00
Mikhail Golubev
30f7a307f3 PY-40486 Allow passing .state.json file as a path, not via stdin
It's both more reliable in case of large files and necessary to overcome
the problem with always enabled tty on SSH target. Namely, it echoes
the original .state.json back to stdout breaking handling of generator3
messages in the IDE.

GitOrigin-RevId: 374acbc395efb44559a1232be618721466065645
2021-10-04 14:14:44 +00:00
Mikhail Golubev
fde6d13756 PY-40486 Reformat generator3/__main__.py to fit in a new margin
GitOrigin-RevId: 1233b433fa4c15a91598448c02483e239d39d682
2021-10-04 14:14:42 +00:00
Mikhail Golubev
69808089a1 PY-40486 Remove "my" prefixes from field names in Kotlin classes
GitOrigin-RevId: ac08a947f56ff20ab255b8ef53daf0222dd3c051
2021-10-04 14:14:39 +00:00
Mikhail Golubev
ef4bb42c45 PY-40486 Reformat lengthy method calls in PyTargetsSkeletonGenerator.kt
GitOrigin-RevId: 3aaf8df57b75c173100deff625b1a087034ffbf5
2021-10-04 14:14:36 +00:00
Alexander Koshevoy
c82480ce58 PY-40486 Fixes after rebasing on master
Co-authored-by: Mikhail Golubev <mikhail.golubev@jetbrains.com>

GitOrigin-RevId: fbecb15b6720ae4c2c741404b063dcdb59d0c23e
2021-10-04 14:14:33 +00:00
Mikhail Golubev
863ee165e1 PY-40486 Explicitly upload a volume with .state.json for remote_sync.py for SSH target
As with DownloadVolumes, it doesn't happen automatically contrary to what's expected.

Co-authored-by: Alexander Koshevoy <alexander.koshevoy@jetbrains.com>

GitOrigin-RevId: 3e11a894770efdf89951370e02d85f143554f30f
2021-10-04 14:14:28 +00:00
Mikhail Golubev
494acf7c24 PY-40486 Update the test scenario when a file changes and re-synced
GitOrigin-RevId: fee8a8ac2910a8aff01a82f6f03f59a2fb006c65
2021-10-04 14:14:25 +00:00
Mikhail Golubev
70d86500ba PY-40486 Rename remote_sync.py tests for consistency
GitOrigin-RevId: 3e69b2daaee82927c3e57add774ed2766fd0f86d
2021-10-04 14:14:22 +00:00
Mikhail Golubev
467af27a45 PY-40486 Extract resolve_in_temp_dir() and resolve_in_test_data() in helpers tests
GitOrigin-RevId: 5446da5f0a8ff4b344e0db292b5259feaf7d7097
2021-10-04 14:14:19 +00:00
Mikhail Golubev
98519a2825 PY-40486 Update test_state_json_root_added scenario not to replace an old root
GitOrigin-RevId: b5b610e8b5de044b5be757968945c4e5ff20becd
2021-10-04 14:14:17 +00:00