-
Notifications
You must be signed in to change notification settings - Fork 106
Using IntelliJ Cursive with Arcadia
Tyler Tolton edited this page Jul 4, 2017
·
20 revisions
- IntelliJ and Cursive Are installed
- Unity is installed and you have set up the project according to the Usage guide. You now have an Assets folder with Arcadia in it.
- For demonstration purposes, I have named my project CursiveArcadia in the examples that follow
- In IntelliJ, File > Open... Select your Unity Project
- In the Project Panel on the left, select the Assets directory
- Right click, mark the directory as Sources Root
- Create a new Clojure Namespace within the Assets directory, name it anything you want.
- At the top, you'll get a warning that no Project SDK is defined. Click the suggested link, and choose the default IDE jdk (unless you have some other jdk you would prefer)
- To get IntelliSense running against your project and its dependencies, refresh your leiningen projects (double tapping shift and searching for
Refresh Leiningen Projects) or restart Intellij. You will need to do this again whenever you add new external clojure files to the project. - See the magic at work! In your clojure code, require the arcadia project and you should see intelliJ suggest autocompletion options for you.
- You have completed the steps above
- Specifically, you need to have an intelliJ project that contains the Assets directory of your Unity Project.
- Clone the The Arcadia nREPL project into your Assets folder