Skip to content

Commit 5181d30

Browse files
committed
Add README instructions to switch to ns & load file
in IntelliJ, before evaluating expressions. Otherwise users will get runtime exceptions (symbols not found).
1 parent ecca672 commit 5181d30

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,13 @@ Once installed:
107107
- In the left pane, navigate down to the `project.clj` file, under the project's root folder.
108108
- Right click on `project.clj` and select the option that says "Run REPL for ..."
109109
- A right pane should open, with a REPL session.
110-
- Now, open the `ex00..` file under the `src` folder, scroll down a little, till you see `(+ 1 2)`.
110+
- Now, open the `ex00..` file under the `src` folder
111+
- Use the menu under Tools > REPL to (a) Switch to the file's "namespace", and then (b) load the file into the REPL
112+
- Scroll down a little, till you see `(+ 1 2)`.
111113
- Place your cursor after the closing parenthesis `)`, then right-click to open the context menu, and click on REPL > "Send '(+ 1 2)' to the REPL.
112114
- You should see '(+ 1 2)' appear in the REPL window, followed by `3`. This means you successfully evaluated an expression in the REPL.
113-
- Now you may start from the top of ex00 and work through the material.
115+
- Now you may start from the top of ex00 and work through the material in each "ex" file
116+
- Important: For every exercise file, remember to first switch to the file's namespace, and load the file in the REPL (use the menu under Tools > REPL)
114117

115118
Also keep the Cursive user guide handy, in case you need editor help, as you solve the workshop material. In particular, the [Paredit guide](https://cursive-ide.com/userguide/paredit.html) may be useful, if you stumble when editing Clojure code.
116119

0 commit comments

Comments
 (0)