-
Notifications
You must be signed in to change notification settings - Fork 3
Initial set of instructions to setup the development of this project #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,94 @@ | ||
| # Dart IntelliJ Plugin | ||
|
|
||
| ## Development setup | ||
|
|
||
| 1. Clone this repository with | ||
|
|
||
| ```shell | ||
| git clone git@github.com:flutter/dart-intellij-third-party.git | ||
| ``` | ||
|
|
||
| 2. Download the latest stable [IntelliJ Ultimate](https://www.jetbrains.com/idea/buy) or [IntelliJ Community](https://www.jetbrains.com/idea/download) | ||
| 3. From the "Welcome to IntelliJ IDEA" dialog, select "Open" and then select `third_party` directory in this repository. | ||
| 4. View > Tool Windows > Gradle, and click the button "Sync All Gradle Projects" | ||
| 5. 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_party` directory): | ||
|
|
||
| ```shell | ||
| ./gradlew runIde | ||
| ``` | ||
|
|
||
| ### Gradle tasks | ||
|
|
||
| This project is built with the [IntelliJ Platform Gradle Plugin](https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html) | ||
|
|
||
| To see all current and valid Gradle tasks execute | ||
| ```shell | ||
| ./gradlew tasks | ||
| ``` | ||
|
|
||
| A 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) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: add periods to agree w/ how you formatted Build Tasks. (Or remove them there.) |
||
| 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. | ||
| ... | ||
| ``` | ||
|
|
||
| ### Tests | ||
|
|
||
| To run **all** tests execute | ||
| ```shell | ||
| ./gradlew test | ||
| ``` | ||
|
|
||
| However, 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: | ||
| ```shell | ||
| ./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: | ||
| ```shell | ||
| ./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`. | ||
|
|
||
| ### IntelliJ Plugin Verifier | ||
|
|
||
| See `intellij-plugin-verifier`, https://github.com/JetBrains/intellij-plugin-verifier. | ||
|
|
||
| To run the verifier run: | ||
| ```shell | ||
| ./gradlew verifyPlugin | ||
| ``` | ||
|
|
||
| The plugin verification is run on GitHub presubmits, configured in `.github/workflows/presubmit.yaml`. | ||
|
|
||
| ## Project and repository history | ||
|
|
||
| This repository was originally a copy of the [Dart Plugin for IntelliJ from JetBrains](https://github.com/JetBrains/intellij-plugins/tree/master/Dart) through the commit https://github.com/JetBrains/intellij-plugins/commit/c912b13b1dd8acccd6259dedc4063848a8f87b2b. | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Remove trailing period or add one to all list items.