Skip to content

Using IntelliJ Cursive with Arcadia

Tyler Tolton edited this page Jul 4, 2017 · 20 revisions

GETTING AUTOCOMPLETE WORKING

GIVEN...


  • 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

WHEN...


  1. In IntelliJ, File > Open... Select your Unity Project Select your project's containing folder
  2. In the Project Panel on the left, select the Assets directory assets directory
  3. Right click, mark the directory as Sources Root Mark as sources Root
  4. Create a new Clojure Namespace within the Assets directory, name it anything you want. new namespace
  5. 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) setup sdk default IDE SDK

THEN...


  1. 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. refresh projects
  2. See the magic at work! In your clojure code, require the arcadia project and you should see intelliJ suggest autocompletion options for you. require arcadia function autocomplete

GETTING THE REPL WORKING

GIVEN...


  • You have completed the steps above
    • Specifically, you need to have an intelliJ project that contains the Assets directory of your Unity Project.

WHEN...


  1. Clone the The Arcadia nREPL project into your Assets folder
Clone this wiki locally