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

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

porkostomus22: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?

way_gfp8cs22:07:36

No. What needs to be in these files?

way_gfp8cs22:07:32

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

porkostomus22: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 - {}

way_gfp8cs22:07:27

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

way_gfp8cs22:07:52

I created the deps.edn.

way_gfp8cs22:07:08

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

porkostomus22: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

way_gfp8cs22:07:41

Ok, now it miracoulsy worked.

way_gfp8cs22:07:00

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

way_gfp8cs22:07:42

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

porkostomus22: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

way_gfp8cs22: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"

way_gfp8cs22:07:54

What di I need to do?

porkostomus22:07:14

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

way_gfp8cs22: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!")