Fork me on GitHub
#vim
<
2017-01-01
>
juhoteperi18:01:11

@dominicm async-clj-omni is supposed to work wither with fireplace or acid?

juhoteperi18:01:19

I'm getting error about missing acid.nvim

dominicm18:01:05

With either, yes. Is the error from deoplete?

dominicm18:01:53

Init should only be called if the source is being loaded (I think?)

juhoteperi18:01:20

I think the code in that line itself is bad

juhoteperi19:01:21

on_init is called always

juhoteperi19:01:27

there is no way to prevent it being called

juhoteperi19:01:57

And either echom call works correctly and for some reason it shows as a error when called from python code

juhoteperi19:01:10

Or that echom call is bad and that is why I get an error

juhoteperi19:01:26

anyway, I don't think it should try to give a message about installing acid.nvim

juhoteperi19:01:52

I did look at few other deoplete sources and I think they generally just do nothing if something is missing

juhoteperi19:01:41

Though some of those are packaged together with the "main plugin" which either provides everything or displays the errors

juhoteperi19:01:56

vim.call is wrong there because takes function as the first argument and parameters as varargs

juhoteperi19:01:07

self.vim.eval('echom "Acid.nvim not found. Please install it."')

juhoteperi19:01:21

should be correct here, I think

juhoteperi19:01:30

but for some reason that throws even bigger error

juhoteperi19:01:22

Ah no, echomsg is not a vimscript function but ex command: self.vim.command('echomsg "Acid.nvim not found. Please install it."')

juhoteperi19:01:35

this will correctly only output the message instead of throwing error

dominicm20:01:06

It's weird, I don't get that message, and don't have acid installed.

dominicm20:01:21

__init__ is always called. So I think on_init must be different somehow

dominicm20:01:57

Might be because I specify which sources to use for clojure, so it's a manual list..