Fork me on GitHub
#calva
<
2020-07-11
>
UniqueName22:07:42

"No supported Jack-in project types detected. Maybe try starting your project manually and use the Connect command?"

Bobbi Towers22:07:46

What type of project is it (Leiningen, Clojure CLI, etc.)? Do you have the project folder opened and with a proper project.clj or deps.edn file?

UniqueName22:07:36

No. What needs to be in these files?

UniqueName22:07:32

I try to start a bolieprlat tutorial. The code is plainly: (ns hello-world.core) (println "Hello world!")

Bobbi Towers22:07:09

Assuming you've installed the https://www.clojure.org/guides/deps_and_cli , you can simply place a deps.edn file in the project root containing just an empty hashmap - {}

UniqueName22:07:27

I installed clojure and leiningen. I can start lein from the command line.

UniqueName22:07:52

I created the deps.edn.

UniqueName22:07:08

Now I get the error: "Cannot read property 'aliases' of null"

Bobbi Towers22:07:22

If you are using lein, you need a project.clj. The best way to go would probably be to start a new Leiningen project using lein new my-project

UniqueName22:07:41

Ok, now it miracoulsy worked.

UniqueName22:07:00

"Calva activated. Happy Clojure(Script) coding!"

UniqueName22:07:42

I am a complete newbie, I don't know if I want a leiningen project or not.

Bobbi Towers22:07:02

That's fine, we all started out as newbies. At this point I wouldn't worry about it because it sounds like you've got it running with the Clojure CLI

UniqueName22:07:25

How do I evaluate my code? When I press Ctrl-Alt-C Enter I get: Evaluating file: core.cljs but I would expect "Hello World"

UniqueName22:07:54

What di I need to do?

Bobbi Towers22:07:14

Is the project folder opened in VSCode (Ctrl+K Ctrl+O)?

UniqueName22:07:04

How do I evaluate my code? When I press Ctrl-Alt-C Enter I get: Evaluating file: core.cljs but I would expect "Hello World"

(ns hello-world.core)

(println "Hello world!")