Fork me on GitHub
#protorepl
<
2018-02-23
>
matan20:02:04

@lee.justin.m do I have to worry about other plugins overriding some of the keyboard shortcuts? does the latest installed plugin "win"?

matan20:02:40

I still do not fathom why does the docs say "ctrl alt <key>" yet means "hold ctrl + comman, release, then press <key>"

justinlee20:02:28

i don’t know that either

justinlee20:02:43

in terms of conflicts, yes, you can have them

justinlee20:02:50

i don’t exactly know what the order for resolution is

justinlee20:02:12

if you hit Cmd-. it will bring up the resolver, which will show you the conflicts

justinlee20:02:37

if there are packages that are getting clobbered they’ll show up in grey

matan21:02:28

Well if anyone cares, here my silly addition to clojure development in atom 😂 https://atom.io/packages/online-clojure-search

sparkofreason21:02:07

Ping-ponging back to proto-repl after using for awhile, going back to cursive/intellij, and returning again. This time I plan on cataloging the little things that bugged me, and seeing if I can help get them fixed. First thing I ran into was that the actual REPL window does not auto-scroll. Is this a known issue?

seancorfield21:02:40

@dave.dixon It does auto-scroll -- most of the time... But if a panel pops up at the bottom and hides the current last line (e.g., doing a find), then it stops scrolling.

seancorfield21:02:08

I tend to clear the REPL regularly so the last line is always further up the screen (or simply not bother to even look at the REPL since I never type into it and generally use the inline result displays in my source editor.

sparkofreason21:02:25

@seancorfield Right, just verified, and that rings a bell. Any idea what causes that problem? It's not a big deal, just one on the list of the "thousand cuts" that eventually bled me dry the first time.

seancorfield21:02:13

I haven't looked at the source code so, no idea.

matan22:02:09

Is any form of "jumping to definition" provided by proto-repl? I see a command for jumping to the source of a Var, but it doesn't work for me.

justinlee22:02:10

it doesn’t work unless you are using clojure and are connected to a real clojure repl

matan22:02:50

so should I just start a repl with proto-repl first thing as I load a clojure project, if I want this feature working for me?

justinlee22:02:22

you definitely need a session going and i’m pretty sure that session has to be a real clojure session, not an nrepl session and probably not a cljs session

justinlee22:02:30

(i.e. it doesn’t work for my needs so i’m not sure)

matan22:02:41

so which proto-repl command should I invoke to get going? it's not really clear to me from how the different repl commands are named/documented

matan22:02:25

thanks in advance!

seancorfield22:02:18

@matan I generally use Proto Repl: Toggle which is cmd-opt-l or ctl-alt-, l (that's an L) which starts a Clojure REPL based on the first project in your workspace.

seancorfield22:02:25

Or you can open the project's project.clj / build.boot file and do cmd-opt-L or ctl-alt-, L (Toggle Current Project clj)

seancorfield22:02:47

And you'll want [proto-repl "0.3.1"] as a dev dependency.

matan22:02:53

Only one thing, in my Atom, all keyboard mappings do not include the alt key. Why is it mentioned so much as if alt is part of the keyboard combination?

seancorfield22:02:37

Depends on the platform and what else you have running in Atom...

seancorfield22:02:09

ctl-, will work as a prefix until it's mapped to something else...

matan22:02:45

oh well, thanks a lot, I'll use the toggle command, though I've no idea why it is called like that

seancorfield23:02:16

It is a weird name. After all, when you have a REPL open, "toggle" doesn't turn it off 🙂

sparkofreason23:02:22

@matan @lee.justin.m I'm able to navigate to vars when connected to nREPL, for clj at least. Haven't tried with cljs. The only minor irritation is that when using the boot REPL, boot takes over the classpath, so navigating to a definition in your project takes you to boot's temporary copy of the source file. Using lein repl navigating to a var takes you to the file in your project.

justinlee23:02:52

@dave.dixon interesting. i guess it is just a cljs limitation. 😢

sparkofreason23:02:35

Yeah, I went poking around the proto-repl code to try and understand the boot issue, and I can see why it wouldn't work with cljs. It's leveraging machinery from the clojure.repl namespaces, metadata on vars, and so forth, and evaluating it in the REPL. I don't know if you could make that approach work in CLJS.

justinlee23:02:25

for some reason understanding the repl issues is just beyond me. i think i have dunning-kruger on this issue because it seems like you just need to port a few simple commands back and for and it’s all text

matan05:02:51

dunning-kruger lol 🙂

matan05:02:39

I think Stockholm syndrome is a better fit for people having chosen a clojure dev environment

justinlee23:02:19

for example, I fail to see how there could be a difference between retrieving doc strings between the two environments.