This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # adventofcode (4)
- # beginners (113)
- # boot (165)
- # cider (192)
- # cljsrn (82)
- # clojure (148)
- # clojure-austin (6)
- # clojure-russia (22)
- # clojure-spec (45)
- # clojure-uk (19)
- # clojurescript (153)
- # core-async (5)
- # cursive (7)
- # datomic (2)
- # defnpodcast (2)
- # emacs (1)
- # hoplon (617)
- # instaparse (10)
- # lein-figwheel (19)
- # luminus (4)
- # off-topic (12)
- # om (3)
- # onyx (36)
- # pedestal (1)
- # protorepl (43)
- # re-frame (8)
- # ring (7)
- # specter (17)
- # testing (2)
- # untangled (117)
- # yada (12)
hi all noob here (started clojure a day ago). how should I load a dependency in proto repl (or any repl for that matter)? Thanks
@sneakypeet also check #beginners if you run into things that are not strictly protorepl related
@sneakypeet well, depending on whether you were asking about the
require stuff or loading a jar it might be protorepl specific (require is general but loading a jar may be specific)
I basically followed the advanced atom setup suggested by the author, and then just call Proto Repl: Toggle
I see. Unfortunately I'm not sure if Proto Repl makes use of the information in your
project.clj — you could try starting a repl with
lein repl and then connecting to it via proto repl
I think there is a "Proto Repl: Connect" thing or similar that you should find via the command palette @sneakypeet
ok stumbled on it. proto repl will load your lein deps if you run toggle. you can just refer them as usual. this was not working as I had a compiler error in my core.clj file
That's the most important thing. What's your background and what makes you play with Clojure if I may ask?
typical OO journey. .net/c# and js web dev. stumbled upon f# and elm and something just clicked. did some functional js for a while but decided I wanted functional features as first class citizens (immutable data etc). someone pointed to clojure and I finally have time for a deep dive
@dorianc.b: you can clear individual results with esc. There's a keybinding to clear all of them in an open file. See the very last command on the Proto REPL readme.
I just published a new version of the proto-repl-sayid Atom plugin and the Clojure library.
Unfortunately due to some shenanigans on my part I had to recreate the Atom package if you were trying it out. You may need to uninstall and reinstall it to get the latest version.
Actually, Atom devs just said you probably won't have to reinstall it so all should be good.
@jasongilman I noticed that for ProtoREPL on Windows I was getting warnings that
compliment couldn’t be found but I wasn’t getting those on macOS. I added
compliment as an explicit dependency to my project (when starting a REPL) and now I see much better autocompletion with inline documentation of functions etc. Any idea why a) I didn’t get the warnings on macOS and b) why I needed to add
compliment manually as a dependency?
@seancorfield: I would make sure that compliment was getting included transitively through the Proto REPL lib dependency.
Duh! That would actually be my problem… I followed the “opinionated” setup guide and it doesn’t mention adding
proto-repl as a Clojure dependency — I see someone noted that in a comment on the Gist!
I hadn’t noticed that dependency on the setup before. I wonder what else I’m missing out on? 🙂
There's a demo project with a list of demos. If you can do all of them or everything in my presentation you're not missing out on anything.