153 Commits

Author SHA1 Message Date
Vitaly Legchilkin
84934e9e9e [python] (IJPL-205889) (BAZEL-2462) don't call getOrCreateAdditionalData for non-python sdks
+ add requirePythonSdk() verification for the Sdk extension functions, these methods are not designed to be called for non-python sdks and now will throw IllegalArgumentException.

also corrects dependency tree:
+ move PythonSdkUtil to the python.sdk module, remove dependency on psi.impl
+ create PySkeletonUtil for skeleton utils and leave it in the psi.impl

[python] (IJPL-205889) (BAZEL-2462) don't call getOrCreateAdditionalData for non-python sdks

+ add requirePythonSdk() verification for the Sdk extension functions, these methods are not designed to be called for non-python sdks and now will throw IllegalArgumentException

also corrects dependency tree:
+ move PythonSdkUtil to the python.sdk module, remove dependency on psi.impl
+ create PySkeletonUtil for skeleton utils and leave it in the psi.impl

GitOrigin-RevId: 20d958c5e15cc4e05545b2e61b126b5e015696ed
2025-10-10 18:17:28 +00:00
Nikolay Chashnikov
c3d006d45e [plugin model] use 'internal' visibility for content modules which are used from modules of other plugins (IJPL-207059)
These modules and their classes don't have external usages, so they shouldn't be made 'public' at least for now. The 'namespace' is also set to 'jetbrains' for plugins which contain such modules or modules which use them to allow 'internal' visibility to work.

GitOrigin-RevId: 198007e49320075dc27faadde6963e98332296a4
2025-10-08 18:39:06 +00:00
Ilia Kirianovskii
f43aa95086 [bazel] Update build files (IJI-3062)
GitOrigin-RevId: 98a67396a48bddc3d084cc93c50ae2f2017bfe8c
2025-09-29 00:11:15 +00:00
Vladimir.Koshelev
c5b44ca085 [python] PY-84398 get rid of package prefix in python modules.
It doesn't work. Sad, but true.

GitOrigin-RevId: c6cf4f2971ce813a2ce18afb2dcee22c2c5dad75
2025-09-26 15:15:29 +00:00
Vladimir.Koshelev
ba393efaa7 [python] PY-84398 get rid of embedded loading rules in PythonCore plugin, fix related issues
GitOrigin-RevId: 54f4bb333e0ca06a002a86c75f0bbc474863253e
2025-09-26 15:15:29 +00:00
Ilya.Kazakevich
fd6322f117 Python: move classes to com.jetbrains.python.sdk.impl and close it.
`com.jetbrains.python` was closed by accident.

GitOrigin-RevId: 78109e34c720abfa2cefb1fa7d8d20db2ed1ad11
2025-09-22 18:50:06 +00:00
Yuriy Artamonov
2cf790a9d6 [python] PY-84203 Reuse PythonParserIcons.PythonFile icon everywhere
GitOrigin-RevId: c485c76e41659f33bd8d86de2470b27be684411d
2025-09-14 23:47:27 +00:00
Nikolay Chashnikov
1222e282ae cleanup: remove unused dependencies on intellij.platform.inspect module (IJPL-200936)
This is needed to convert it to a content module and declare a runtime dependency only where needed.
A direct dependency is added to intellij.idea.community.main to run tests from the module. Also, some dependencies that came as transitive dependencies before now are added explicitly to language-server.project-import module.

GitOrigin-RevId: 406d8bb08840a6feed01e1513c1ed72fc060f090
2025-08-11 17:50:27 +00:00
Petr
7135789b0f PY-81288 Incorrect type inferred for a function with positional only parameters
GitOrigin-RevId: 3bfea7064073b32743d58bbf5030769d1565a61e
2025-06-28 13:01:14 +00:00
Vladimir Krivosheev
a49e310575 IJ-MR-162467 don't export intellij.platform.lang.core
GitOrigin-RevId: dea0fc36382a29eda134dba69917d41c7b585cf2
2025-06-18 11:28:23 +00:00
Vladimir Krivosheev
b935234c91 IJ-MR-162467 don't export intellij.platform.projectModel
GitOrigin-RevId: 11c0bf5ca0f3a6d892658a2b149d85cace9aa2b8
2025-06-14 13:00:48 +00:00
Vladimir Krivosheev
ef0323d07c IJ-MR-162467 don't export intellij.platform.core
GitOrigin-RevId: 05f350c1c087be1bf9b46d8bdac5345a65f55958
2025-06-13 21:52:48 +00:00
Vitaly Legchilkin
06b7a98504 [python] unify Local SDK creation UI in PyCharm and IDEA (PY-79881)
* use the same UI in IDEA for local SDKS as currently PyCharm has, removing redundant code


Merge-request: IJ-MR-164681
Merged-by: Vitaly Legchilkin <Vitaly.Legchilkin@jetbrains.com>

GitOrigin-RevId: fe26897837f41dd2f3b23a328d2a9098ad388e37
2025-06-06 22:08:02 +00:00
Vladimir Krivosheev
65fe061584 IJ-MR-162467 don't export intellij.platform.analysis
GitOrigin-RevId: fcbcb68010b58cb507fee2c47473758b999e471b
2025-06-04 11:16:33 +00:00
Vladimir Krivosheev
74279330fe createEditors - add NotNull
GitOrigin-RevId: 98a04ce6c91bd16f9ffee3f5b17d37b43e57e5e1
2025-06-04 09:09:58 +00:00
Vladimir Krivosheev
ab69d8455c IJ-MR-162467 don't export intellij.platform.indexing
GitOrigin-RevId: 5065d7f10610d024e4a89a379be3de68caf55dc3
2025-05-29 17:55:17 +00:00
Vladimir Krivosheev
5c7824a820 ui designer compilation - part1 - allow .form as input
GitOrigin-RevId: 5ab44530cdafe63de7f0595fe9c6ba80ab9da174
2025-05-17 19:35:32 +00:00
Vladimir Krivosheev
fbc9805e89 IJ-MR-162467 don't export intellij.platform.jps.model
GitOrigin-RevId: ebaebc90d514e5f3046fe2b973647da4bf156625
2025-05-14 18:10:23 +00:00
Ilya.Kazakevich
01754edfcb Python: drop unused, deprecated symbols.
Still used symbols are in `DeprecatedUtils` now to be dropped later

GitOrigin-RevId: 550eab3d417185b868072b06101bf7634263b4a2
2025-05-12 18:17:00 +00:00
Vladimir Krivosheev
6f8ff07ccc simplify bazel labels (another step towards using simple names that reflect directory structure)
GitOrigin-RevId: 12bfb2d0fa315d87c7a4ade363d0f834cf324b71
2025-05-08 16:58:30 +00:00
Leonid Shalupov
e4e5753846 housekeeping: remove unused imports
GitOrigin-RevId: ccba6d05260f5eb551ffa87e0d8a38dc93148a3a
2025-02-04 11:00:15 +00:00
Vladimir Krivosheev
0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
cc667842f7 IJ-CR-146078 do not export intellij.platform.ide.impl
GitOrigin-RevId: 16a29b914bf81d4d5e3cdb43c64b088113a2fcd4
2024-12-30 10:16:07 +00:00
Vladimir Krivosheev
25233df1b1 cleanup - isEmpty
GitOrigin-RevId: 100d69abb6a423556574a72e82508fdb8f5d7fa3
2024-12-27 14:41:14 +00:00
Vladimir Krivosheev
68d99c6550 cleanup
GitOrigin-RevId: 9cb238c220249088bfc75a448eb310b93c7fc45c
2024-12-26 14:56:01 +00:00
Vladimir Krivosheev
a522f96d66 do not export deps blindly (part 3)
GitOrigin-RevId: 7277ece9ded25f1111febc8dccaba9ac8cc75c21
2024-12-22 20:28:42 +00:00
Leonid Shalupov
b4620387ae intellij.python.community.plugin.java: move .iml from source roots
GitOrigin-RevId: 401ac85f289854a2757d44c9242c092c2e6bac30
2024-12-17 13:26:44 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Ilya.Kazakevich
3a8eea0329 [Python]: Drop Jython
GitOrigin-RevId: d21b1c99e58aab59cdb474f893440e3fe61dc6df
2024-11-27 16:10:15 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Alexey Kudravtsev
5bfbba0d3a fix "immutable collection passed where mutable expected" warnings
GitOrigin-RevId: b2c9d665cda9c8ecf2817c45cd2c18422079ba67
2024-11-26 19:43:48 +00:00
Egor.Eliseev
0c73c9eff9 PY-72274 separating content for python core/pro plugins
1. Delete `intellij.python.community.impl.xml` (move content to `PythonCore` plugin). It is necessary to fix incorrect dependencies: `PythonCore`, `Pythonid` include the same module.
2. Fixed dependencies: if some plugin/module needs Python core functionality, then it should depend on `PythonCore`.


Co-authored-by: Vladimir Koshelev <Vladimir.Koshelev@jetbrains.com>

Merge-request: IJ-MR-136158
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: ce9ed4c17f601ee1ca2b6cf608f4e30fdac1d879
2024-06-19 21:39:24 +00:00
Ilya.Kazakevich
0a43dbe6b5 [python] v2 python-java module needs access to general python plugin
GitOrigin-RevId: 24159296bc256486a85cc2396c7a5827f1e9208b
2024-01-25 22:14:26 +00:00
Ilya.Kazakevich
9d4751f238 [python, ds, jupyter]: Migrate Python support to V2
Layout:

  JPS modules
  `intellij.python.community`
  `intellij.python.community.impl`
  `intellij.python.parser`
  `intellij.python.psi`
  `intellij.python.psi.impl`
  `intellij.python.ast`
  use package `com.jetbrains.python`
  and go to `intellij.python.community.impl` v2 module

  JPS module
  `intellij.python`
  uses package `com.intellij.python.pro`
  and goes to `intellij.python/pro` v2 module

  Both v2 modules (along with lots of others) come with
  `PythonId` (prof) or `PythonCore` (community) plugins

  DS bundles  `intellij.python.community.impl`

  Idea and other Mini IDEs get `PythonCore` or `PythonId` plugin that bundle modules for Idea and mini IDEs

GitOrigin-RevId: 98f418c52d90d51b9adf3250c561f2c36c767e2d
2024-01-22 20:26:58 +00:00
Sergei Vorobyov
8c13ac897a IDEA-343666 [NPW] fix: use platform icons for languages that present in the Install Plugin popup
GitOrigin-RevId: 838fbf9231cf7ce331c46c4161896a4a51d384ca
2024-01-22 20:01:30 +00:00
Ilya.Kazakevich
064aa436a2 [python] Separate new project wizard class since it is used in java plugin only
GitOrigin-RevId: c7a31b5b17b719d3361bde5dae0c73315e597042
2024-01-16 15:50:13 +00:00
Ilya.Kazakevich
8a334cf9d2 [python] Rename and move python facets
Facets should be in appropriate packages according to v2

GitOrigin-RevId: cacc729a038f40bfaf9ebb2d89d1e1a744fd71f1
2024-01-16 15:50:03 +00:00
Ilya.Kazakevich
5e4dbef015 [python] Move plugin-specific classes to the correct package
GitOrigin-RevId: 14efb7be0fd8f9614a1849c9345bcbf319f76cb9
2024-01-15 23:49:32 +00:00
Ilya.Kazakevich
b599287e32 [python] Refactor icons layout in community
Icons removed from SDK package (no need to have a separate class for it), ultimate icons moved out of community module.

There are only 3 icon packages in community:
* `PythonParserIcons`
* `PythonPsiApiIcons`
* `PythonIcons` (aka `intellij.python.community.impl`)

Latter two have `.json` mapper to replace old icons with new one for New UI which is included into corresponding `.xml` file.

GitOrigin-RevId: 0438ad4485b5a82a89c81ec63ae6e575d5bb52de
2024-01-12 15:53:48 +00:00
Ilya.Kazakevich
826e478335 [python] Move icons in SDK in the right package
GitOrigin-RevId: fcd5331038928a183665a4869c7ea4e34502f1fb
2024-01-12 10:53:46 +00:00
Ilya.Kazakevich
8cc30f7113 [python] icons moved to com.jetbrains.python package, as whole community.python.impl must be there
GitOrigin-RevId: 8c3d1c920d0f34dbfe75399027cc348020a809dd
2024-01-11 20:29:35 +00:00
Sergei Vorobyov
ae7550dccc IDEA-332234 [NPW] new: added icons for all language generators of new project wizard
GitOrigin-RevId: 32c2cc55bc189d8805dffe7dbe8a9ca773a82079
2024-01-05 12:03:33 +00:00
Sergei Vorobyov
ed08f7311e [NPW] cleanup: removed client code for the old new project wizard
The new version of the new project wizard has been stable for more than a year. Anymore, we don't need fallback to old one.

GitOrigin-RevId: 1351f238d7b44a775e0cfaf61fcfadb09fbbc702
2024-01-05 12:02:48 +00:00
Andrey Cherkasov
24adef8e2a Resolve warnings about 'protected' members in a 'final' classes
GitOrigin-RevId: 5d7c04b6371be1f2cc924a86614919ab6ee5b642
2023-12-14 17:36:45 +00:00
Andrey Cherkasov
06342a71b3 [python] Make extension classes final
GitOrigin-RevId: d650b5e733d806a06911f942cfd1dec70197b061
2023-12-13 20:02:09 +00:00
Konstantin Nisht
1e1f6191f7 Revert "[python] Allow modification of python SDK in headless mode for IDEA"
This reverts commit c2ed190ada73e46752f4135f864cf279c3c1f2ca.

GitOrigin-RevId: 8e27ea348debb50fc96c12cc5c93a7d2dea65d24
2023-10-19 16:23:05 +00:00
Konstantin Nisht
5011269a9e [python] Allow modification of python SDK in headless mode for IDEA
GitOrigin-RevId: c2ed190ada73e46752f4135f864cf279c3c1f2ca
2023-09-30 18:44:37 +00:00
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Nikolay Chashnikov
8ce3039acf cleanup: get rid of usages of deprecated constants from PsiType (IDEA-309438)
GitOrigin-RevId: 3373eb8b47af51b9f6dd71e565f773d69e8a3218
2023-01-26 16:11:57 +00:00
Konstantin Nisht
485a8e8397 [warmup] IJPL-29: Avoid direct dependencies on intellij.platform.warmup module
GitOrigin-RevId: fd3dfed4aec7e2d51bc03efe2b416cfb33a4e0d8
2023-01-02 10:54:56 +00:00