Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Plugin Initialization Error #66

Open
zlindenbaum opened this issue May 16, 2021 · 3 comments
Open

Plugin Initialization Error #66

zlindenbaum opened this issue May 16, 2021 · 3 comments

Comments

@zlindenbaum
Copy link

zlindenbaum commented May 16, 2021

I've been encountering the following error repeatedly upon opening Vim. Shallowly, it appear similar to the error described in #37 and #53.

Error detected while processing function <SNR>30_refresh_cache_callback_vim[3]..<SNR>30_refresh_cache_callback:
line    4:
E491: json decode error at 'Invalid option `--uri'  Usage: neuron [--version] [-d PATH] [-o PATH] COMMAND   Neuron, future-proof Zettelkasten app <https://neuron.zettel.page/>'
E909: Cannot index a special variable
line    6:
E121: Undefined variable: l:zettels
E116: Invalid arguments for function sort
line   13:
E121: Undefined variable: l:zettels
line   20:
E121: Undefined variable: l:zettels
@zlindenbaum
Copy link
Author

I should elaborate. The commands gzz and gzi both yield empty fzf boxes, with 0/0 results. I've been messing around with the code, and substituted

let l:cmd = g:neuron_executable.' -d "'.g:neuron_dir.'" query --zettels'

for

let l:cmd = g:neuron_executable.' -d "'.g:neuron_dir.'" query --uri z:zettels'

in neuron.vim; the former runs in my terminal, whereas the latter yields the same error I get from vim. At that point, the plugin seems to have been trying to parse stderr as well as stdout as JSON, yielding a different error. I experimented with explicitly outputting the command to the file listed as g:neuron_tmp_filename, which got rid of the error message, but left the "Waiting until cache is populated..." hanging forever (as in #19).

I'm honestly kind of baffled: I can find no documentation for the --uri neuron argument, and neuron claims that there is no such thing when I attempt to run the command. Do I have the wrong neuron version? I've repeatedly run nix-env -if https://github.com/srid/neuron/archive/master.tar.gz; my version doesn't seem to be out of date.

@emjames
Copy link

emjames commented May 24, 2021

I encountered this issue too. I had neuron version 1.9.30.0 but got this plugin to work with version 1.1.12.0. Follow Neuron v1. Hope this solves your issue!

@zlindenbaum
Copy link
Author

zlindenbaum commented May 24, 2021

I encountered this issue too. I had neuron version 1.9.30.0 but got this plugin to work with version 1.1.12.0. Follow Neuron v1. Hope this solves your issue!

Regarding the installation of Neuron v1, it looks like there's an OS issue (macOS Big Sur). Nix returns the following error near the end of the compilation process:

[20 of 22] Compiling Neuron.Web.Generate ( src/app/Neuron/Web/Generate.hs, dist/build/neuron-app-lib/Neuron/Web/Generate.o, dist/build/neuron-app-lib/Neuron/Web/Generate.dyn_o )

<no location info>: error:
    <command line>: can't load framework: Cocoa (not found)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants