Commit Graph

31858 Commits

Author SHA1 Message Date
Aleksandr.Govenko
adcc559e5c PY-81676 Don't report lines with assert_never as unreachable
(cherry picked from commit afdbf35915823de02a6b8551f57770113d0feb2f)

IJ-CR-172556

GitOrigin-RevId: 0f8526e2877736ac606db9ed4657a530a66d6f23
2025-08-15 13:27:10 +00:00
Aleksandr.Govenko
5a60b17b4d Rename .java to .kt
PY-81676


(cherry picked from commit ed0da39e7afbb15a593c68b319682fa618b0ed4f)

IJ-CR-172556

GitOrigin-RevId: 061f68ec6b1cde23d369d291e212bf2edbcd782d
2025-08-15 13:27:10 +00:00
Mikhail Golubev
d5673dceef [python] Make overlooked PyElementVisitor methods for statements delegate to visitPyStatement
(cherry picked from commit f6853d0dfc5ddcc7b40bfccead0ad779328fc751)

IJ-CR-172556

GitOrigin-RevId: b7d424930b1f4752ea69041a4ab53229b0392f5d
2025-08-15 13:27:10 +00:00
Aleksandr.Govenko
05203527a4 [python] Convert PySequencePattern and PyMappingPattern to kotlin
(cherry picked from commit 074ed9f865556d561237fc894d202d76995ab562)

IJ-MR-168826

GitOrigin-RevId: 6776375e6566521744ccc1f6c54254b887a1574b
2025-08-14 20:56:06 +00:00
Aleksandr.Govenko
21e8b573a7 PY-81861 Pattern matching for dataclasses - allow matching a subset of attributes
(cherry picked from commit 30a865e64cee7be630567b7d23223fc79eac9dbf)

IJ-MR-168826

GitOrigin-RevId: 8383913015485a6b6e477131c47d502bb655dd30
2025-08-14 20:56:06 +00:00
Aleksandr.Govenko
0dfd1f65e4 [python] Refactor PyCapturePatternImpl. Introduce PyCaptureContext
(cherry picked from commit 2e3fbf4c7d79e6031c7c087e5c7e7e49046587fd)

IJ-MR-168826

GitOrigin-RevId: b87eda39543460451311fc875d6ae3722d671db0
2025-08-14 20:56:06 +00:00
Aleksandr.Govenko
8cc52b8cf3 Rename .java to .kt
(cherry picked from commit de4536d7ce72661c150a019631734c7489af6a84)

IJ-MR-168826

GitOrigin-RevId: a42be1d1bde11865cb7076e7a4703a1c8bab1471
2025-08-14 20:56:06 +00:00
Hlib.Saliuk
f168228991 RELEASE-367: PyCharm 2025.2.1 RC majorReleaseDate update
(cherry picked from commit cf7e406bd3988f924f46dd0f38fad84ed5fdb527)

IJ-MR-172509

GitOrigin-RevId: 931b91cb0d63b180cf09093e4dfcaf39bfc4b77b
2025-08-14 18:45:11 +00:00
Pavel Karateev
c7af627736 PY-83336 update PyCharm built-in spell check dict (August)
(cherry picked from commit fa50c92a7d05790dea0322b0af53113c5759c323)

IJ-MR-172304

GitOrigin-RevId: 7f5447684942bcadd3a5b33e1e0eed03d1c42f7e
2025-08-13 23:06:17 +00:00
Ivan Kulikov
b936da5dbf Update splash screens for 2025.2
(cherry picked from commit a89c08afd277b0020faf07cbb833d569ff47ce87)

IJ-MR-172373

GitOrigin-RevId: 9da740d5d752fa6c0c0e34ae530fbea84f330cbe
2025-08-13 19:41:38 +00:00
Ivan Kulikov
40ab534932 Update version to 2025.2.1 for PyCharm
(cherry picked from commit fdb56ef434c63453eef3dab121750bff279eba6c)

IJ-MR-172373

GitOrigin-RevId: 0d97ba1688131bdd08203428e4228d54d4a57b9a
2025-08-13 19:41:38 +00:00
Andrey Vokin
b3a70daa05 PY-83118 Forward Reference Causes Import to Be Incorrectly Removed in PyCharm 2025.2
(cherry picked from commit fcf27e5c97e12498bc1c630f43e0a0876faba408)

IJ-CR-172300

GitOrigin-RevId: 7f3fcc83890a4ae0b0e7e6dd4ba363790f318eaa
2025-08-13 13:13:42 +00:00
Vitaly Legchilkin
304a1877d2 [python] new icons for system pythons pyenv/homebrew (UX-3490, UX-3365)
(cherry picked from commit af8d8d78e0bea842737ee07cc84a6de9eb005ed2)

IJ-MR-172209

GitOrigin-RevId: ba4466e1b2c3afb775bd2f0457c2acf26c9cf031
2025-08-12 18:59:44 +00:00
maxim.popov
db9dd95e6b PY-48306 [debugger] [IJ-MR-167160] added type check for objects, when accessing dtype. restricted to certain container types
(cherry picked from commit 60808c3e70d39aad2efee45fa120eb08a8828079)

IJ-MR-172080

GitOrigin-RevId: edada7f5ecf70fe905ff7fe1b56531fe311d668c
2025-08-12 00:07:47 +00:00
Vitaly Legchilkin
45bc8760b6 [python] fix Junie link in whatsnew (PY-83046)
GitOrigin-RevId: 0369b8c3325b1371305843491ee3aeb5940fe5c5
2025-08-11 20:34:35 +00:00
Vitaly Legchilkin
5df57ad536 [python] enable macros in a working dir for test configurations (PY-65319)
(cherry picked from commit 51b1e3c00b290eed520a708b6c36e789dbe9a3d1)

IJ-MR-171988

GitOrigin-RevId: c1a5c1668c662ac6d953d39f53a29004baf1729b
2025-08-11 15:03:21 +00:00
Aleksandr.Govenko
4c890f2d47 PY-82707 Pycharm July 2025 EAP showing unreachable when using a subtype of Any
(cherry picked from commit c8a61ecc43754144679e5afc9f4623c02f558597)

IJ-MR-170092

GitOrigin-RevId: 612862aa2ce338a8f18e13197f483b936c9d0cdb
2025-08-11 09:57:17 +00:00
Aleksandr.Govenko
c3e7d5a7b7 PY-76896 Conformance test failure: classes_override.py
(cherry picked from commit 6603d072bd324493af12130ebec1ef0004873255)

IJ-MR-167674

GitOrigin-RevId: bd25b117b426bce0c364aaabbc9e961295421fb4
2025-08-08 21:06:50 +00:00
Natalia.Murycheva
4d69d6b1e1 [J-Debugger] PY-82513 Subsequent debug sessions don't start correctly #(PY-82513, PY-64509, PY-79518) Ready for Merge
This is a flaky bug: in the case of the second and following debug sessions, the Jupyter Debugger stops at the random place at the debug beginning.
In Python Debugger, we add to threads an additional attribute called additional_thread_info.
The debugger's additional_thread_info stores the current execution state (run/suspended) and step commands.
**When these values weren't cleared after a debug session ended,**
threads with "suspended" state would carry over to the next session, causing it to stop immediately upon start.

Fixed by properly resetting threads' debug state between debug sessions.

(cherry picked from commit ba23933f616c79f9a9e0307f0830f53eebc84ccd)

GitOrigin-RevId: a24425601b0e6a5a497cf974e4a0b4d10e947dab
2025-08-08 20:24:22 +00:00
Natalia.Murycheva
49542abf96 [Jupyter Debugger] PY-63016 Add usage statistics for the remote Jupyter debugger
* Added a new event in the JupyterFeaturesCollector. This event logs what kind of debugger was used.
* Minor refactoring: in the JupyterPyFeaturesCollector class unified formatting and fields names.
* In the PyStatisticTools.kt, fixed the inspection's warnings about an absence of returned types.


(cherry picked from commit 1810e33879ff4d6a40232b28270fd9972480703b)

IJ-CR-171871

GitOrigin-RevId: d2dcdd0df39063d19584840dc2b34fd63b3d379e
2025-08-08 20:21:12 +00:00
Natalia.Murycheva
cecb682865 [DataView; Jupyter Debugger] PY-82659 ClassCastException because of DataView at debug start #PY-82659 Ready for merge
* Removed the unnecessary class cast


(cherry picked from commit 11b3449353f1e0f97bfb777d4c4a1b729608ebd5)

IJ-CR-171871

GitOrigin-RevId: 6067c7443c5bdff48123a20c09f6db3c365421ec
2025-08-08 20:21:12 +00:00
Ilia Zakoulov
a8675a61ac PY-82168: Implement inspection and quick fixes for dataframe and series in the conditions
(cherry picked from commit 658f2d5609852b00b7e1011c3841c7266c202686)

IJ-MR-168659

GitOrigin-RevId: 66806362570ef564b1495ba5a9afcd32a50859fb
2025-08-08 19:31:55 +00:00
Aleksandr.Govenko
6deddd7ee2 PY-81608 False positive "This code is unreachable" after try / finally if try has a while loop
(cherry picked from commit fbdefd71c5c9356c82d3c873426dd565dd95c613)

IJ-MR-169577

GitOrigin-RevId: b428a790336656088c9b3343a2f6772873cafca8
2025-08-08 18:19:44 +00:00
Aleksandr.Govenko
7e0924c394 PY-82712 False positive unreachable code after try / finally block if try has an if
(cherry picked from commit 53c13421523d780995fa83cc0625f6e99d5fe51f)

IJ-MR-169577

GitOrigin-RevId: f5254435a0512ba55db7fca9016a387740ac9b8b
2025-08-08 18:19:44 +00:00
Pavel Karateev
dea1173a6e PY-83096 complete stdoutToServer and stderrToServer renaming
(cherry picked from commit f8d72fea4cf54d11f3fdb2e63c25191066e16b3a)

IJ-MR-171424

GitOrigin-RevId: 26db25e894cfd03ce4361aa7d0b819ec6b88af55
2025-08-08 16:57:39 +00:00
Marcus Mews
2c3ae70ddd PY-83001 Extract method with type hints lacks return type sometimes
- fix missing return type when last statement is a return statement
- add/adjust tests
- add missing null annotations

GitOrigin-RevId: 8fed189d0130c3b41a5f17a3324684a29b39c0ef
2025-08-07 20:11:13 +00:00
Vitaly Legchilkin
a3c1371e3e [python] add display ids for notifications (PY-83036)
Merge-request: IJ-MR-171306
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com>
(cherry picked from commit 7a4b12f4bee6fae93ce5351bda0e19289b8f7404)

# Conflicts:
#	community/python/pluginResources/intellij.python.community.impl.xml
#	community/python/src/com/jetbrains/python/packaging/toolwindow/PyPackagingToolWindowService.kt
#	community/python/src/com/jetbrains/python/sdk/configuration/PyProjectSdkConfiguration.kt
#	community/python/src/com/jetbrains/python/sdk/pipenv/PipEnvPipFileWatcher.kt
#	python/jupyter-py/src/com/intellij/jupyter/py/debugger/JupyterDebugProcess.kt
#	python/scientific-tables/src/com/intellij/scientific/tables/DSGridLoader.kt
#	python/scientific-tables/src/com/intellij/scientific/tables/DSTableDataManager.kt

GitOrigin-RevId: 38ab3efc5a61156ac4c3df96fc3fe87742c38d05
2025-08-07 18:02:56 +00:00
Vladimir.Koshelev
6689a52dc3 [PY-83046] update action id for installing junie, use the action which is always available
GitOrigin-RevId: b6941841231616027337fdd75c8b7ed7a1c210be
2025-08-07 17:36:54 +00:00
Vladimir.Koshelev
b43f410729 [vision] update what's new pages for pycharm
(cherry picked from commit 02c8491b257c159f4312912dc09e8ed25c1b3945)

GitOrigin-RevId: 8ea0f23becd48c8ec289f5b3ac98199652f6e8df
2025-08-07 17:36:54 +00:00
David Lysenko
3519d1fef0 [pycharm] PY-79132 Cherry-pick tweaks
GitOrigin-RevId: 5c1a362ea951c7b0f88d984b570cd463db6b6c84
2025-08-07 16:44:28 +00:00
David Lysenko
14f1f6bfe4 [pycharm] PY-79132 Address feedback
GitOrigin-RevId: 03e4786ad9e32de518a11b2cad6a8b653e2cc1f8
2025-08-07 16:44:28 +00:00
David Lysenko
04d67a09a7 [pycharm] PY-79132 Replace base python with python version selection for uv
GitOrigin-RevId: b1b7cb2147244d2054ce9b3a8e2dfbd2bced567b
2025-08-07 16:44:27 +00:00
Vitaly Legchilkin
1c387d2ad4 [python] unify Local SDK creation UI in PyCharm and IDEA (PY-79881)
GitOrigin-RevId: e64f4b35a60a289fc064b6d4ebdf6db6b76dc0c9
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
dc7a356962 [python][sdk] refresh module tree & don't delete main.py for uv (PY-76415)
(cherry picked from commit fac8697a8236d63d333fa2d9da135d8058751120)

GitOrigin-RevId: 504a75b6d9f67c81880d6d28c42a7ba9daba28ad
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
a23d714798 [python] refresh sdk paths in generators (PY-83041)
they install packages before open project activity and we need to refresh paths manually.

(PythonSdkUpdateProjectActivity starts after the sdk initialization and tracks only changes, not initial loading)

(cherry picked from commit 3d9931fef337d8256dbfcd219ebc626cdd16c080)

GitOrigin-RevId: 20df84f1b81b01045560abe717ac79f0972eb339
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
6e2062a1f5 [python] filter installable sdks based on post-filtered existing (PY-83021)
(cherry picked from commit f91426e3af49da1d460a64e1853d34612af3a148)

GitOrigin-RevId: d0c0fc9062b36cb8c15a83d576d54d0f3d367b84
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
537e577100 [python] mark venv root excluded for select existing sdk (PY-76341)
* works for selecting via dialog or from the widget

(cherry picked from commit e33950438d290e3bf886fc255562bde53933dc18)

# Conflicts:
#	community/python/src/com/jetbrains/python/sdk/add/v2/common.kt

GitOrigin-RevId: 911cf38b72aacd2af74da9051222c6d7618678cf
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
b137dcdc62 [python] filter installable versions by Existing and Detected pythons (PY-65995)
(cherry picked from commit 6438378b9b011a3365bf64bf3b74ef8ef4419648)

GitOrigin-RevId: 1fca0d2dd96e7dd186e21322a7d799b64bc4abbb
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
f841d9e0c2 [python] correct handling for hatch interpreter type (PY-83000)
(cherry picked from commit 68963c24b0f2bf5059c90f4294a100a64c250a81)

GitOrigin-RevId: 53ad62beac4e2eaf7d816782fbad112774294aed
2025-08-07 12:08:30 +00:00
Vitaly Legchilkin
0f8c3b77dc [python][sdk] fix the browse button for select python control (PY-82879)
When the interpreter list changes, the previously selected value needs to be restored.

Additionally, filtering by path was added to prevent duplicates in the list when an already existing interpreter is manually browsed and added. (or same interpreters from different sources)

(cherry picked from commit a454dac361ff96d7173cc734e268aa3dc39c4c47)

GitOrigin-RevId: 1c1c0742220b477451e1a848c2ce199893721f55
2025-08-07 12:08:29 +00:00
Marcus Mews
90201cfde5 PY-83059 NullPointerException in PyCharm 2025.2
- add null check

(cherry picked from commit 25ea1637981dec0d5d4fae532bed9e6c0ce7ebe6)

IJ-MR-171476

GitOrigin-RevId: f37d1e2ecd97b5d3185dc547c8f20af2a3cd05ef
2025-08-06 11:16:38 +00:00
Vitaly Legchilkin
7ff8383d20 [python] fix python sdk add dialog for python plugin (PY-83060)
GitOrigin-RevId: c6867a363f5edb8e933fcf5a96ca8c570c7356a4
2025-08-05 15:08:41 +00:00
Marcus Mews
4e83c0cd74 PY-22720 Extract Method does Not Preserve Existing Line Breaks
- keep empty lines between statements
- add test

(cherry picked from commit 276000bdce7ffee22ecd2e03d2ec4831dd8f6725)

IJ-MR-171066

GitOrigin-RevId: 15660649de5c799be2dee8c5c80e616827ef41db
2025-08-05 12:33:06 +00:00
Vladimir.Koshelev
1b662631cf [PY-75831] library cache should work correctly for PsiFiles created specially for completion.
GitOrigin-RevId: 0633366b2caf18a11cb7fb9802351f5db24500fe
2025-08-03 21:40:01 +00:00
Vladimir.Koshelev
57b05ad202 [PY-82607] introduce a caching for all computations in PyTypingTypeProvider
GitOrigin-RevId: fb694274af15e64738054c03b0360f5aff4c513a
2025-08-03 21:40:01 +00:00
Andrey Vokin
62f37bb800 PY-81269 Extremely High RAM Usage
(cherry picked from commit bb534d62931c176d2395e2cceb0afabc57464669)

GitOrigin-RevId: 5c542be02083a352890ccd61c4e2792b6b018fb7
2025-08-03 11:42:52 +00:00
Andrey Vokin
385d275011 PY-75831 Split cache(resolve/type) into library and user part
GitOrigin-RevId: 8dfd0120379c9a34051d66e147ffdc2c69f0db66
2025-08-03 10:57:11 +00:00
Morgan Bartholomew
c11630935c [python] PY-7292 folding for cython
GitOrigin-RevId: ab0409006cc967dd67c3e586f33c00e85327152c
2025-08-01 01:31:11 +00:00
Morgan Bartholomew
855d0800ae conflicts from cherrypick
GitOrigin-RevId: 0c5ac8858db88c73c09979309462129171489bab
2025-08-01 01:31:11 +00:00
Morgan Bartholomew
7804567cdb [python] convert PythonFoldingBuilder to kotlin
GitOrigin-RevId: 5558b910a99d27760fa44a8b05ec38d842d83f3f
2025-08-01 01:31:10 +00:00