protorepl

matan 2018-02-23T20:13:04.000051Z

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

matan 2018-02-23T20:13:40.000601Z

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

justinlee 2018-02-23T20:14:28.000537Z

i don’t know that either

justinlee 2018-02-23T20:14:43.000376Z

in terms of conflicts, yes, you can have them

justinlee 2018-02-23T20:14:50.000691Z

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

justinlee 2018-02-23T20:15:12.000120Z

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

justinlee 2018-02-23T20:15:37.000559Z

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

matan 2018-02-23T20:22:48.000312Z

thanks!

matan 2018-02-23T21:06:28.000613Z

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

sparkofreason 2018-02-23T21:37:07.000159Z

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?

1👍
seancorfield 2018-02-23T21:51:40.000144Z

@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.

seancorfield 2018-02-23T21:54:08.000213Z

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.

matan 2018-02-23T21:54:51.000529Z

Similar to @dave.dixon Is it only me getting this behavior - https://github.com/jasongilman/proto-repl/issues/295

sparkofreason 2018-02-23T21:58:25.000294Z

@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.

seancorfield 2018-02-23T21:59:13.000481Z

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

matan 2018-02-23T22:26:09.000143Z

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.

justinlee 2018-02-23T22:27:10.000127Z

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

matan 2018-02-23T22:35:50.000297Z

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?

justinlee 2018-02-23T22:41:22.000388Z

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

justinlee 2018-02-23T22:41:30.000425Z

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

matan 2018-02-23T22:43:41.000052Z

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

matan 2018-02-23T22:44:25.000018Z

thanks in advance!

seancorfield 2018-02-23T22:55:18.000010Z

@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.

matan 2018-02-23T22:56:07.000116Z

@seancorfield thanks

seancorfield 2018-02-23T22:56:25.000113Z

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)

seancorfield 2018-02-23T22:56:47.000362Z

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

1👍
matan 2018-02-23T22:56:53.000193Z

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?

seancorfield 2018-02-23T22:58:37.000343Z

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

seancorfield 2018-02-23T22:59:09.000314Z

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

matan 2018-02-23T22:59:45.000100Z

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

seancorfield 2018-02-23T23:01:16.000212Z

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

1🙂
sparkofreason 2018-02-23T23:16:22.000077Z

@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.

justinlee 2018-02-23T23:17:52.000138Z

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

sparkofreason 2018-02-23T23:20:35.000333Z

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.

justinlee 2018-02-23T23:23:25.000082Z

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

justinlee 2018-02-23T23:25:19.000244Z

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