Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

nothing works on nvim v0.6.0 . it just me or is it not yet supported? #53

Open
dj8yfo opened this issue Dec 21, 2021 · 6 comments
Open

Comments

@dj8yfo
Copy link

dj8yfo commented Dec 21, 2021

No description provided.

@nldev
Copy link

nldev commented Dec 24, 2021

This is what I'm getting when running any neuron.nvim command in nvim v0.6.0 (WSL/Ubuntu):

Error executing vim.schedule lua callback: ...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: Vim(echoerr):An error occured from running neuron query: Missing: COMMAND
stack traceback:
	[C]: in function 'cmd'
	...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: in function 'cb'
	vim.lua:285: in function <vim.lua:285>
Error executing vim.schedule lua callback: ...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: Vim(echoerr):An error occured from running neuron query: 
stack traceback:
	[C]: in function 'cmd'
	...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: in function 'cb'
	vim.lua:285: in function <vim.lua:285>
Error executing vim.schedule lua callback: ...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: Vim(echoerr):An error occured from running neuron query: Usage: neuron NOTESDIR COMMAND
stack traceback:
	[C]: in function 'cmd'
	...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: in function 'cb'
	vim.lua:285: in function <vim.lua:285>
Error executing vim.schedule lua callback: ...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: Vim(echoerr):An error occured from running neuron query:   Zettelkasten based on Rib
stack traceback:
	[C]: in function 'cmd'
	...er/.config/nvim/plugged/neuron.nvim/lua/neuron/utils.lua:27: in function 'cb'
	vim.lua:285: in function <vim.lua:285>

@krisezra87
Copy link

krisezra87 commented Dec 30, 2021

Bump. Same issue with 'cb' on Arch with Neovim 0.7.0-dev+717-gf37c5f180

Unstable branch has some parts working, but doesn't properly interface with popup.nvim anymore. It's kinda removed... but kinda not.

@krisezra87
Copy link

@nldev I actually find that the unstable branch works fine. Trick I've found to make it work: After you install neuron, you need to follow this under "Create your own Zettelkasten" and create an index (or some file) and run neuron gen. After that, when I'm in a markdown file it seems to work. I'm working out any other kinks for usage, but hopefully that gets you a jumpstart.

Just make sure wherever you create your zettelkasten, you incorporate it in the appropriate line corresponding to the neuron_dir for init.lua:

-- these are all the default values
require'neuron'.setup {
    virtual_titles = true,
    mappings = true,
    run = nil, -- function to run when in neuron dir
    neuron_dir = "~/neuron", -- the directory of all of your notes, expanded by default (currently supports only one directory for notes, find a way to detect neuron.dhall to use any directory)
    leader = "gz", -- the leader key to for all mappings, remember with 'go zettel'
}

@0xkiplet
Copy link

I've had no luck getting this plugin working, which is a shame because it seems great! I figure I'll document my journey here incase it's helpful for anyone else. For some context, I am using an M1 mac on neovim v0.6.1.

The first thing I tried was install neuron with nix at the latest i.e. nix-env -if https://github.com/srid/neuron/archive/master.tar.gz

I also used neuron.nvim at the unstable branch as suggested in the README. Unfortunately I get a host of errors when trying to create new notes such as:

Error executing vim.schedule lua callback: .../site/pack/packer/start/neuron.nvim/lua/neuron/utils.lua:31: Vim(echoerr):An error occured from running neuron new:    Plugins enabled: links, tags, neuronignore, uptree, feed
stack traceback:
        [C]: in function 'cmd'
        .../site/pack/packer/start/neuron.nvim/lua/neuron/utils.lua:31: in function 'cb'
        vim.lua:285: in function <vim.lua:285>

This happens even if I initialize neuron with neuron new -e index as suggested by @krisezra87 above.

The next thing I tried was installing an older version of neuron with nix, but unfortunately this leads to errors like:

error: builder for '/nix/store/j84icaz42chakyl7ah2hgq8s3c757a5k-rib-core-1.0.0.0.drv' failed with exit code 1;
       last 10 log lines:
       > unpacking source archive /nix/store/qa38205lpxq79g0azwlxsfba41hnqdls-source/rib-core
       > source root is rib-core
       > patching sources
       > compileBuildDriverPhase
       > setupCompileFlags: -package-db=/private/tmp/nix-build-rib-core-1.0.0.0.drv-0/setup-package.conf.d -j8 -threaded -rtsopts
       > [1 of 1] Compiling Main             ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /private/tmp/nix-build-rib-core-1.0.0.0.drv-0/Main.o )
       > Linking Setup ...
       > ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
       > clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
       > `cc' failed in phase `Linker'. (Exit code: 1)
       For full logs, run 'nix log /nix/store/j84icaz42chakyl7ah2hgq8s3c757a5k-rib-core-1.0.0.0.drv'.

Finally, I tried installing with whalebrew (which doesn't seem to offer older versions such as 1.0.1.0). Still, installing with whalebrew fails with a permissions error.

➜  ~ whalebrew install whalebrew/neuron
This package needs additional access to your system. It wants to:

* Listen on TCP port 8080
* Listen on TCP port 1440

Is this okay? (y/n) [y]: y
open /usr/local/bin/neuron: permission denied

@krisezra87
Copy link

Did you run neuron gen at least once after you created the new note? I got the callback problem like yours when I hadn't done that. I installed from the nix-env latest like you did. I'm not a mac user myself, so I don't know how much additional help I can provide you.

I will say that just using the plugin a bit and reading around more on zettelkasten, I'm not sure I'm going to keep using this: primarily it's neuron wrapped with telescope, but if you want to browse your notes in a way that capitalizes on backlinks, you basically have to do it through the neuron web thingy which isn't gonna cut it for me. 90% of everything that is not fuzzy finding can be done independently with vimwiki in probably 2 hours or less.

This plugin IS very nicely crafted though!

@0xkiplet
Copy link

Thanks @krisezra87 for your honest take.

90% of everything that is not fuzzy finding can be done independently with vimwiki in probably 2 hours or less.

I had previously been using vimwiki and it was working alright for me. I did not like :VimWikiSearch as it was not fuzzy or realtime (i.e. not using something like telescope). Otherwise the format not being Markdown by default was frustrating as well at times, particularly if I would write something longform and then want to share it with others. I believe it's possible to change this, though. Finally, I really wanted to be able to instantly create new notes with some metadata attached such as the date, which would also be prepended to the file name.

I'm imagining a directory of files, each prepended by a the date they were created. All files in markdown. Code blocks and syntax highlighting supported. Easy fuzzy searching through all of the notes. That's basically all I need. If I wanted to get really picky then it would be nice to have global TODOs across all notes. Now we're starting to get into org-mode territory, though.

Perhaps I should just build something myself, or rather duct tape it all together neatly using existing plugins. It could give me an opportunity to learn more about how neovim LUA plugins are built which is something I've been meaning to explore and learn more about.

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

4 participants