Fork me on GitHub
#protorepl
<
2017-08-23
>
sparkofreason22:08:50

Switched to proto-repl this weekend, loving it so far. Actually my second time around with it, definitely much more usable than it was in my first encounter. One question: is there a way to get the sort of static analysis we see with Cursive, e.g. highlighting undefined symbols?

seancorfield22:08:42

I don't believe anyone has written a package for that (yet)...

seancorfield22:08:27

TBH, I just hit shift-opt-cmd-b and have it evaluate the current top-level form and see whether it compiles.

sparkofreason23:08:02

@rgdelato Thanks, will give it a try.

sparkofreason23:08:40

@seancorfield Are you using something in conjunction with that approach to make exceptions shorter/easier to read?

rgdelato23:08:06

There are also Atom plugins for eastwood and kibit, but they both use lein so they're both super-slow, and eastwood doesn't work on CLJS, so joker is the best I've been able to find.

seancorfield23:08:27

From an undefined symbol on compilation? Here's what I see in my REPL for such a thing:

java.lang.RuntimeException: Unable to resolve symbol: foo in this context
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: foo in this context, compiling:(/Developer/workspace/wsmain/clojure/api/test/worldsingles/expectations/mobile/user.clj:381:11)

seancorfield23:08:39

No stack trace, just the error.

seancorfield23:08:00

(may be a difference between using Leiningen and Boot? I use the latter)

sparkofreason23:08:39

That's the kind of thing I see as well (also using boot), just a lot of them when typing with proto-repl active.

seancorfield23:08:54

Ah, do you have the experimental auto-evaluate feature turned on? I don't find that very productive...

rgdelato23:08:50

Here's a screenshot from joker. Is this the kind of thing you're looking for?

sparkofreason23:08:20

Yes, I do have autoeval turned on. I like it, warts and all, but certainly has room for improvement.

sparkofreason23:08:14

@rgdelato Yes. However, haven't had any luck getting it to run, keep getting an error like "Error running joker - Process timed out". joker is available on my path, can execute from the cmd-line. Using Windows.

seancorfield23:08:40

@rgdelato I'd seen someone else mention joker and it looks interesting... I might try that!

seancorfield23:08:06

I'm reminded why I hate Ruby/Homebrew 🤕 goes to StackOverflow to see how to fix his broken brew install crash, bang, wallop searches for reasons that Joker won't install runs brew update -- ah, success this time! finally installs Joker via Homebrew!

seancorfield23:08:46

Wow, linter-joker causes a lot of dependencies (packages) to be installed... click yes, click yes, click yes...