Fork me on GitHub
#vim
<
2016-07-18
>
uwo14:07:45

anyone have experience with Piggiebacking on boot-cljs-repl? when I run :Piggieback (adzerk.boot-cljs-repl/repl-env) I get a million NullPointerExceptions printed to my running repl and then it quits

dominicm15:07:04

Works for me.

dominicm15:07:21

Is this in a self-built project? Is it worth trying Saapas or similar?

uwo15:07:42

yes. we just recently switched to boot

dominicm15:07:12

https://github.com/Deraen/saapas I suggest cloning this and giving it a go.

dominicm15:07:14

Just in case.

juhoteperi15:07:34

Btw. I usually just use Rhino repl for autocompletion and docstrings etc.

juhoteperi15:07:57

That's what Fireplace should open by default when one tries to eval stuff on cljs buffers

dominicm15:07:13

I've never got Rhino working happily, but that's likely unrelated.

juhoteperi15:07:28

Or when triggering omnicomplete (or just by writing when using deoplete)

juhoteperi15:07:59

It is not perfect and it can be slow

uwo15:07:25

cool. well it works with a saapas clone, so we must have misconfigured a task or two

juhoteperi15:07:16

Hmm, looks like vim-clojure-static is unmaintained currently

juhoteperi15:07:21

I think we should take example from Emacs users and create Vim-clojure github org with the most important plugins

dominicm15:07:22

Very possibly.

dominicm15:07:54

guns isn't working on vim atm.

dominicm15:07:11

vim-clojure-static works fairly well though for me. There's a few tweaks that could do with being default, but meh.

dominicm15:07:25

If we did our own org, I think I'd err on the side of being nvim-clojure.

juhoteperi15:07:52

I think the org can be vim-clojure even if some plugins require neovim

dominicm15:07:26

I agree. I should have clarified that my thinking was focused on approach over naming.

juhoteperi15:07:53

I guess the best approach is to create the org and then ask several authors if the would like to move few repos there or if we should copy/fork some projects

juhoteperi15:07:48

@dominicm: I sent you an invite

dominicm15:07:42

I can move my clj-async-omni in there. I'm happy for it to get a more consistent name.

juhoteperi15:07:56

I think the name is fine for now

juhoteperi15:07:11

We can merge or rename stuff later

dominicm15:07:57

Okay. Feel free to copy it, (forking will just make searching harder) or I can do it when I am home later.

juhoteperi15:07:34

No hurry, you can copy or transfer it yourself

dominicm15:07:58

cc/ @snoe wondering if you might be interested in this?

snoe16:07:50

that's a neat idea. I've often felt that a bunch of plugins that augment each other like https://github.com/clojure-emacs would be useful for vim.

dominicm16:07:41

https://github.com/tpope/vim-fireplace/pull/222 I think we should copy fireplace with this commit.

dominicm16:07:00

Or a similar one (new command)

juhoteperi16:07:23

Hmm, I wonder if there is still some problems with that since tpope has not merged it

dominicm16:07:18

Possibly. I've not seen issues myself. It might be that he's busy / not writing so much clojure.

juhoteperi16:07:59

Yeah, he is not writing Clojure afaik but he has been quite active maintaining Fireplace

dominicm16:07:22

Oh, misread "3 Jun" with "3 Jan"

dominicm16:07:24

Problem is that Figwheel is still pretty big. And that's the only way I've managed to get it working.

juhoteperi16:07:20

Hmm, I still have one Figwheel project, I'll check the change with that and ping tpope on the PR

dominicm16:07:44

I wish I could use boot primarily..

juhoteperi16:07:18

Hmm how should I configure Figwheel for repl use

juhoteperi16:07:29

Do I need two nrepls? One for the app and second for Figwheel

juhoteperi16:07:41

Heh, I'm on Cider-nrepl 0.10, refactor-nrepl 2.0.0-snapshot etc.

dominicm16:07:27

I think there's pretty much one import and call within your nrepl to get it to work.

dominicm16:07:08

Is it worth just trying to use a sample project for it?

snoe16:07:17

@dominicm: We've been hesitant to try it because it seems a bit crazy - I just keep hoping tpope merges that PR 😕

juhoteperi16:07:43

The diff looks okay to me and I just got it working

juhoteperi16:07:46

I can look up docstring, but not source

dominicm16:07:49

@snoe: the juxt website runs it, I love working with boot.

juhoteperi16:07:21

Ah, the source is printed on browser console 😄

juhoteperi16:07:32

:Source works fine with boot-cljs-repl, hmm

g1eny0ung17:07:59

hey,everybody.I have a problem with fireplace.

g1eny0ung17:07:04

the fireplace repo said : First, set up cider-nrepl. (If you skip this step, fireplace.vim will make do with eval, which mostly works.)

g1eny0ung17:07:43

but the command lein repl use the nrepl

g1eny0ung17:07:09

I don't know how to wrap the nrepl with the cider-nrepl middleware

g1eny0ung17:07:23

what should I do:cry:

dominicm17:07:48

@juhoteperi: there's an open issue somewhere about a weasel setting for controlling outputs. Related?

juhoteperi17:07:02

@dominicm: Figwheel doesn't use Weasel

g1eny0ung17:07:46

I do this a few hours ago,only add [cider/cider-nrepl "0.12.0"] to profiles.clj :user profile can success?@deraen

dominicm17:07:22

I'm probably misremembering. I can't see the issue now at all.

g1eny0ung17:07:25

thank you, I'm going to try it:grin:

g1eny0ung17:07:52

@juhoteperi: but when I use lein repl command, it's also display the nrepl, is there a way let me test what repl I used?

juhoteperi17:07:36

@g1eny0ung: I don't understand what you are asking

g1eny0ung17:07:51

@juhoteperi: e...well,I mean after I add [cider-nrepl "0.12.0"] to my profiles.clj,then how to open the cider-nrepl

g1eny0ung17:07:06

use lein repl?

juhoteperi17:07:20

There is no different nrepls, cider-nrepl just extends normal nrepl

g1eny0ung17:07:43

allright,thank you. I have already do this few hours ago,but I feel it's same to use the nrepl without cider-nrepl middleware....

snoe17:07:06

@g1eny0ung: Mainly, you'll notice the difference jumping into dependencies (jar files) and printing out stacktraces

g1eny0ung17:07:26

the Automatic completion the same as I add before

juhoteperi17:07:56

There should be some additional data (e.g. arglists) on omnicomplete

juhoteperi17:07:45

Ah no, infact the built in omnicomplete in Fireplace also adds arglists

g1eny0ung17:07:27

I see the automatic completion change

g1eny0ung17:07:11

I bound my omnicomplete in insert mode with <leader>; I have to trigger it to complete

g1eny0ung17:07:48

@snoe: thank you help too:grin: and my english isn't good...it's not my main language