Table of Contents
Start here if you are setting up a brand new development environment, or want to reconfigure your environment from scratch.
Requirements:
The instructions below assume you already have available:
A recent version of IntelliJ. These steps have been validated on IntelliJ 2020.2.2
JDK 1.8 installed and configured in IntelliJ
A local git clone of the apache/beam repository in your home directory ("~/beam")
- ChromeDriver installed and running (chromedriver --port=4444)
- Flutter installed
- The script local-env-setup.sh (Located at the root of the project)ran before importing the project
To set up your IntelliJ project:
- Launch the New Project wizard by closing your project File | Close Project.
- Then click Open from the splash page to open a new project (Depending on what version of IntelliJ you may need to find an option to "Import project" instead)
- Select the settings.gradle.kts in the root of your beam git repo
...
Set Names count to use static import with '*'; to 999
Issues when building:
When building the project with IntelliJ, you may encounter some issues, here is the fix for each issue:
Flutter finished with non-zero exit value 1
When you get this issue, you should make sure that ChromeDriver is installed and running with the command chromedriver --port=4444 and duplicate or rename the file config.example.dart to config.g.dart in the folder playground/frontend/lib.
If you want to see exactly what cause the issue, you can ran just the task that failed. For this example, you could ran the task as the following: ./gradlew integrationTest_standalone_change_example_sdk_run and see the error message.
If you got as an error message the following, then you should only rename the file config.example.dart to config.g.dart
If you got this error message, then you should run ChromeDriver with the following command chromedriver --port=4444
Info | ||
---|---|---|
| ||
Note: You should keep ChromeDriver running until the build is finished. |