Using the Nightcode IDE with Clojure

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?

+4
source share
5 answers

I am the author of Nightcode, so I can help. The Run with REPL button is the equivalent of running "lein repl" on the command line. It should bring up a hint where you can enter clojure commands in the context of your project. It looks like you quickly pressed a few buttons, so the invitation was not available.

, , REPL clojure, , . , , , , . , .

, Nightcode.

+7

Run with REPL, Reload . clj src/my_project/, ns Run with REPL.

, Reload, REPL. (: Reload , .) , - JVM. , project.clj Stop, Run with REPL.

Nightcode REPL, . , enter, , .

+1

, , . ​​ - , Clojure, . , Leiningen , repl. - , , , .

0

Nightcode - IDE, - . , . , , 80-. , 15 . . , , Emacs? Notepad ++? - Clojure, IDE .

0
  • Run with REPL, , REPL .
  • InstaREPL, /

Now, no matter what you write in the editor, you can see its result to the left of your editor in green. If there is an Error / Exception, it will be shown in red.

Hope this helps you!

0
source

All Articles