Fork me on GitHub
#beginners
<
2018-06-09
>
stardiviner07:06:42

Thanks guys, I fixed this problem. Because my book example code deprecated. So many problems. I got answer in #sql

matan10:06:23

So, what do I need to do or precondition, in order to connect a repl to a running program?

matan10:06:00

I spent 30 minutes on that famous repl vimeo, which didn't provide many clues 30 minutes in.

matan10:06:41

> Covering this topic extensively would take us too far for the scope of this guide On first look, really very disappointing, compared to the hand-wavy sweeping statements of perfection at https://vimeo.com/223309989. Architect's hubris?! or is it really simple beyond that awkward piece of documentation?

matan10:06:31

Any great example workflow attaching to a running program?

seancorfield21:06:15

@U1YTUBH53 I'm not quite sure what you're looking for? If your application starts a REPL server (either an explicit nREPL server process started by your application, or a Socket Server REPL started by Clojure via the JVM options), then you can connect to it and work via the REPL...

seancorfield21:06:26

The Guide is hinting at things like Component and Integrant for structuring your application in a way that makes it easy to start and stop your application within the REPL -- that's not the scenario you're asking about (connecting to a running program).

seancorfield21:06:26

(and, yes, it lists those and other libraries at the end)

seancorfield21:06:38

Happy to help if I can better understand your question...

matan14:06:17

Thanks @U04V70XH6 I just saw this now! I should probably learn what’s the Socket Server REPL feature

matan10:06:46

Thanks in advance!

Maksim Gatilin11:06:40

Is anyone here? I'm trying to use vscode for development but I can't configure repl...

_rj_r_14:06:17

This question might be better asked in #vscode

Maksim Gatilin14:06:35

Thank you. Btw, I decided to use Cursive:slightly_smiling_face:

_rj_r_02:06:01

hmm.. I've never used that. I use VSCode for most all stuff... at least if I don't really need an IDE. I'll have to check that out... Although I also am running Clojure in a docker container right now.. so since I don't have the toolchain installed locally, not sure how much it would be of assistance.

magra12:06:30

Hi, if I try to slurp from a URL that moved the repl "hangs" for a long time. How do I interrupt that without killing the repl?

timo13:06:54

hi there, is it a problem to have a namespace called myproject.core in a file with the path myproject/src/cljs/myproject/core.cljs? I am having problems with my luminus project based on leiningen.

fmn14:06:30

@magra isn't ctrl+c enough?

magra14:06:46

@funyako.funyao156 in a clj repl it kills the repl, in cider it does nothing, in lein repl it works. Maybe my setup is broken.

matan16:06:00

@a.maksadbek may I recommend to you Atom with proto-repl, instead?

macrobartfast17:06:05

how do I add a hashmap to a vector? so I can get [{:foo "bar"}]?

macrobartfast17:06:27

vector is an atom.

macrobartfast17:06:09

used (swap! hashmapthingie into {:foo "bar"}) but got [[:foo "bar"]].

macrobartfast17:06:38

when I expected [{:foo "bar"]].

lepistane17:06:25

instead of into

macrobartfast17:06:00

side question... a vector of hash-maps is familiar because it's like json... but am I better off with something else in clojure?

lepistane17:06:51

depends on the use case having vector with hash-maps is totally valid

macrobartfast19:06:34

I've got http://blog.jayfields.com/2011/02/clojure-web-socket-introduction.html working, but I'm trying to figure out how I could send a message from the repl connected buffer to the webpage, as opposed to from the webpage input.. any thoughts?

macrobartfast19:06:02

I want to be able to type a form into the buffer, evaluate it, and see the webpage change.

macrobartfast19:06:45

it would seem to be a key part of dashboards, say, that update when things change on the server.

macrobartfast19:06:40

all I can think is that I somehow defonce the WebServer so I can send messages to it in the buffer, but I'm not sure what to do after that or how I'd interact with it.