CS 241E - Foundations of Sequential Programs (Enriched)


Office Hours

Tutorial Code
Additional Reading

Assignment Setup
IntelliJ IDEA Setup
Assignment Policies


IntelliJ IDEA Setup

  1. Install the Java JDK if you don't have it installed already (Java SE JDK, at least version 11).
  2. Ensure that jdk/bin is in your PATH environment variable. If you are using Windows, the environment variable settings are accessed by searching "Edit the system environment variables" in the Start Menu. The dialog will look like this:

  3. Download and install the Community version of IntelliJ IDEA.
  4. Install the Scala plugin from the Plugins section.

    Once the Scala plugin is installed, restart IntelliJ IDEA.

  5. On the IntelliJ IDEA start screen, click on Open.

    Find build.sbt under the cs241e directory where you unzipped the assignment skeleton code. Click Open.

  6. Click Open as Project on the dialog that appears.

  7. Wait a few seconds for the project to build. You should be able to see a target directory in the Project tool window once building is complete.

  8. To ensure that the IDEA project has been set up correctly, go to the test/src folder and right click on A1Tests. You should see an option to run the test.

    It is normal for this test to fail with a NotImplementedError until you complete part of Assignment 1.

    If you get the following error: Unable to load a Suite class. This could be due to an error in your runpath, click on Invalidate Caches / Restart from the File menu, then click the Invalidate and Restart button. This should resolve the error.