Commit Graph

72 Commits

Author SHA1 Message Date
Konstantin Hudyakov
6a4d2bff4f [terminal] IDEA-342678 Fix PowerShell initialization in projects with virtual env and conda env
GitOrigin-RevId: bffd94a96ffe0d7cf53eb0df6de12b4a41a6b65b
2024-01-29 17:03:15 +00:00
Andrey Cherkasov
1a62d88764 Cleanup: use light services
^IDEA-254577

GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
2024-01-23 06:03:51 +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
Ilya.Kazakevich
5903ec85c4 Migrate python terminal to v2
GitOrigin-RevId: 690d4ead522e2153b89d1ab09ed2026237173160
2023-12-21 21:23:23 +00:00
Sergey Simonchik
5adb20dcc6 terminal: move bash integration to shell-integrations folder (IJ-CR-107365)
GitOrigin-RevId: 1a82bdc56211848e3c7f45d15e13ae2927e84185
2023-05-17 15:43:20 +00:00
Ilya.Kazakevich
93be54fc7d PY-58019: Support `pwsh.exe along with powershell.exe` in terminal activation.
``pwsh.exe`` is a new name for PowerShell 7.1. It is more or less backward compatible

Merge-request: IJ-MR-107058
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: ddc8606b884a7b93bab93c0fc30e4f4b4230a095
2023-05-10 20:18:32 +00:00
Vladimir Krivosheev
227d75a1fc don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Ilya.Kazakevich
9f5a2469ad PY-53890: Run powershell with execution policy `RemoteSigned` to support conda in the terminal activation
Merge-request: IJ-MR-104573
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 92e1ebd9893968ece915c0f1ae12686c7d828ff6
2023-03-14 00:56:38 +00:00
Daniil Ovchinnikov
578eaaf60e rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Valery Teplyakov
ebc066ac2d [fleet] Activate project virtualenv in terminal
FL-10630, FL-15640

GitOrigin-RevId: 3d32440dcf03bd079b29170ea29630849e87a8d2
2022-12-19 02:09:08 +00:00
Vladimir Lagunov
c0d5e73846 PY-57644 Escape characters in PowerShell Conda activator
GitOrigin-RevId: b45b6888327b7aa630106351b3ed673760fb41b7
2022-12-01 14:07:21 +00:00
Andrey Vokin
7fc185917b [PyCharm] use readAction for findSdkForDirectory
GitOrigin-RevId: 28bc6b35c25a212ad0de6490ab19e0696373597d
2022-11-18 14:51:53 +00:00
Ilya.Kazakevich
f0ae385d6b DS-3992: Activate local conda as virtual env (as we're done before).
This is a quick-and-dirty for terminals. Regular conda execution shouldn't be affected since we store python path in ``homePath`` now.

With this change, ``activate.bat`` read by IJ and vars (including ``PATH``) are passed to the terminal

GitOrigin-RevId: 711e5ea84519894ad3779626d4411196abb5a6b6
2022-11-03 21:37:24 +00:00
Ilya.Kazakevich
50ce0b803b Move conda in separate package (as part of refactoring)
GitOrigin-RevId: 9d93793cba64d0aa8352399cd7dd8a1537aec845
2022-09-26 13:53:11 +00:00
Vladimir Krivosheev
0af2e7b5c5 fix - reduce member visibility (public -> private)
GitOrigin-RevId: fe8a4740e27d192798a9fa55ff41112d1b633e49
2022-09-14 15:09:45 +00:00
Andrey Vokin
dad512ccde DS-3673 Interpreter widget doesn't show WSL interpreter
GitOrigin-RevId: bb7754bc6d30d2d9818acbb5cb522b758b78539f
2022-08-12 14:19:48 +00:00
Andrey Vokin
c34f3f30f4 DS-3673 Interpreter widget doesn't show WSL interpreter
GitOrigin-RevId: 6c709c7f4dce4226da9e5d9847b1030d7b836894
2022-08-11 08:35:59 +00:00
Andrey Vokin
3bb6f6204f DS-1661 Add working directory to customizeCommandAndEnvironment
DS-1661 New opened terminal sessions use the Workspace environment even though the opened folder has a different environment set in settings

GitOrigin-RevId: e47df9bc9b6ee65e85f0667f0390be7edce4a891
2022-07-08 09:09:25 +00:00
Ilya.Kazakevich
3cda641232 PY-54801: Automate conda in PS in terminal activation.
Conda installs user profile hook when user runs ``conda init``.
We call this hook manually

GitOrigin-RevId: 2f2886a1a9ce57e6daa828b0c3133b1265cbcfc6
2022-06-30 15:20:05 +00:00
Ilya.Kazakevich
a225ee6251 PY-53979: Activate Conda with PowerShell in terminal.
Since we don't store conda path in SDK, we only can ask user to run `conda init powershell` to patch her profile and add ``conda.exe`` to ``PATH``.

After that, we can run ``conda activate``.

GitOrigin-RevId: c6cdac9252f022d7bcd1e020c8aaeffaa89b3fbf
2022-05-27 02:45:24 +00:00
Ilya.Kazakevich
e2da8e878b PY-22469: Activate Python venv in terminal when Powershell used as shell
GitOrigin-RevId: 4f5cb12a90d27368ce868852949b45bb0518cce3
2022-02-21 15:05:43 +00:00
Sergey Simonchik
6f75cf62a8 terminal: no need to override getDefaultFolder without changing logic
GitOrigin-RevId: 808955019a3d16863f6a8efe40a9496d8e7accf1
2022-02-21 09:58:28 +00:00
Ilya.Kazakevich
a60c2cd8d6 PY-22469: Activate Python venv in terminal when Powershell used as shell
(cherry picked from commit 8b1071f8fdeb306213e43e8c971ebffb2077aac3)

IJ-CR-20759

GitOrigin-RevId: 8a65ea59b40d5d985b9fb5a7910201d52b5fef04
2022-02-14 15:48:18 +00:00
Sergey Simonchik
2812f1101e terminal: refactor TerminalOptionsProvider
GitOrigin-RevId: 8d13ed2f5aae093ce3323234cb998784ac1a0464
2022-01-10 10:33:09 +00:00
Vladimir Krivosheev
809b7ca201 deprecate ServiceManager.getService(project)
GitOrigin-RevId: 3805c3aac4e084c828558bf1b1570339f7f3b4a3
2021-03-26 21:30:32 +00:00
Tagir Valeev
4d21ad341f Annotate bundle methods as Nls
GitOrigin-RevId: db851b498d99f538e1f747faa4fb4d954848982f
2020-07-17 07:46:42 +00:00
Vladimir Krivosheev
d4e9b09e26 cleanup (final)
GitOrigin-RevId: 93607e195763f2acf29ee0d7a280d7e07e8d2f14
2020-06-26 12:21:17 +03:00
Sergey Simonchik
35004c9344 python: remove unneeded PATH set, shell should add /usr/local/bin to PATH on macOS (IDEA-209282)
GitOrigin-RevId: 637f1dbc5128516adeaa235fcbb537a47b5c39e4
2020-03-26 21:05:36 +00:00
Dmitry.Krasilschikov
a47b8f5a72 Bundle API: rename lazyMessage() to messagePointer()
GitOrigin-RevId: 1b4a35db8900da03fe48d4638362e5ea36cf106b
2020-03-03 16:02:28 +00:00
Alexander Koshevoy
831d39b705 PY-40431 Extract messages from intellij.python.terminal module to the message bundle
GitOrigin-RevId: c0d584eff9d43e03895009bbfbf580ff31c058ed
2020-02-10 14:20:15 +00:00
Stanislav Utikeev
101f0cea62 LAB-31 Extract PySkeletonGenerator to intellij.python.sdk module
GitOrigin-RevId: c3439371efa9a882f1f208b64fb8c0bc31e7b71f
2020-02-10 11:03:00 +00:00
Vladimir Krivosheev
ba98224912 remove author (only some, where it is ok)
GitOrigin-RevId: 7dbab7524fe4efc5d17a04b95dee88b6f80fbe8d
2020-01-21 17:36:52 +00:00
Gregory.Shrago
92f5adff73 PY-38312 Reuse Python plugin in PyCharm
GitOrigin-RevId: 614aecfde6c57cb8f2b99c01c7085c5ae33a1d5d
2019-10-08 17:03:50 +00:00
Alexander Zolotov
4f5dbd65a4 Make python auxiliary plugins incompatible with IntelliJ IDEA as they are bundled into python plugin
+ get rid of python plugin without auxiliary plugins inside

GitOrigin-RevId: 4a74b542be95aa012b7d74755bfffab21c8c0cfe
2019-09-30 15:03:47 +00:00
Dmitry Trofimov
a0bc048dcc python-psi-impl extracted
GitOrigin-RevId: e3d808c147ac793701c7b628dbf825a99bb71f2a
2019-09-11 19:15:01 +00:00
Semyon Proshev
8a9fdccfb0 Increase usage of cached sdk env 2019-03-20 19:53:51 +03:00
Alexander Zolotov
aab264bb0b Delete version tags from plugin.xml files
They don't make any sense since
- they are not required for bundled plugins (com.intellij.ide.plugins.IdeaPluginDescriptorImpl#myVersion will be filled with IDE version)
- they will be overwritten during the build for pluginsToPublish (org.jetbrains.intellij.build.impl.DistributionJARsBuilder#setPluginVersionAndSince)

Still they may affect plugins loading mechanism, e.g. see https://youtrack.jetbrains.com/issue/GO-6741 or https://youtrack.jetbrains.com/issue/IDEA-188964
2019-01-18 15:59:46 +03:00
Semyon Proshev
2ec97c0881 Base conda also does some activation so consider it as some kind of virtual env (PY-27234) 2019-01-18 13:50:47 +03:00
Semyon Proshev
c4585296b9 Fix activating conda env in python console and through command line (PY-27234)
Conda provides `Path` variable but PyCharm expected `PATH`.
2019-01-18 13:50:06 +03:00
nik
d2653869a5 IntelliJ project configuration: rename KotlinJavaRuntime library to kotlin-stdlib-jdk8
For clarity and consistency with artifactId and other Kotlin libraries.
2019-01-11 11:59:04 +03:00
Sergey Simonchik
c89c6d400f python: fallback to basic virtualenv integration (update env vars like PATH) if shell integration is off (IDEA-CR-41605) 2018-12-24 16:42:38 +03:00
Sergey Simonchik
955816d774 terminal: remove outdated comment 2018-12-24 15:19:28 +03:00
Sergey Simonchik
cf6c6fe910 terminal: keep --login to work correctly with "Shell integration" unchecked (IDEA-204683) 2018-12-24 15:18:21 +03:00
Dmitry Trofimov
b9945804d0 Fix conda auto-activation for bash (PY-23417) 2018-11-09 00:15:21 +01:00
Sergey Ignatov
63eb8866a5 kotlin speedup: specify return type for public/protected APIs 2018-05-24 18:58:47 +03:00
Vladimir Krivosheev
530727db20 kotlin 1.2 — use [] instead of arrayOf for storages 2018-02-13 11:52:45 +01:00
nik
c9620ce099 IDEA project configuration: the great module rename
Rename all modules in IntelliJ IDEA sources to ensure that they follow a consistent naming scheme.

Update *.iml files.
2018-01-25 12:59:02 +03:00
nik
16410c2321 IDEA project configuration: the great module rename
Rename all modules in IntelliJ IDEA sources to ensure that they follow a consistent naming scheme.

Rename iml files.
2018-01-25 12:59:02 +03:00
Anton Makeev
d681db4179 CPP-10844 Visual Studio is not found when path to VS or user home contains non ascii characters: EnvironmentUtil API cleanup 2017-11-15 22:53:10 +01:00
Dmitry Trofimov
d800511e46 For PY-17816 we need only a PATH variable from the environment map
Taking more we can override some useful environments set previously, for example locale as it happens here IDEA-171957
2017-05-10 14:34:09 +02:00