Lein Problem creating apps

Hi everyone,

I installed lein yesterday and it was working, today after messing with Intellij//Cursive it keep giving me this problem.

Does anyone know what it is?

Windows 10 OS.

REPL server started on port 49725 on host 127.0.0.1 - nrepl://127.0.0.1:49725

REPL-y 0.4.3, nREPL 0.6.0

Clojure 1.10.0

Java HotSpot(TM) 64-Bit Server VM 1.8.0_201-b09

    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)

 Results: Stored in vars *1, *2, *3, an exception in *e

user=> lein new app bulugus

Syntax error compiling at (REPL:0:0).

Unable to resolve symbol: lein in this context

Syntax error compiling at (REPL:0:0).

Unable to resolve symbol: new in this context

Syntax error compiling at (REPL:0:0).

Unable to resolve symbol: app in this context

Syntax error compiling at (REPL:0:0).

Unable to resolve symbol: bulugus in this context

BTW, I can do (+ 1 2) without errors

It It looks like you are trying to run lein new app inside of a Clojure REPL. Is that correct?

Leiningen is primarily used from a command line terminal, for instance PowerShell or Bash.

If you have installed leiningen correctly for Windows 10 (I have not done this, I do not develop on Windows) you should be able to run the commands you’re trying in a PowerShell prompt to generate a new project.

1 Like

I got it working again, I believe I mess up the variable of java on windows with Intellij.

Reinstalled everything and it is working now, JAVA and intellij.

Thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.