Commit Graph

15673 Commits

Author SHA1 Message Date
Alexander Koshevoy
55086726aa PY-52591 Fix "Couldn't apply path mapping to the remote file" while debugging Python script on local interpreter
GitOrigin-RevId: 79fc016b5b7f98b07d0b588fdf17ede204814348
2022-01-18 15:51:59 +00:00
Alexander Koshevoy
df161467c0 PY-52292 Pass parameters from Python run configuration to script
GitOrigin-RevId: 552b66ed874379430e0ce81709ce72ff833465ac
2022-01-18 12:58:30 +00:00
Vladimir Krivosheev
5d15210c4b cleanup
GitOrigin-RevId: 50e365d6de18011536dd13e1425c1360505c472a
2022-01-18 07:47:09 +00:00
Alexander Koshevoy
e056c49199 Turn on "python.use.targets.api" registry key by default
GitOrigin-RevId: c65db9bd686f85045aa2e6edefa8d82d76daa40b
2022-01-17 21:44:09 +00:00
Alexander Koshevoy
01bc35daac Switch "python.use.targets.api" from deprecated <experimentalFeature/> to <registryKey/>
GitOrigin-RevId: 87fae5dfb1b5e0bf334a25823d1ae1bb428e454d
2022-01-17 21:44:07 +00:00
Alexander Koshevoy
10afe7343b Fix pydev debugger warning "trying to add breakpoint to file that does not exist" during debug session on WSL target
GitOrigin-RevId: 4dc31e834c4198193fbcdf7d654b76cb000fc064
2022-01-17 21:18:11 +00:00
Alexander Koshevoy
8558d956f9 Put Python debugger dispatcher code under "python.debugger.use.dispatcher" registry flag and disable it by default
Also switch pydevd to `--multiprocess` mode instead of `--multiproc` when "python.debugger.use.dispatcher" flag is disabled.

GitOrigin-RevId: d621ecf227fb81e362ce2a87a2bd313a8baa969e
2022-01-17 19:51:38 +00:00
Alexander Koshevoy
070942f2fc Fix NPE in PythonConsoleTest.testInterruptAsync
GitOrigin-RevId: dc239dd00b3e2a4112873a3162af6ddc43bf656f
2022-01-15 11:47:59 +00:00
Nikolay Chashnikov
46cc1d78e4 [python] cleanup: get rid of unused deprecated API (IDEA-281036)
GitOrigin-RevId: 3ce01c6689410cc147b8b552a1354e7996a6d0f9
2022-01-13 20:14:22 +00:00
andrey.matveev
07ebb19aee PY-33843 Fix problem with extracting constant from comprehension
(cherry picked from commit 72bb8e523471c9922ae3d8f95f7fa9ce1fe0009d)

IJ-MR-18836

GitOrigin-RevId: dadb7cf489a0501b834cff7e10979fab2c8ae8cd
2022-01-13 07:40:36 +00:00
Elizaveta Shashkova
940c22b47d Fix project leak
GitOrigin-RevId: c06974052554255aeafc1b81a2655f88b03a1b16
2022-01-11 15:01:31 +00:00
Dmitry.Krasilschikov
617b7f6dae IJ-CR-19270 NPW IDEA-285493 fixed order for languages - refactoring after review
GitOrigin-RevId: 65716c49d2cdce05793db4ae5bde711e3eda8cf8
2022-01-10 17:32:16 +00:00
Alexander Koshevoy
7f0fb04181 PY-52280 Ensure that project directory is delivered to target
GitOrigin-RevId: 729e91f87b728584732af9fce9530d600732af8f
2022-01-10 10:30:58 +00:00
Daniil Kalinin
e7421b36cf PY-12106 Add newline when moving function to new file
Update all the /refactoring/move test sources according to the new rule - an empty line is always added after the move

(cherry picked from commit c00d1a499fb9849650eb102dd8bb5380165a1eee)

IJ-CR-17177

GitOrigin-RevId: d436af21c20ddd08b78886a333e6f98c71bcc19b
2022-01-10 09:40:19 +00:00
Dmitry.Krasilschikov
4841ada34b NPW IDEA-285493 fixed order for languages
GitOrigin-RevId: 06ddf0e815e4b9a1dfaf9d3fd81fc1db5419e46b
2022-01-03 17:02:39 +00:00
Andrey Vokin
955e200932 [DataSpell] handle no sdk when create workspace from welcome screen
GitOrigin-RevId: 725b8f1495af00f6bf1de976e76b559542cec24a
2021-12-30 10:17:15 +00:00
Ilyas Selimov
257a85eb16 zero-tolerance fix
GitOrigin-RevId: 046c4e02b74768e4c0b49fbd9be455ce65a5931e
2021-12-27 05:40:02 +00:00
Vladimir Krivosheev
076235fe3c performance - ensure that JBUI class is not loaded as part of LaF initialization
GitOrigin-RevId: cca4646f8861df72ed419ecacf69375f78ead368
2021-12-26 19:51:00 +00:00
Vladimir Krivosheev
c5ece48381 do not use NotNullProducer (use Supplier from JDK instead)
GitOrigin-RevId: 238676678444ece26589c24f5d80786ce085b014
2021-12-26 19:50:57 +00:00
Dmitry.Krasilschikov
4fa10db376 IDEA-285038 New Project Wizard: "add language" action refactoring
GitOrigin-RevId: 0cfc5629dbbaa8c42ddb18e61da36be35254bd96
2021-12-26 15:16:58 +00:00
Semyon Proshev
aa5acb75c9 Ability to install python from PyCharm on macOS (PY-51686)
GitOrigin-RevId: 53ba94d3de3844fb5b58822576e4a54fe060d53b
2021-12-22 10:59:14 +00:00
Mikhail Golubev
0a4d8f6d26 Use a helper method in PyTrailingBlankLinesPostFormatProcessor
GitOrigin-RevId: 01c2589284409b9c514bc76786919b11a6591156
2021-12-21 15:19:15 +00:00
Dmitry.Krasilschikov
ad1b23ca1b IDEA-285038 New Project Wizard: add a "+" button to install additional languages
GitOrigin-RevId: e0da32ec19c28ed9746162d521577a543935693b
2021-12-21 14:49:50 +00:00
Gregory.Shrago
038864163d do not use template presentation to store enabled and visible flags
See `Presentation#assertNotTemplatePresentation` and IDEA-284279.
Most usages are already broken due to ActionUpdater defaults.

GitOrigin-RevId: 9e423c4460f540b4df31e1dc0e140068c5e5033f
2021-12-18 12:24:07 +00:00
Vladimir Krivosheev
f0e6467776 ExtensionNotApplicableException - stacktrace in unit test mode
GitOrigin-RevId: 4f847b91a895fcd5eee533af6932eec2fa6c29de
2021-12-17 18:30:45 +00:00
Alexander Koshevoy
0fe2a1ffbd PY-51897 Restore "Docker container settings" field for Run Configuration based on Docker target interpreter
GitOrigin-RevId: 99b36fe4c08845238b66d9e2e44ee4cec23291eb
2021-12-16 15:25:54 +00:00
Alexander Koshevoy
f0a788d3c4 Refactor PyRunConfigurationEditorExtension to get ready for additional fields in RCs based on target-based interpreters
GitOrigin-RevId: 78036aeb9911e1550305af65ba51a289149ef83c
2021-12-16 15:25:51 +00:00
Daniil Kalinin
890f04e881 IJ-CR-16991 Highlight all parameters from the outer functions as parameters, not only self exclusively
Added test for this case

(cherry picked from commit 4019a7deb4b577eb6a42200fa4758a2624e26896)

IJ-CR-16991

GitOrigin-RevId: 86861f573d66abd3d9100de1ebed59513838a24d
2021-12-16 10:36:47 +00:00
Alexander Koshevoy
325ffd3ae9 Remove Python specificity from PythonRunConfigurationTargetEnvironmentAdjuster and move it to platform
GitOrigin-RevId: 33274fc092db96ceadcccb179f54876053812581
2021-12-10 15:27:51 +00:00
Semyon Proshev
574a315230 Use proper type eval context while looking for callees (PY-52034)
Otherwise PyTargetExpressionImpl.getType can not infer type for a qualifier defined inside function body.

GitOrigin-RevId: 75345218653fc8507cc31498fda7b8f07d4c02c6
2021-12-10 13:47:33 +00:00
Semyon Proshev
ff7010415a Support inner conda env while determining if one of its root is under module but outside sdk (PY-51643)
GitOrigin-RevId: bce3dd54dc47db3e36a46b101312628a29aa4abd
2021-12-10 09:57:22 +00:00
Semyon Proshev
b0cd46c639 Exclude inner conda env on creating a new one or opening a directory with already created (PY-51643)
GitOrigin-RevId: 6fb1fdc93a49542cfd4d21fbd41788f617811591
2021-12-10 09:57:20 +00:00
Semyon Proshev
bbf27aa8a3 Don't suggest venvs whose roots can not be found
GitOrigin-RevId: adef62f34ef637819d39419c99cb945081557780
2021-12-10 09:57:18 +00:00
Alexander Koshevoy
04f17e5557 Introduce TargetBasedSdkAdditionalData platform interface
GitOrigin-RevId: ecb48ae180ea8ae0d3a411cdf42584cafdbf35f7
2021-12-09 08:44:05 +00:00
Alexander Koshevoy
cc956a3105 Extract methods for saving and loading target based SDK additional data to platform
GitOrigin-RevId: 0b5454c1207bc34dd920d774e54ae5b538c468a7
2021-12-09 08:44:02 +00:00
Egor Eliseev
11438ddf41 PY-51755 Turn off Command Queue indicator if PythonConsole is stopped
GitOrigin-RevId: c12090708e8c38ac57e3156a495a96c2861f27dd
2021-12-07 08:40:07 +00:00
Semyon Proshev
e011a5adf0 Look only for python3 binary inside possible interpreter location on macOS (PY-51527)
GitOrigin-RevId: 2fc56ab9af2042ab9145b8796314ce5f2f3b6b3d
2021-12-06 10:20:44 +00:00
Semyon Proshev
194ce1fae8 Look only for python3 binaries on linux (PY-51527)
GitOrigin-RevId: c643870cb9682d716876d94069fbad2d0c166f65
2021-12-06 10:20:43 +00:00
Semyon Proshev
a5a8c1b192 Don't use python binary regex for venvs, assume there is always python/python.exe binary inside (PY-51527)
GitOrigin-RevId: 03e5f4ee83428399cbe3e63931a528ce1a12ec38
2021-12-06 10:20:41 +00:00
Daniil Kalinin
a83b789054 PY-24653 Fix Self highlighting in nested functions
(cherry picked from commit fbfc5683399723ac0d49e5aa337024154dd6d3a9)

IJ-CR-16991

GitOrigin-RevId: 69084562247b0105f268fac9f442e02756240173
2021-12-06 08:50:49 +00:00
Elizaveta Shashkova
debc36a906 DS-2637 Add statistics not for executed, but for invoked actions
GitOrigin-RevId: e4b9d2b14cd56908cbfda8aa5585294c5cdcc3b9
2021-12-05 13:11:38 +00:00
Pavel Porvatov
48881ad839 IDEA-283814 Remove usage and deprecate part of old UI DSL: UiDslConfigurable
GitOrigin-RevId: f60738939867008366f373bb50a4d58d34959621
2021-12-02 10:07:05 +00:00
Egor Eliseev
4cb5306f6b PY-51749 Update failed for ShowCommandQueue action
Added checks: if getQueue is null

GitOrigin-RevId: d1492543730686ab70dbd60e271b89125383ac41
2021-12-02 06:34:34 +00:00
Pavel Porvatov
1e19d03dee IDEA-283764 Port Auto Import settings to new UI DSL
GitOrigin-RevId: 82b7b27f64f33569e22c902da2e29e585313e360
2021-12-01 20:28:08 +00:00
Pavel Porvatov
97ceb94474 IDEA-283764 Port Auto Import settings to new UI DSL
GitOrigin-RevId: fb666cbd52b9fb07b255f3ea9ceba0c10203c274
2021-12-01 17:12:32 +00:00
Ilya.Kazakevich
52382586d0 PY-50250: fix test dialog height
GitOrigin-RevId: a6ef58d9f1a3e8ff81c84538fe6d794da3d0a978
2021-11-28 12:05:46 +00:00
Ilya.Kazakevich
a018f51a34 Use "ClassValue" to cache class members in Kotlin.
Reflection is expensive, so we need to cache it.
But when class is unloaded (as part of plugin) we need to purge the whole cache associated with it to prevent leak.

Storing cache in the class directly solves this issue.

GitOrigin-RevId: 15fd428b5e5f366fc57e8aad4a74cffab1160850
2021-11-26 16:22:25 +00:00
Elizaveta Shashkova
78b1a4650e DS-2637 Add action ids to statistics and record executions from gutter icons
GitOrigin-RevId: 4811fec3b91b598a7da4d5e7c180215068708cd1
2021-11-25 15:50:07 +00:00
Elizaveta Shashkova
4c47748ead PY-51753 PyCharm freezes when executing Sci cell
Do not update panel from non-UI thread

GitOrigin-RevId: 135d6a5c723523e7cb2d36c0a29597a9d9cb0fa1
2021-11-24 15:52:12 +00:00
Andrey Lisin
5c5168d2c7 PY-44838 Add frame evaluation support for Python 3.10 and drop it for Python 3.5
(cherry picked from commit 6012febbba0af24081078242c15f9eb782e07c65)

GitOrigin-RevId: ebfc4c723d3b674931da0a19803406057a034c72
2021-11-24 12:24:57 +00:00