Trouble getting SCNvim to work

Hi,

I decided to try SCNvim. I’m having trouble and not exactly sure why. I think I’ve installed everything correctly, the bridge between the two paths seems to work fine. However, the following things:

  • [scnvim] Vim(call):E5108: Error while calling lua chunk for luaeval(): …hare/nvim/site/pack/git-plugins/start/scnvim/lua/udp.lua:12: attempt to index upvalue ‘uv’ (a nil value)

  • f5 and f6 don’t seem to execute code - I can’t boot the server, or play anything

Are there obvious things I’m overlooking?

Thanks!

love SCNVim - you might reach out to the author on github https://github.com/davidgranstrom/scnvim/issues

Hi Jordan. Did you try running :chechhealth? This will see if everything is installed correctly on your system. Also make sure you have NVIM that is at least v 0.4.3!

@madskjeldgaard - I had an old version installed, updating now and will see if that helps, I kinda assume it will.

@semiquaver - thanks, if the update to a newer version doesn’t work, I’ll try get in touch. Cheers!

Yes this is exactly right, I have had both of these problems! checkhealth with a ‘k’ however. cheers

Hey guys - didn’t have a chance until now to try getting everything to really work. I spent some time yesterday setting up my init.vim and it basically looks like the one on github and :checkhealth seems very happy.

Running init.vim gives the following errors:

Error detected while processing /home/jordan/.config/nvim/init.vim:
line   46:
E117: Unknown function: plug#begin
line   47:
E492: Not an editor command: Plug 'davidgranstrom/scnvim'
line   48:
E492: Not an editor command: Plug 'SirVer/ultisnips'
line   49:
E117: Unknown function: plug#end
Press ENTER or type command to continue

When I try to run :SCNvimStart I get the error that it’s not an editor command. So at this point I’m a bit unsure how to continue.

Sorry for the trouble you are experiencing! You need to install vim-plug https://github.com/junegunn/vim-plug

This will make Vim recognize the installation commands :slight_smile:

Thanks again for the help! I’ve done that and am still getting error messages. Starting to think I might not be ‘ready’ to do this - I’m not really able to solve these problems myself. However any pointers here would be welcome!

line    1:
E518: Unknown option: st1=
line    2:
E518: Unknown option: st1+=%f
line    3:
E518: Unknown option: st1+=%=
line    4:
E518: Unknown option: st1+=%(%1,%c%)
line    5:
E518: Unknown option: st1+=\ |
line    6:
E518: Unknown option: st1+=%24.24{scnvim#statusline#server_status()}
line    1:
E518: Unknown option: st1=
line    2:
E518: Unknown option: st1+=%f
line    3:
E518: Unknown option: st1+=%=
line    4:
E518: Unknown option: st1+=%(%1,%c%)
line    5:
E518: Unknown option: st1+=\ |
line    6:
E518: Unknown option: st1+=%24.24{scnvim#statusline#server_status()}
line    1:
E518: Unknown option: st1=
line    2:
E518: Unknown option: st1+=%f
line    3:
E518: Unknown option: st1+=%=
line    4:
E518: Unknown option: st1+=%(%1,%c%)
line    5:
E518: Unknown option: st1+=\ |
line    6:
E518: Unknown option: st1+=%24.24{scnvim#statusline#server_status()}
Press ENTER or type command to continue

this looks strange. can you post the output of :checkhealth


  3 ========================================================================
  4 ## scnvim
  5   - OK: has("timers") - success
  6   - INFO: using g:scnvim_sclang_executable = ~/bin/sclang
  7   - INFO: sclang executable: /home/jordan/bin/sclang
  8   - INFO: pandoc executable:
  9 
 10 health#nvim#check
 11 ========================================================================
 12 ## Configuration
 13   - OK: no issues found
 14 
 15 ## Performance
 16   - OK: Build type: Release
 17 
 18 ## Remote Plugins
 19   - OK: Up to date
 20 
 21 ## terminal
 22   - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
 23   - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
 24   - INFO: $VTE_VERSION='5202'
 25   - INFO: $COLORTERM='truecolor'
 26 
 27 health#provider#check
 28 ========================================================================
 29 ## Clipboard (optional)
 30   - OK: Clipboard tool found: xsel
 31 
 32 ## Python 2 provider (optional)
 33   - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.
 34   - INFO: Executable: /usr/bin/python3                                                                                                                                                                         
 35   - INFO: Python version: 2.7.17
 36   - INFO: pynvim version: 0.2.0 (outdated; from /usr/lib/python2.7/dist-packages/neovim)
 37   - WARNING: Latest pynvim is NOT installed: 0.4.1
 38 
 39 ## Python 3 provider (optional)
 40   - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
 41   - INFO: Executable: /usr/bin/python3
 42   - INFO: Python version: 3.6.9
 43   - INFO: pynvim version: 0.2.0 (outdated; from /usr/lib/python3/dist-packages/neovim)
 44   - WARNING: Latest pynvim is NOT installed: 0.4.1
 45 
 46 ## Python virtualenv
 47   - OK: no $VIRTUAL_ENV
 48 
 49 ## Ruby provider (optional)
 50   - INFO: Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
 51   - WARNING: `neovim-ruby-host` not found.
 52     - ADVICE:
 53       - Run `gem install neovim` to ensure the neovim RubyGem is installed.
[No Name] [+]                                                                                                                                                                                    34,38          12%
                                                                                                                                                                                                          

Hmm that’s quite strange. Could you try updating pynvim ? Not sure how necessary that is but otherwise it looks good

I did that, it didn’t help at all - oh well!

Aha okaythen try posting an issue on the Scnvim github :slight_smile:

Thanks again guys. Solved this with help from David on Github, here’s the thread for posterity. tl;dr - a few typos in my init.vim, but also clashes with the ddwSnippets quark.