Commit Graph

568 Commits

Author SHA1 Message Date
Semyon Proshev
96ca67b701 Remove support for buildout (PY-49193)
GitOrigin-RevId: 6c9e582d92b7c1c5f43648022abe315906e2786c
2021-09-14 17:08:51 +00:00
Semyon Proshev
21f09b3b3d Look for python interpreter configurable by id (EA-266488)
Instead of type, since DSModulesSdkConfigurable does not inherit PyActiveSdkModuleConfigurable.

GitOrigin-RevId: c8d546883afdc7958cc980a335a3981d9f05faf3
2021-08-11 10:05:53 +00:00
Alexey Kudravtsev
ec08bb81f7 fix references to pycharm.community.ide.impl left after renaming (IDEA-CR-71831)
GitOrigin-RevId: adf3eb07b1c66891c06fd1e1f125e1464cdcdf28
2021-07-29 09:49:33 +00:00
Alexey Kudravtsev
40063a5e86 rename "intellij.pycharm.community.customization.impl" to "intellij.pycharm.community.ide.impl" to avoid impression that "intellij.pycharm.community.customization" depends on its own implementation
GitOrigin-RevId: b92692fa32a7b584905230a60c86f18554970167
2021-07-27 16:43:36 +00:00
Semyon Proshev
68eddd9592 Attempt to fix EA-287327 by checking that module or project are not disposed
GitOrigin-RevId: 9fd6e28ad2257fb4f43d9cd59b656974d9764a60
2021-07-26 21:57:47 +00:00
Aleksey Pivovarov
1358e0bba2 CWM-366 cwm: remove duplicated toolwindow extractors
Keep only the record in 'python-core-common.xml'.

Fix regression after b8ddcc10f2957adebcca872d28ebf092dfb3b250

GitOrigin-RevId: 9b0e8e6b290e877fcb3363ba3ec11004db2d3011
2021-07-20 10:56:02 +00:00
Semyon Proshev
76c9a89bb9 Fix formatting and warning about logger
GitOrigin-RevId: 20f383e40efdca05643e5703eae0fca1c8982b3c
2021-07-16 10:31:03 +00:00
Semyon Proshev
185184b4d5 Refresh VFS for created venv to have not further setup interrupted due to null homeDirectory (PY-49656)
GitOrigin-RevId: 49054e9e7ad71d3d961b2939cff9431107c3a58c
2021-07-16 10:31:02 +00:00
Aleksey Pivovarov
b6e4a51544 CWM-366 cwm: fix Python Console toolwindow extractor registration
Fix regression after b8ddcc10f2957adebcca872d28ebf092dfb3b250

GitOrigin-RevId: 0a6e678da5dc42f7caa9deb37f96f4ac5cb00a4c
2021-07-14 14:07:41 +00:00
Alexey Merkulov
ca3cd52098 IFT-249 Disable onboarding tour and the promotion for PyCharm Edu
GitOrigin-RevId: 2a8eee85747ec1e8df311e69ef2ddfbe4761fe94
2021-07-13 13:16:57 +00:00
Alexey Merkulov
dd7a0c723a [IFT] Switch on Python onboarding tour by default
GitOrigin-RevId: 79a121efa835d453aa5a0eb5d510c221ab7d37f8
2021-07-12 12:35:23 +00:00
Mikhail Golubev
97691d1894 i18n: Remove a never shown panel and its message in Buildout settings
GitOrigin-RevId: 08c6f9c6533bf2ab2f7697d5de0bbe0c11d9ff95
2021-07-07 11:44:08 +00:00
Vladimir Krivosheev
3b1ae1464f fix test "create all services and extension" for python
GitOrigin-RevId: 24ff625f69084257967d94f3bafba25d7bec61d3
2021-06-16 14:20:06 +00:00
Ilya.Kazakevich
a9530c1efa PY-48996: mark folders as test
PoC

GitOrigin-RevId: d63c9b180bbdc96e6fc08ec8f63452ca187210ea
2021-06-11 18:39:41 +00:00
Semyon Proshev
1064102375 Register project view listener as a child of python plugin disposable to avoid leak
GitOrigin-RevId: 2f9205e827bebeaadba4b3d91a157d4133931d07
2021-06-02 12:54:40 +00:00
Alexey Merkulov
ce3ec1e3c8 [IFT] Fix class loading for PyCharm onboarding promoter
GitOrigin-RevId: f15431baafa2ca5d95a3767448c124a9dc48d1e7
2021-05-26 17:32:00 +00:00
Roman Shevchenko
3661d0cc58 [platform] tidying up notifications API
GitOrigin-RevId: c399534e946bdd286d7be6cbc43339aae8397db1
2021-05-10 08:17:47 +00:00
Semyon Proshev
15f4a4daa5 Remove python prebuilt indexes code
They were replaced by shared indexes.

GitOrigin-RevId: b6d5abe5317239f64a6418b73e22657175e1d403
2021-05-04 21:13:34 +00:00
Dmitry Jemerov
749ce8a332 Cleanup: remove @author tags
GitOrigin-RevId: 9174eb8d77215b16f9f6c6074e6aced654d95ef1
2021-05-03 13:07:48 +00:00
Semyon Proshev
52423b4e4a Don't create welcome script for projects opened in temp directory (PY-46055, PY-47697)
GitOrigin-RevId: 35794bb7ee045b066aeb7de122303fda1eca6a58
2021-03-29 09:32:55 +00:00
Andrey Vlasovskikh
611f8bf640 PY-12988 Moved virtualenv activation for VCS commands to the Python plugin instead of PyCharm Customization plugin
We need this functionality in other IDEs with the Python plugin besides PyCharm.

GitOrigin-RevId: b12abb4c2c9da33affbdb88fc58208d7de5a7ca1
2021-03-27 13:55:48 +00:00
Vladimir Krivosheev
809b7ca201 deprecate ServiceManager.getService(project)
GitOrigin-RevId: 3805c3aac4e084c828558bf1b1570339f7f3b4a3
2021-03-26 21:30:32 +00:00
Semyon Proshev
a850a1e5dd Attempt to fix EA-243756
GitOrigin-RevId: 1a4dbcfbcabe109f0eb9f6df66ba31a24221ec6b
2021-03-26 16:45:39 +00:00
Aleksey Pivovarov
d92691af31 PY-12988 vcs: customize virtualenv for git hooks
GitOrigin-RevId: 82b4dfdfa9405f74e25f8a98ef2c428f927b9965
2021-03-26 13:12:30 +00:00
Kirill Likhodedov
e4762bdd2a trusted-projects: check if the project is implicitly trusted (e.g. via Trusted Locations) in getTrustedState() method
This fixes IDEA-262975, RUBY-27887

GitOrigin-RevId: 52bcd4567b84a231c4113f7b481e6dc406e272e1
2021-03-25 09:44:02 +00:00
Alexey Merkulov
87dee98979 [IFT] Replace pictures for PyCharm onboarding promoter
GitOrigin-RevId: 4992a8b3f9dc63d941cf2d12a5f48da807a9a642
2021-03-24 13:41:04 +00:00
Alexey Merkulov
d7f47f809b [IFT] Use custom Python onboarding images
GitOrigin-RevId: fa2209c3c56cdb3610c46d04dddd61038e4ddb03
2021-03-23 09:28:41 +00:00
Alexey Merkulov
b8830dc7ea [IFT] Add Python onbording tour promo images
GitOrigin-RevId: e43bf2848caa83e1ee5414f019e056eaf1be031f
2021-03-23 09:28:40 +00:00
Alexey Merkulov
81c5ae5a62 [IFT] Move PyCharm onboarding lesson under the ift.experimental.lessons flag
GitOrigin-RevId: 113616d7b17632013045ed306b3ad8f6f2495baf
2021-03-05 11:21:34 +00:00
Semyon Proshev
7ac3f73796 Enable conda environments outside envs folder everywhere
GitOrigin-RevId: cb7f927fce0e05abd1f21b1fc950745bde144e20
2021-03-02 12:06:55 +00:00
Semyon Proshev
836d694ee9 Consider Trusted Hosts settings while configuring inner venv (PY-41524)
GitOrigin-RevId: 67a97e6312341241704f2d6d80b88900127ec200
2021-02-25 13:34:18 +00:00
Semyon Proshev
5798ffd476 Ask for confirmation before configuring inner venv as a project interpreter (PY-41524)
GitOrigin-RevId: d87ccc1432821a34c7b46036e834c41d7ad02a87
2021-02-25 13:34:17 +00:00
Semyon Proshev
bd0b7586ed Use comparator to choose one interpreter among several already known ones
GitOrigin-RevId: c1c079d21a32c275409baa3bd79b3e71f99dc95a
2021-02-25 13:34:17 +00:00
Semyon Proshev
9ae111b6d2 Sync interpreter inspection and sdk configurator
GitOrigin-RevId: 392bb30dfc4feaaaf95634d566bf55ae2bbeebd5
2021-02-25 13:34:16 +00:00
Alexey Merkulov
c605f743b7 IFT-74 UX-1532 Add IFT promoter to the main tab on the welcome screen
IDEA-CR-70455

GitOrigin-RevId: 685078654e093f2dc48c8ee52df0a3f0a12b2f8f
2021-02-12 16:13:58 +00:00
Nikolay Chashnikov
804cff19da [project structure] avoid unnecessary creation of ModifiableRootModel in ModuleConfigurationState
This commit introduces ModuleConfigurationState::getCurrentRootModel method which can be used if we need to just read the current state of the model and don't need to modify it, and explicit 'getModifiableRootModel' method. The old 'getRootModel' method is deprecated and all its usages are replaced by usages of one of the new methods. This way we avoid creating unnecessary instances of ModifiableRootModel to improve performance and avoid exceptions (EA-251419) which may happen if ModifiableRootModel is created during commit (when ClasspathPanelImpl creates modifiable model to update the table during processing 'rootsChanged').

GitOrigin-RevId: 4cbd410ed6039a5ee652d2585bdeee429baf7df7
2021-01-30 01:37:35 +00:00
Ilya.Kazakevich
fb7e5d6414 Refactor quickfix to clean API
No need to have two methods and break nullable safety.

Poetry plugin could be broken by this change, but Semyon.Proshev will send them a patch)

GitOrigin-RevId: 024cd4861ff1cb65e34e5c2e6c5032ad86205b60
2021-01-28 13:30:08 +00:00
Mikhail Golubev
02fe07c5a9 PY-46381 Don't suggest internal parts of third-party packages to user
Namely, their bundled dependencies and tests.

Common names of test and "vendored" roots were collected based on
a base Anaconda interpreter.

Filtration is done over a module/package qualified name in its closest root,
sharing some parts of the implementation with QualifiedNameFinder.
It's likely to also be utilized in the upcoming auto-importing completion
of qualified names.

To make the customization of a search scope easier to use and extend in
the future, I introduced PySearchScopeBuilder API that allows to build
a custom search scope, excluding some irrelevant parts of a Python SDK.

I also updated the set of known standard library tests.
"idlelib/testcode.py" was removed as the only file entry that is
found only in Python 3.3, which we no longer support.

GitOrigin-RevId: 6676c59011d51371639ce24a5ac5c5b56d6b13fb
2021-01-27 16:34:15 +00:00
Vladimir Krivosheev
fcdeded91b PlatformInspectionProfileConfigurator is used only in pycharm - must be located in pycharm module
GitOrigin-RevId: 4b6d5332f2f720def438b8a525e4194cf8b92209
2020-12-13 12:03:28 +00:00
Semyon Proshev
6d9e039160 Remove support for the previous API since poetry plugin has been moved to the new one
GitOrigin-RevId: 7647679fed2577b6d76d4ac02e2054b23cc5a4ce
2020-12-10 14:02:42 +00:00
Semyon Proshev
a63862b41e Specify working dir for installing packages process since there are could be relative paths in requirements.txt (PY-45740)
GitOrigin-RevId: 97dbc0aebe0acc5f07f4a175da145803d73afb3e
2020-12-01 21:30:01 +00:00
Aleksei Kniazev
c29c23bef0 facet configuration has to be saved explicitly when changed directly (PY-45606)
IDEA-CR-69308

GitOrigin-RevId: 2db90c060b829d053dc128adc5fd155d19d3b213
2020-12-01 08:58:39 +00:00
alla redko
b4a26a33bc IDEA-249571
GitOrigin-RevId: bf729d7df1f0556a51e2590ac65ccd3c0a250a60
2020-11-30 22:16:11 +00:00
Semyon Proshev
9109ab3521 Use editable copy of sdk instead of sdk modificator (PY-39477)
SdkModificator is not well supported in PythonSdkUpdater and editable copy could play its role instead.
The consequence is that changes are applied only after OK is clicked in `Show All` dialog.
Previously it could be came over by creating sdk modificator for original sdk.

GitOrigin-RevId: 5415eb3bb6c971342b1c1ff576c44bc4571d0bde
2020-11-05 18:58:08 +00:00
Semyon Proshev
646a53d6ab Add statistics for venv created from requirements.txt/setup.py/environment.yml/pipfile (PY-44743, PY-44835, PY-44001)
Statistics for PyAddNewPipEnvFromFilePanel will be implemented when its need become clear.

GitOrigin-RevId: 494c4b93ac0211704bcc94ec1c2b3b30652b6f21
2020-10-26 15:43:23 +00:00
Semyon Proshev
31033c8246 Suggest creating pipenv environment using Pipfile (PY-44001)
GitOrigin-RevId: c0df7886a98f4335651dd5921aa041620e18935b
2020-10-19 18:11:17 +00:00
Semyon Proshev
603ae74c21 Make python disposable name more descriptive and not looking like interface
GitOrigin-RevId: 5009db52c121efbbf04952d3843b64ff4dc5888d
2020-10-16 14:44:56 +00:00
Vladimir Krivosheev
924abe229c cleanup (get rid of ServiceManager.get)
GitOrigin-RevId: 7f6a905353889c9795e5d40a8aa60f6251000f05
2020-10-16 11:34:52 +00:00
Semyon Proshev
b9bac7fdc8 Disable processing extensions in sdk configurator in unit test mode (PY-44848)
GitOrigin-RevId: 9797000bc597c42132c9a0d59b12b79b1ff08c6c
2020-10-09 17:46:11 +00:00
Semyon Proshev
dae05a33bf Disable processing extensions in sdk configurator in headless mode
GitOrigin-RevId: afac26373fa12e9d062cd5e54552a84884e88d51
2020-10-09 17:10:17 +00:00