...
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
- Dart installed (version >=3.0.2 <4.0.0)
- The script local-env-setup.sh (Located at the root of the project)ran before importing the project
...
- Make sure to set the language as the following screen shot (The class Module is only available starting from Java 9+)
- Clean & rebuild the project
Try invalidating the IntelliJ cache and restarting the IDE, using
File > Invalidate caches/ restart
Delete the .idea & .gradle project and rebuild or reimport the project
Can't resolve generated AutoValue classes AutoValue_*:
To fix this issue, you should enable annotation processing in IntelliJ. For that, you will need to go
File → Settings → Build, Execution, Deployment → Compiler → Annotation Processors
And check "Enable annotation processing" as in the following image.
After that, you will need to run the build of that specific module. If for example, you want to work on "ElasticsearchIO", you will need to open gradle sidebar,
beam → Tasks → sdks → io → elasticsearch