Skip to content

Commit

Permalink
Revise setup doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangt2333 committed Oct 6, 2023
1 parent a274938 commit b1fa760
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
Binary file modified docs/common/img/setup-in-intellij-idea-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/common/img/setup-in-intellij-idea-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/common/img/setup-in-intellij-idea-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/common/img/setup-in-intellij-idea-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/common/img/setup-in-intellij-idea-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/common/img/setup-in-intellij-idea-9.png
Binary file not shown.
16 changes: 6 additions & 10 deletions docs/en/setup-in-intellij-idea.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,26 @@ You may wait a moment for importing Tai-e.

Go to `File > Project Structure…`, click "Project SDK", select JDK 17. Next, expand "Language level", select "SDK default" (if the default is just 17) or "17 - Sealed types, always-strict floating-point semantics":

image::../common/img/setup-in-intellij-idea-4.png[width=750]
image::../common/img/setup-in-intellij-idea-4.png[width=651]

> *Note*: If you have not installed JDK 17 yet, just select `Add SDK > Download JDK…`, and select "17" for "Version", any "Vendor" (usually "Oracle OpenJDK"), and "Location" to be installation location (default is fine), and then click "Download" to start downloading in background:

image::../common/img/setup-in-intellij-idea-5.png[width=750]
image::../common/img/setup-in-intellij-idea-5.png[width=700]

== Step 5 (optional)
== Step 5

As Tai-e is a Gradle project, IntelliJ IDEA always build and run it with Gradle by default, which makes it a bit slower and always output some annoying Gradle-related messages:
As Tai-e is a Gradle project, IntelliJ IDEA always builds and runs it by delegating to Gradle. However, it's important to note that the JVM used by Gradle may differ from the JVM used by the project on certain individuals' machines. To ensure consistency, just go to `File > Settings -> ...`, and change the Gradle JVM to "Project SDK":

image::../common/img/setup-in-intellij-idea-6.png[width=700]

To get rid of these problems, you could use IntelliJ IDEA instead of Gradle to build and run Tai-e. Just go to `File > Settings`, and change the build and run tool from Gradle to IntelliJ IDEA:

image::../common/img/setup-in-intellij-idea-7.png[width=750]

== Step 6

To run Tai-e in IntelliJ IDEA, first choose main class of Tai-e and open "Run Configuration":

image::../common/img/setup-in-intellij-idea-8.png[width=650]
image::../common/img/setup-in-intellij-idea-7.png[width=650]

then configure program arguments as follows:

image::../common/img/setup-in-intellij-idea-9.png[width=650]
image::../common/img/setup-in-intellij-idea-8.png[width=650]

That's it! If you could finish above steps without any problems, then you have successfully setup Tai-e in IntelliJ IDEA. ヽ(。◕‿◕。)ノ゚

0 comments on commit b1fa760

Please sign in to comment.