-
Clone this repository with
git clone git@github.com:flutter/dart-intellij-third-party.git
-
Download the latest stable IntelliJ Ultimate or IntelliJ Community
-
From the "Welcome to IntelliJ IDEA" dialog, select "Open" and then select
third_partydirectory in this repository. -
View > Tool Windows > Gradle, and click the button "Sync All Gradle Projects"
-
The Java source code should now be compiled. To launch an IDE with this plugin, execute the following on the command line (from the
third_partydirectory):./gradlew runIde
This project is built with the IntelliJ Platform Gradle Plugin
To see all current and valid Gradle tasks execute
./gradlew tasksA subset of the current output from tasks command:
----------------------------------------------------------
Tasks runnable from root project 'Dart'
------------------------------------------------------------
Build tasks
-----------
assemble - Assembles the outputs of this project.
build - Assembles and tests this project.
...
IDE tasks
---------
cleanIdea - Cleans IDEA project files (IML, IPR)
idea - Generates IDEA project files (IML, IPR, IWS)
openIdea - Opens the IDEA project
Intellij platform tasks
-----------------------
buildPlugin - Builds the plugin and prepares the ZIP archive for testing and deployment.
runIde - Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin loaded.
verifyPlugin - Runs the IntelliJ Plugin Verifier CLI tool to check the binary compatibility with specified IDE builds.
...
To run all tests execute
./gradlew testHowever, in the project tests are split between the unit tests under
src/main/test/java/com/jetbrains/lang/dart and the Dart Analysis Server tests under
src/main/test/java/com/jetbrains/dart/analysisServer.
To run the unit tests on the command line run:
./gradlew test --tests "com.jetbrains.lang.dart.*"To run the Dart Analysis Server tests, first set a DART_HOME (configured and set in
.github/workflows/presubmit.yaml and in the tests themselves), then on the command line run:
./gradlew test --tests "com.jetbrains.dart.analysisServer.*"These test suites can be configured as Gradle run configurations for running and debugging the tests from the IDE.
Each of these test suites are run on GitHub presubmits, configured in .github/workflows/presubmit.yaml.
See intellij-plugin-verifier, https://github.com/JetBrains/intellij-plugin-verifier.
To run the verifier run:
./gradlew verifyPluginThe plugin verification is run on GitHub presubmits, configured in .github/workflows/presubmit.yaml.
This repository was originally a copy of the Dart Plugin for IntelliJ from JetBrains through the commit https://github.com/JetBrains/intellij-plugins/commit/c912b13b1dd8acccd6259dedc4063848a8f87b2b.
Before the move to this repository, the project had 4 working and active branches which were used to build different IntelliJ versions:
243- 2024.3251- 2025.1252- 2025.2master- the current master for intellij-community, targeting the next version 2025.3
In its original location the project was built with Bazel; however, in github.com/flutter, the project is built using Gradle (see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html).