Skip to content

Commit 5212914

Browse files
authored
Merge branch 'master' into cq_dep_coverageRunner
2 parents a5ab269 + debc197 commit 5212914

39 files changed

+430
-1268
lines changed

.github/workflows/presubmit.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,11 @@ permissions:
1818
jobs:
1919
presubmit:
2020
runs-on: ubuntu-latest
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
version: [2024.3, 2025.1]
2521
steps:
2622
- name: checkout
2723
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
28-
- name: build ${{ matrix.version }}
24+
- name: build
2925
run: ./tool/github.sh
30-
env:
31-
IDEA_VERSION: ${{ matrix.version }}
3226
checker:
3327
runs-on: ubuntu-latest
3428
strategy:

.github/workflows/presubmit.yaml.template

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ permissions:
1616
jobs:
1717
presubmit:
1818
runs-on: ubuntu-latest
19-
strategy:
20-
fail-fast: false
21-
matrix:
22-
version: [@VERSIONS@]
2319
steps:
2420
- name: checkout
2521
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
26-
- name: build ${{ matrix.version }}
22+
- name: build
2723
run: ./tool/github.sh
28-
env:
29-
IDEA_VERSION: ${{ matrix.version }}
3024
checker:
3125
runs-on: ubuntu-latest
3226
strategy:

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,3 @@ lib/kotlin*
4747
.gradle
4848
/build/
4949
gradle-app.setting
50-
gradle/wrapper/gradle-wrapper.jar
51-
52-
# User specific configuration based on current Intellij SDKs.
53-
gradle.properties

CHANGELOG.md

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,46 @@
1-
# 86
1+
## 87.1
2+
3+
- Register VM service with DTD (#8436)
4+
- Fix for ClassCastException: BadgeIcon on flutter runs (#8426)
5+
- Fix the FlutterDependencyInspection for the analyzer workspaces (#8428)
6+
7+
## 87
8+
9+
- Fixes to Flutter test execution (#8233, #8325)
10+
- Make Android dependencies optional, allowing the plugin to be used in more Jetbrains products (Rider, etc) (#7949, #8375)
11+
- Internal: support for logging to a dedicated plugin log file (#8253)
12+
- Fixes to ensure the Property Editor loads on all project opens (#8268)
13+
- Fix the hang after opening a new project in Android Studio (#8390)
14+
15+
## 86
16+
217
- New message in DevTools windows for "Dock unpinned" IntelliJ feature (#8181)
318
- Fixes for Slow Operation notifications in the IDEA platform (#7792)
419
- Fix in Flutter project creation flow (#8259)
520
- Many code health improvements and code cleanups (#8025, #8027, #8021)
621
- Migration of deprecated API usages (#7718)
722
- Fix for empty menu item in the device selector (#8264)
823

9-
# 85.3
24+
## 85.3
25+
1026
- Add Property Editor side panel (#7957)
1127
- Support removed for IDEA 2024.1 (Koala) and 2024.2 (Ladybug) (#8073)
1228
- Various cleanups including migrating slow operations to non-blocking calls (#8089)
1329

14-
# 85.2
30+
## 85.2
31+
1532
- Fix broken devtools inspector source navigation (#8041)
1633

17-
# 85.1
34+
## 85.1
35+
1836
- Fix the disappearance of the New Flutter Project menu item (#8040)
1937
- Add back the device name with the running tab (#7948)
2038
- Update the `org.jetbrains.intellij.platform` version to `2.5.0` (#8038)
2139
- Replace deprecated ComboBoxWithBrowserButton (#7931)
2240
- Fix Flutter Outline View event over-subscriptions (#7980)
2341

24-
# 85
42+
## 85
43+
2544
- Restored Test with coverage run configuration feature (#7810)
2645
- Upgrade `org.jetbrains.intellij.platform` to 2.2.1 from 2.1.0 (#7936)
2746
- Fix for DevTool windows not appearing (#8029)
@@ -33,35 +52,42 @@
3352
- Cleanup: removal of the deprecated Performance page window (#7816)
3453
- Migrated all instances of EditorNotifications.Provider to the new API (#7830)
3554

36-
# 84
55+
## 84
56+
3757
- This version was not shipped due to issue #7968
3858

39-
# 83
59+
## 83
60+
4061
- First version for Meerkat, Android Studio 2024.3 (#7799)
4162
- Message in the Flutter Outline window that the window is now deprecated (#7778)
4263
- Testing and cleanup now that the code is migrated to the new Gradle Plugin (#7670)
4364

44-
# 82.2
65+
## 82.2
66+
4567
- Release of the plugin for 2024.3 (#7670)
4668
- Migration to IntelliJ Platform Gradle Plugin (2.x) (#7670)
4769
- The Flutter coverage runner support has been removed (#7670)
4870

49-
# 82.1
71+
## 82.1
72+
5073
- Fix for Cannot invoke "com.intellij.openapi.wm.ToolWindow.setAvailable(boolean)" issue -- thanks to @parlough (#7691)
5174
- New SDK notification to notify of old Flutter SDK usage (#7763)
5275
- Progress on migrating off of old IDEA APIs (#7718)
5376
- Significant code cleanup
5477

55-
# 82
78+
## 82
79+
5680
- Various DevTools integration improvements (#7626) (#7621)
5781
- Removal of the old Performance page, now replaced by DevTools (#7624)
5882
- Add an option to reload a DevTools window (#7617)
5983
- Fix to the developer build (#7625)
6084

61-
# 81.1
85+
## 81.1
86+
6287
- Initial support 2024.2 & Android Studio Ladybug Canary 6 (#7595)
6388

64-
# 81
89+
## 81
90+
6591
- New icons to match "New UI" features in IntelliJ and Android Studio (#6595)
6692
- Restore Flutter test icons in the editor gutter (#7505)
6793
- Fix widget tree highlighting in the editor (#7522)
@@ -71,7 +97,8 @@
7197
- Configure the Project view for Flutter in AS, when creating a new Flutter project (#4470)
7298
- Migrate to Kotlin UI DSL Version 2 (#7310)
7399

74-
# 80
100+
## 80
101+
75102
- Resolve debugger issue with the new Dart macro file uri format (#7449)
76103
- Hide deep links window when insufficient SDK version (#7478)
77104
- Fix exceptions out of FlutterSampleNotificationProvider (#5634)

CONTRIBUTING.md

Lines changed: 6 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
5252
If you already have a fork and are now installing a development environment on a new machine,
5353
make sure you've updated your fork with the master branch
5454
so that you don't use stale configuration options from long ago.
55-
4. `git clone -c core.symlinks=true https://github.com/<your_name_here>/flutter-intellij`
55+
4. `git clone https://github.com/<your_name_here>/flutter-intellij`
5656
5. `cd flutter-intellij`
5757
6. `git remote add upstream https://github.com/flutter/flutter-intellij`
5858
The name `upstream` can be whatever you want.
@@ -117,27 +117,6 @@ name and contact info to the [AUTHORS](AUTHORS) file.
117117
- [IntelliJ Downloads](https://www.jetbrains.com/idea/download/)
118118
- Either the community edition (free) or Ultimate will work.
119119
120-
2. Create a `gradle.properties` file.
121-
- In the root directory, create an empty `gradle.properties` file (`touch gradle.properties`)
122-
- Add the following to the file:
123-
```
124-
name = "flutter-intellij"
125-
buildSpec=2024.3
126-
flutterPluginVersion=1
127-
ideaProduct=android-studio
128-
ideaVersion=2024.3.1.7
129-
baseVersion=243.22562.59
130-
dartPluginVersion= 243.21565.120
131-
androidPluginVersion=
132-
sinceBuild=243
133-
untilBuild=253.*
134-
testing=true
135-
kotlin.stdlib.default.dependency=false
136-
org.gradle.parallel=true
137-
org.gradle.jvmargs=-Xms1024m -Xmx4048m
138-
```
139-
- **[Note]** If you want, you can manually change these properties to target different versions of IntelliJ. See `product-matrix.json` to find which configurations are supported.
140-
141120
3. Start IntelliJ IDEA with the `flutter-intellij` project.
142121
- If you see a popup with "Gradle build scripts found",
143122
**confirm loading the Gradle project, and wait until syncing is done.**
@@ -149,7 +128,7 @@ name and contact info to the [AUTHORS](AUTHORS) file.
149128
- `cd path/to/flutter-intellij`
150129
- `dart pub get`
151130
- `(cd tool/plugin; dart pub get)`
152-
- `bin/plugin test`
131+
- `./gradlew test`
153132
- Note: If there are Dart errors during build originating in the `tool/plugin` directory, try deleting the contents of the `pubspec.lock` file and re-running the pub get steps. This will allow you to get a fresh set of pub packages.
154133

155134
### Configure "Project Structure" settings
@@ -193,13 +172,14 @@ name and contact info to the [AUTHORS](AUTHORS) file.
193172
194173
5. Configure the modules for the Project
195174
- Select "Project Settings > Modules"
196-
- Select the `flutter-intellij > flutter-idea` module
175+
- Select the `flutter-intellij` module
197176
- Switch to the "Paths" window
198177
- Select the **Inherit project compile output path** option, then apply.
178+
- Do the same for the subdirectories, `main` and `test`.
199179
200180
6. Change the modules SDK to the Project SDK
201181
- Select "Project Settings > Modules"
202-
- Select all the sub-directories under the `flutter-intellij > flutter-idea` module
182+
- Select all the subdirectories under the `flutter-intellij` module
203183
- Switch to the "Dependencies" window
204184
- Change the "Module SDK" selection to `Project SDK`.
205185
@@ -255,30 +235,6 @@ name and contact info to the [AUTHORS](AUTHORS) file.
255235
- Expand `Edit configuration templates...` and verify that Flutter is present.
256236
- Click [+] and verify that Flutter is present.
257237
258-
### Handle symlinks
259-
260-
If exceptions like these occurred:
261-
262-
```
263-
A problem occurred configuring project ':flutter-idea'.
264-
> Source directory 'X:\path\to\your\flutter-intellij\flutter-idea\resources' is not a directory.
265-
```
266-
267-
Check if the directory is a symlink by opening the link in IDEA, and it'll display as:
268-
269-
```symlink
270-
../resources
271-
```
272-
273-
Delete the file, then re-clone the repo using the below command:
274-
275-
```shell
276-
git clone -c core.symlinks=true https://github.com/<your_name_here>/flutter-intellij
277-
```
278-
279-
**NOTE**: Avoid adding symlinks during development if you can,
280-
since they can lead to various file-based issues during development.
281-
282238
## Provision Tool
283239
284240
This is not currently required. However, for debugging unit tests, it may be handy; please ignore for now.
@@ -326,27 +282,17 @@ To be able to debug a single test class or test method, you need to do the follo
326282
The test configuration can be tricky due to the IntelliJ platform versioning.
327283
The plugin tool (below) can be a more reliable way to run tests.
328284
329-
### Using the plugin tool on the command line
285+
### Using the command line
330286
331287
To run unit tests on the command line:
332288
333-
```
334-
bin/plugin test
335-
```
336-
337-
See `TestCommand` in `tool/plugin/lib/plugin.dart` for more options.
338-
339-
It is also possible to run tests directly with Gradle, which would allow passing more command-line arguments:
340-
341289
```
342290
./gradlew test
343291
```
344292
345293
If you wanted to run a subset of the tests, you could do so this way.
346294
See the [Gradle docs](https://docs.gradle.org/current/userguide/java_testing.html)
347295
for more info about testing.
348-
*However*, you must have run the tests once using the plugin tool,
349-
to ensure all the dependencies have been configured.
350296
351297
## Adding platform sources
352298
@@ -361,31 +307,6 @@ Sometimes browsing the source code of IntelliJ helps understand platform details
361307
Accept all the root folders found by the IDE after scanning.
362308
- Do the same for the `intellij-plugins` repo to get Dart plugin sources. Sync to the same version as before.
363309
364-
## Working with Android Studio
365-
366-
Android Studio cannot use the Gradle-based project definition,
367-
so it still needs the `flutter-intellij-community.iml` file.
368-
Obviously, unit tests can only be run from the command line.
369-
370-
1. Initialize Android Studio sources.
371-
2. Checkout Flutter plugin sources, tip of the tree.
372-
3. Follow the directions for setting up the Dart plugin sources in
373-
`intellij-plugins/Dart/README.md` with these changes:
374-
- you do not need to clone the intellij-community repo
375-
- open studio-main/tools/adt/idea in IntelliJ
376-
- possibly skip running `intellij-community/getPlugins.sh`
377-
4. Checkout Dart plugin sources.
378-
5. Using the Project Structure editor, import
379-
- intellij-plugins/Dart/Dart-community.iml (if there are lots of errors, see step 7)
380-
- flutter-intellij/flutter-intellij-community.iml
381-
6. Using the Project Structure editor, expand the tree to show `intellij > android > adt > ui`.
382-
Select the `ui` module, then add a module dependency from it to `flutter-intellij-community`.
383-
Also, add a dependency on the Dart module unless using step 7.
384-
7. (Optional, when Dart sources are not usable.) Make sure the `flutter-intellij-community` module
385-
has a dependency on a library named `Dart`. It should be pre-defined, but if it is out of date,
386-
then adjust it to point to `flutter-intellij/third_party/lib/dart-plugin/xxx.yyyy/Dart.jar`.
387-
Delete the Dart module from the Project Structure modules list.
388-
389310
## Flutter DevTools Integration
390311
391312
### Working with Embedded DevTools (JxBrowser)

0 commit comments

Comments
 (0)