I just started learning Clojure in my free time and for fun. I installed Leiningen and my REPL is working on a Windows team. But I wanted to use the IDE and download Nightcode . But I have problems with a lack of Java experience and a lack of documentation.
I tried to read the Leiningen documentation , but that didn't make much sense either. I know that I do not understand the basics. When I click Run on Nightcode, I just get this result
Running...
Compiling my-project.core
Hello, World!
I know this is a very new question, but can someone direct me to the right place on how to introduce some Clojure functions and run it and see the result in Nightcode? I expected to see something as simple as Python IDLE, but it is completely different.
Thanks.
Answer by Re Jared314:
Now I have this code in the top window:
(ns newclojureproject.core
(:gen-class))
(+ 1 2 3)
I click Run with REPLand I do not see the result for the sum, but this one
my-first-project.clj=> Running...
Compiling my-first-project.clj
Running with REPL...
nREPL server started on port 51595 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
my-first-project.clj=> Running...
=== Finished ===
=== Finished ===
What am I doing wrong?
source
share