1
0
Fork 0
mirror of https://github.com/JetBrains/intellij-community.git synced 2025-12-06 11:15:30 -05:00
No description
Find a file
chbndrhnns be0a2a737e [python] PY-72251 Missing test run gutter icon for nested test classes
Merge-request: IJ-MR-181131
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: bae956b8083159c8f28391d058306afef60bf349
2025-12-06 15:30:13 +00:00
.github [JEWEL-1185] Update CMP to 1.10.0-rc01 2025-12-04 19:04:43 +00:00
.idea [MCP Server] IJPL-221739 Update MCP SDK to 0.8.1 2025-12-05 21:22:28 +00:00
aether-dependency-resolver IJPL-221111 convert plexus-utils project library to embedded module 2025-12-05 19:20:09 +00:00
android-customization IJPL-220739 IJ-MR-179029 IJ-MR-175479 IJ-MR-184126 convert kotlinx-coroutines-core lib to product module 2025-12-01 21:40:00 +00:00
bin [platform] less intrusive update of the Defender exclusion list (follow-up to RIDER-128049) 2025-07-28 15:05:31 +00:00
build base test and base test data for bazel incremental builds 2025-12-05 22:08:48 +00:00
commandInterface [plugin model] use 'public' visibility for content modules which classes are used from external plugins (IJPL-207059) 2025-10-08 18:39:06 +00:00
community-resources IJPL-218803 fix scrambling due to packaging of extra classes to scrambled jar - convert core and lang to product modules, extract intellij.platform.credentialStore.impl 2025-11-29 23:22:11 +00:00
docs IJPL-194897 Microservices Endpoints plugin isn't loaded in a standalone frontend (JetBrains Client) installation 2025-09-16 17:56:48 +00:00
fleet LSP-306 [lsp] add some diagnostics 2025-12-05 16:42:50 +00:00
graalvm-debugger IJI-1401 do not specify a platform to use (the target platform of the build request is used) 2024-06-07 15:20:40 +00:00
grid [threading] IJPL-221447: Restore read access in TableResultView 2025-12-03 21:24:01 +00:00
idea/customization IJPL-212573 we need filename as otherwise we cannot detect changes if closed-source product module goes to product.jar 2025-10-26 17:46:01 +00:00
images [actions] IJPL-219402: Replace usages of currentThreadCoroutineScope in actions with AnActionEvent#coroutineScope 2025-12-01 16:03:10 +00:00
java [java] temporary hack in property test to avoid RubyVcsEnvCustomizer deadlock 2025-12-06 12:50:11 +00:00
jps IJPL-221111 convert jgoodies libs to product modules 2025-12-03 09:04:31 +00:00
json IJPL-220741 consume content of objects and arrays in a flat way if the structure gets too deep 2025-12-04 22:20:12 +00:00
jupyter [pycharm] PY-84970 Jupyter: Add restart and run kernel action 2025-11-21 13:58:24 +00:00
jvm IJPL-218803 IJ-MR-179029 IJ-MR-175479 IJ-MR-184126 don't export execution from lang to avoid excessive and incorrect deps on debugger 2025-11-29 15:49:21 +00:00
lib [MCP Server] IJPL-221739 Update MCP SDK to 0.8.1 2025-12-05 21:22:28 +00:00
libraries IJPL-221111 convert kotlinx_serialization_protobuf project library to embedded module 2025-12-05 19:20:10 +00:00
license
native [rdct] IJPL-204792 reduce implicitly required properties for RemoteDev host 2025-09-26 16:47:34 +00:00
notebooks [threading] IJPL-221464: Make WriteIntentReadAction lambda-friendlier 2025-12-03 21:24:01 +00:00
platform IJPL-221111 IJ-MR-179029 IJ-MR-184958 IJ-MR-184126 platform: update visibility modifiers 2025-12-06 12:02:33 +00:00
plugins IJPL-221111 IJ-MR-179029 IJ-MR-184958 IJ-MR-184126 platform: update visibility modifiers 2025-12-06 12:02:33 +00:00
python [python] PY-72251 Missing test run gutter icon for nested test classes 2025-12-06 15:30:13 +00:00
RegExpSupport IJPL-101793 [RegExp]: reset matcher to correctly find partial match in checker 2025-12-01 18:34:28 +00:00
resources IDEA-382819 [live-templates] Remove dependency on groovyScript() from standard Java live templates 2025-12-02 17:27:46 +00:00
resources-en [bazel] Update build files (IJI-3028) 2025-10-15 09:25:34 +00:00
spellchecker [grazie] IJPL-218326 Add a quick fix to mass-apply text suggestions 2025-12-05 16:46:46 +00:00
tools [lambda tests] AT-3643 Set default timeout for lambda test execution 2025-12-05 13:35:38 +00:00
uast IJPL-218803 IJ-MR-179029 IJ-MR-175479 IJ-MR-184126 don't export execution from lang to avoid excessive and incorrect deps on debugger 2025-11-29 15:49:21 +00:00
updater IJPL-35262 updater: sending "associations changed" notification to the shell 2025-11-10 20:47:26 +00:00
wintools [plugin model] use 'internal' visibility for content modules which are used from modules of other plugins (IJPL-207059) 2025-10-08 18:39:06 +00:00
xml [threading, indexing] IJPL-211534: Fix tests after introduction of background write action 2025-12-01 19:02:38 +00:00
.bazelignore jps-to-bazel: ignore repo marker files in .bazelignore 2025-05-07 20:43:10 +00:00
.bazeliskrc bazel: point bazelisk to JetBrains cache server instead of GitHub 2025-07-09 15:50:46 +00:00
.bazeliskversion jps-to-bazel: provide bazel.cmd for running in community context 2025-07-04 01:45:52 +00:00
.bazelproject [bazel] BAZEL-2551 package root optimization 2025-11-24 18:01:16 +00:00
.bazelrc [bazel] cleanup: remove duplicate disk_cache settings .bazelrc (they're now at common.bazelrc) 2025-10-15 10:32:25 +00:00
.bazelversion [bazel] Upgrade bazel to JetBrains/v8.4.2-jb_20251027_92 (IJI-3155) 2025-10-27 18:22:00 +00:00
.community.root.marker introduce .community.root.marker file: a marker of intellij community root 2025-06-18 16:52:55 +00:00
.editorconfig style [*]: restore the Kotlin code style that was agreed upon previously 2025-12-02 13:25:31 +00:00
.git-blame-ignore-revs
.gitattributes use LF line endings for all text files in intellij-community by default (IJI-526) 2024-11-19 14:52:19 +00:00
.gitignore [inline-completion] IJPL-158376: fix retrieving of text attributes for rendering of folded regions 2025-04-11 13:54:15 +00:00
bazel.cmd Revert "Temporarily mkdir XDG_CACHE_HOME environment variable (if any) to ensure the target directory symlink destination exists in bazel.cmd" 2025-08-19 12:47:17 +00:00
BUILD.bazel IJPL-221111 convert jgoodies libs to product modules 2025-12-03 09:04:31 +00:00
build.txt platform: base build number set to 261.SNAPSHOT 2025-10-14 03:27:47 +00:00
build.xml [build scripts] dropping JPS-based updater build task 2024-03-18 22:31:54 +00:00
CODE_OF_CONDUCT.md
common.bazelrc fixup IJI-3260 Bump rules_kotlin to version 2.2.0 2025-11-30 23:23:22 +00:00
CONTRIBUTING.md IJI-3089 Move commit message format info to internal documentation. Leave only minimal info in publicly available CONTRIBUTING.md 2025-11-01 01:58:00 +00:00
Dockerfile build scripts: the .m2 directory should be initialized with something otherwise the chmod effect may be discarded 2025-01-14 22:48:38 +00:00
getPlugins.bat
getPlugins.sh
grazie.pro.qodana.yaml Update Qodana inspection profiles for profanity checks 2025-02-27 12:55:32 +00:00
installers.cmd
intellij.idea.community.main.android.iml [android] (Koala) Merge AS 2024.1.1 Canary 8. Fix 'ModuleDependenciesInIntellijProjectTest' 2024-06-13 08:55:50 +02:00
intellij.idea.community.main.iml IJPL-221111 convert jgoodies libs to product modules 2025-12-03 09:04:31 +00:00
intellij.yaml
LICENSE.txt (Legal-695) License: roll back the changes to the template section 2024-03-04 15:38:15 +00:00
MODULE.bazel IJI-3260 Bump rules_kotlin to version 2.2.0 2025-11-20 16:37:18 +00:00
MODULE.bazel.lock IJI-3260 Bump rules_kotlin to version 2.2.0 2025-11-20 16:37:18 +00:00
NOTICE.txt
qodana.yaml [community] IJPL-181980 Enable newer Qodana image for GitHub checks 2025-10-19 09:54:13 +00:00
README.md [github] IJI-2887 Create a workflow for PyCharm Community build, upload: add badge 2025-10-16 17:52:56 +00:00
SECURITY.md SDP-2920 Add security policy to the intellij-community repo 2024-04-11 18:26:47 +00:00
test-log.properties
tests.cmd build scripts: an option to override preconfigured compilation options in tests.cmd 2025-01-24 21:42:12 +00:00

official JetBrains project IntelliJ IDEA build status PyCharm build status

IntelliJ Open Source Repository

This repository is the open-source part of the JetBrains IDEs codebase. It also serves as the basis for IntelliJ Platform development.

These instructions will help you build and run open source parts of IntelliJ Platform / IntelliJ IDEA / PyCharm.

If you are new to the community and would like to contribute code or help others learn, see CONTRIBUTING.md to get started.

The following conventions will be used to refer to directories on your machine:

  • <USER_HOME> is your OS user's home directory.
  • <IDEA_HOME> is the root directory for the IntelliJ source code.

Getting the Source Code

This section will guide you through getting the project sources and help avoid common issues in git config and other steps before opening it in the IDE.

Prerequisites

  • Git installed
  • ~2GB free disk space
  • Install IntelliJ IDEA 2023.2 or higher.
  • For Windows set these git config to avoid common issues during cloning:
    git config --global core.longpaths true
    git config --global core.autocrlf input
    

Clone Main Repository

IntelliJ open source repository is available from the GitHub repository, which can be cloned or downloaded as a zip file (based on a branch) into <IDEA_HOME>. The master (default) branch contains the source code which will be used to create the next major version of all JetBrains IDEs. The branch names and build numbers for older releases of JetBrains IDEs can be found on the Build Number Ranges page.

You can clone this project directly using IntelliJ IDEA.

Alternatively, follow the steps below in a terminal:

git clone https://github.com/JetBrains/intellij-community.git
cd intellij-community

Tip

  • For faster download: If the complete repository history isn't needed, create shallow clone To download only the latest revision of the repository, add --depth 1 option after clone.
  • Cloning in IntelliJ IDEA also supports creating shallow clone.

Get Android Modules

IntelliJ IDEA requires additional Android modules from separate Git repositories.

Run the following script from project root <IDEA_HOME> to get the required modules:

  • Linux/macOS: ./getPlugins.sh
  • Windows: getPlugins.bat

Important

Always git checkout the intellij-community and android Git repositories to the same branches/tags.


Building IntelliJ IDEA

These instructions will help you build IntelliJ IDEA from source code, which is the basis for IntelliJ Platform development. IntelliJ IDEA '2023.2' or newer is required.

Opening the IntelliJ IDEA Source Code in the IDE

Using the latest IntelliJ IDEA, click 'File | Open', select the <IDEA_HOME> directory. If IntelliJ IDEA displays a message about a missing or out-of-date required plugin (e.g. Kotlin), enable, upgrade, or install that plugin and restart IntelliJ IDEA.

Build Configuration Steps

  1. JDK Setup
  • Use JetBrains Runtime 21 (without JCEF) to compile
    • IDE will prompt to download it on the first build

Important

JetBrains Runtime without JCEF is required. If jbr-21 SDK points to JCEF version, change it to the non-JCEF version:

  • Add idea.is.internal=true to idea.properties and restart the IDE.
  • Go to 'Project Structure | SDKs'
  • Click 'Browse' → 'Download...'
  • Select version 21 and vendor 'JetBrains Runtime'
  • To confirm if the JDK is correct, navigate to the SDK page with jbr-21 selected. Search for jcef, it should NOT yield a result.
  1. Maven Configuration : If the Maven plugin is disabled, add the path variable "MAVEN_REPOSITORY" pointing to <USER_HOME>/.m2/repository directory.

  2. Memory Settings

  • Ensure a minimum 8GB RAM on your computer.
  • With the minimum RAM, disable "Compile independent modules in parallel" in 'Settings | Build, Execution, Deployment | Compiler'.
  • With notably higher available RAM, Increase "User-local heap size" to 3000.

Building the IntelliJ IDEA Application from Source

To build IntelliJ IDEA from source, choose 'Build | Build Project' from the main menu.

To build installation packages, run the installers.cmd script in <IDEA_HOME> directory. installers.cmd will work on both Windows and Unix systems. Options to build installers are passed as system properties to installers.cmd command. You may find the list of available properties in BuildOptions.kt

Installer build examples:

# Build installers only for current operating system:
./installers.cmd -Dintellij.build.target.os=current
# Build source code _incrementally_ (do not build what was already built before):
./installers.cmd -Dintellij.build.incremental.compilation=true

Tip

The installers.cmd is used to run OpenSourceCommunityInstallersBuildTarget from the command line. You can also call it directly from IDEA, using run configuration Build IntelliJ IDEA Installers (current OS).

Dockerized Build Environment

To build installation packages inside a Docker container with preinstalled dependencies and tools, run the following command in <IDEA_HOME> directory (on Windows, use PowerShell):

docker run --rm -it --user "$(id -u)" --volume "${PWD}:/community" "$(docker build --quiet . --target intellij_idea)"

Note

Please remember to specify the --user "$(id -u)" argument for the container's user to match the host's user. This prevents issues with permissions for the checked-out repository, the build output, and the mounted Maven cache, if any.

To reuse the existing Maven cache from the host system, add the following option to docker run command: --volume "$HOME/.m2:/home/ide_builder/.m2"


Running IntelliJ IDEA

To run the IntelliJ IDEA that was built from source, choose 'Run | Run' from the main menu. This will use the preconfigured run configuration IDEA.

To run tests on the build, apply these settings to the 'Run | Edit Configurations... | Templates | JUnit' configuration tab:

  • Working dir: <IDEA_HOME>/bin
  • VM options: -ea

Running IntelliJ IDEA in CI/CD environment

To run tests outside of IntelliJ IDEA, run the tests.cmd command in <IDEA_HOME> directory.tests.cmd can be used in both Windows and Unix systems. Options to run tests are passed as system properties to tests.cmd command. You may find the list of available properties in TestingOptions.kt

# Build source code _incrementally_ (do not build what was already built before): `
./tests.cmd -Dintellij.build.incremental.compilation=true
#Run a specific test: 
./tests.cmd -Dintellij.build.test.patterns=com.intellij.util.ArrayUtilTest

tests.cmd is used just to run CommunityRunTestsBuildTarget from the command line. You can also call it directly from IDEA, see run configuration tests for an example.