Commit Graph

26440 Commits

Author SHA1 Message Date
andrey.matveev
0210695327 PY-26881 Use stubs for function in find usages if it exists
(cherry picked from commit 060c164c3f01a857561d5d0341a186464419e845)

IJ-MR-17639

GitOrigin-RevId: 88141ea74ff22fb022056c8d6d7f70222a3f9b74
2022-01-21 03:17:30 +00:00
Dmitry Jemerov
4b7168cf3f Split SLF4J into API and impl libraries
GitOrigin-RevId: c2787b3e82ce5a63d117ec241e6607dbe0fee948
2022-01-20 18:45:03 +00:00
Alexander Koshevoy
d5c74bb7a5 PY-52632 Fix hanging on expanding Interpreter combobox
GitOrigin-RevId: 01b7f5ec45e8f32d23fbe972886134f626d9d2eb
2022-01-20 17:41:47 +00:00
Alexander Koshevoy
1327f9f3ad PY-51966 Select interpreter in dropdown after adding it using "Python Interpreter Executable Path" dialog
GitOrigin-RevId: 86392daedd835000219de65f2b211aa70bd74298
2022-01-20 17:41:46 +00:00
Alexandr Evstigneev
c151ab2a0b Refactoring: consistent variables naming
GitOrigin-RevId: 6b7f2e47a014584565764c809d95c1c5370a6e69
2022-01-20 13:23:21 +00:00
andrey.matveev
2953318655 PY-38636 Fix go to declaration lead to pyi in some cases
(cherry picked from commit 33b52287f1d5241ee0bc4b8ff1c065e32f26d063)

IJ-MR-18958

GitOrigin-RevId: 5a59d6e6ea3ab001b8237d408340536abe2678e0
2022-01-20 12:03:22 +00:00
Daniil Kalinin
71197da977 PY-27627 Typehints for explicitly parametrized generic class instances
Tests for explicitly parametrized generic class instances

(cherry picked from commit 134748c973843ce8effbf516bbed9be3efbdf8f1)

IJ-CR-18208

GitOrigin-RevId: 0e6c9086964a93cd23385a95d502110c5cc758e4
2022-01-20 07:12:59 +00:00
Alexander Koshevoy
9a980246aa PY-52614 Fix delaying Python Console output
GitOrigin-RevId: 80bcc39b8110451b0d28f417e8146b5be503eb35
2022-01-19 18:04:50 +00:00
Ilya.Kazakevich
2f18840e4b Test fix
We now represent strings using quotes (because this is how repr works in Python). We also don't want to hardcode order of "expected" and "actual"

GitOrigin-RevId: 1c70b3839fa7725db21896d09d839884c500deb7
2022-01-19 16:34:24 +00:00
Mikhail Golubev
753a89ae52 PY-51801 Use the default language level for disposed module SDKs, skip disposed modules
GitOrigin-RevId: edbc870a276a4db8180c5ad0bac3f84599bf7819
2022-01-19 16:04:22 +00:00
Mikhail Golubev
4f1a0a1bae PY-51801 Re-use already collected module SDKs in PythonLanguageLevelPusher
GitOrigin-RevId: 2ea4783d4e7445d1adb9d513e4816bb6778cbe95
2022-01-19 16:04:19 +00:00
Mikhail Golubev
5d2c2c2471 PY-51801 Remove a stale TODO
GitOrigin-RevId: e6331676c54b14e38ab0445105ed877ff10f81c9
2022-01-19 16:04:16 +00:00
Ilya.Kazakevich
9214f0d529 Remove IronPython tests: nobody uses it
GitOrigin-RevId: 27d1b005d84e43cfc5fa831111aebcf1c65637b1
2022-01-19 14:49:27 +00:00
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
704ed6fac9 Make myDebugServerSocket final
GitOrigin-RevId: 2527c9385f61013bcc2266a992c36dca1b9a166d
2022-01-17 19:51:35 +00:00
Alexey Merkulov
d9b499a482 [IFT] DA-423 Highlight editor area to indicate where to click
GitOrigin-RevId: ac141b37ff91d7193566d66473b30e20e534211e
2022-01-17 18:24:00 +00:00
Alexey Merkulov
6569ce389b [IFT] DA-423 Improve interpreter description step
GitOrigin-RevId: fa0fc4c02618c6e77f7398713765e6abdbd44576
2022-01-17 18:23:59 +00:00
Alexander Koshevoy
6c81eae0d8 Fix PythonDebuggerSetValueTest failures because of incorrect assumption about dict items' order
Dict items should not be expected to have specific order before Python 3.6 (when order-preserving behavior is added as an implementation detail).

GitOrigin-RevId: 033bfdfa9a27b8a35d76e217075f0b9989af1b2f
2022-01-17 09:26:54 +00:00
Alexander Koshevoy
070942f2fc Fix NPE in PythonConsoleTest.testInterruptAsync
GitOrigin-RevId: dc239dd00b3e2a4112873a3162af6ddc43bf656f
2022-01-15 11:47:59 +00:00
Ilya.Kazakevich
da81b0c2d3 Get rid of deprecated method
load_module is deprecated

GitOrigin-RevId: 9a026832e43ae906593c34eab62443bbba0be2d4
2022-01-14 21:36:39 +00:00
Ilya.Kazakevich
f48f813c9a Get rid of deprecated method
load_module is deprecated

GitOrigin-RevId: 390cc2849dfd83b09a4712ac524181f7040b5e61
2022-01-14 17:09:01 +00:00
Peter Gromov
ba53b24979 [grazie] skip warnings in code-like contexts in all domains (GRZ-285)
GitOrigin-RevId: 053c3549c11e04209c0caaaad948af508f17fa9f
2022-01-14 14:26:13 +00:00
Peter Gromov
242515cc20 [grazie] trim trailing spaces on each line in some languages to avoid "multiple whitespace" warnings there
GitOrigin-RevId: 8e6c42028f421c2f4ed85c828c1f7f518974728f
2022-01-14 14:06:07 +00:00
Bas Leijdekkers
ce078dac32 RegExp: new "Regular expression can be simplified" inspection (IDEA-286122)
Supersedes the "Asterisk closure can be collapsed to plus closure" inspection which was only available in PhpStorm

GitOrigin-RevId: a63c6fce88b3700cc521e8b113069a4b2b50a3e4
2022-01-13 20:26:25 +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
Alexey Kudravtsev
dcd374eb82 refactor HierarchyTester to allow node descriptor comparator to test the children order
GitOrigin-RevId: 0e307b174a68169e37d66e8ef4432fcdaab0f02d
2022-01-13 17:51:52 +00:00
Andrey Lisin
189b9b2ac5 Update base images in pyenvtests Dockerfile to support Python 3.10 installation
GitOrigin-RevId: e4ad186799cea916c27731e613ca00a9c91aa8a2
2022-01-13 17:14:20 +00:00
Andrey Lisin
7e49e040db Update Gradle Wrapper for setting up Python test environments
GitOrigin-RevId: 47b03bad545869d9140074141b662c77273d5792
2022-01-13 17:14:18 +00:00
Konstantin Hudyakov
660118cb0e [IFT] Rename LanguageSupport to SuggesterSupport
It will reduce the names' similarity of language support classes for Feature Suggester and Feature Trainer.

IJ-CR-19506

GitOrigin-RevId: 32f91bd4d2d471ced9c7677962634456e42e9115
2022-01-13 12:00:37 +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
andrey.matveev
d667021b15 PY-50930 Support ParamSpec from typing_extensions
(cherry picked from commit f2dee2fbe6aa66e14d5130f4910458b6332987d9)

IJ-MR-19113

GitOrigin-RevId: 87cfc35eb79dd11393390046d2401a1fa4d9acba
2022-01-13 07:35:57 +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
Elizaveta Shashkova
5ffabda55b Fix Jupyter debugging with Python 2
GitOrigin-RevId: 512802add1b4a6c23b590ec412520def6d9a9286
2022-01-10 16:31:19 +00:00
Sergey Simonchik
2812f1101e terminal: refactor TerminalOptionsProvider
GitOrigin-RevId: 8d13ed2f5aae093ce3323234cb998784ac1a0464
2022-01-10 10:33:09 +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
Vladimir Krivosheev
91bab61f03 StatisticsJobsScheduler / StatisticsStateCollectorsScheduler - convert from applicationInitializedListener to preloadingActivity
Not important - ensure that it doesn't block application start

GitOrigin-RevId: 5939acf4b1bd5df78617ebe0b239eeb375390c97
2022-01-07 16:23:28 +00:00
Dmitry Jemerov
e7511f7713 Delete JRuby and Python framework detectors
They're confusing, and their reason for existence is much better served with "No Python/Ruby interpreter configured" editor notifications

GitOrigin-RevId: 4c6705d5aa61476dfaedcf0fe79f56caa2833823
2022-01-07 10:13:20 +00:00
Mikhail Golubev
2d97e515e1 PY-52383 Update the bundled virtualenv to 20.13.0
GitOrigin-RevId: 455ab57429fddbe5032a74b10d654b07d55c8eaa
2022-01-06 14:21:01 +00:00
Dmitry.Krasilschikov
4841ada34b NPW IDEA-285493 fixed order for languages
GitOrigin-RevId: 06ddf0e815e4b9a1dfaf9d3fd81fc1db5419e46b
2022-01-03 17:02:39 +00:00
Egor Eliseev
61f8a2ebd3 PY-51830 Fix test 'console_requests' with Python >= 3.9
The `getattr(obj_to_complete.__ class__, d)` call returns dict[d] in Python version >= 3.9.
For example, consider `d = vars`: we get: `obj = dict['vars']` but we want to get `<built-in function vars>`.

GitOrigin-RevId: 2ad659215de2cfc254072f90605f163afa6d7878
2021-12-30 11:42:12 +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
Egor Eliseev
02645e2391 PY-44170 Fix: the Debug console always writes output to sys.stdout/stderr
Add stdout/stderr hooks. When debugger gets 'InternalConsoleExec' command it doesn't write output to stdout/stderr. Now it calls function 'write' from ConsoleOutHook/ConsoleErrHook.
In function 'write' we send output's text to Java side where it's printed by console.

GitOrigin-RevId: db3c6b2aed4f6a79b3ac3c4c30a26d0682126d9d
2021-12-30 09:20:20 +00:00