davidgranstrom / scnvim

Neovim frontend for SuperCollider.
GNU General Public License v3.0
208 stars 28 forks source link

[BUG] Installed successfully, but none of the commands are working #192

Closed bla9kdog closed 2 years ago

bla9kdog commented 2 years ago

Describe the bug After installing SCNvim, none of the commands are showing up.

For example: if I type :SCNVimStart, I get an error saying it's not an editor command. I've tried this in both .sc and .scd files.

Here's the checkhealth output:

scnvim: health#scnvim#check
========================================================================
## scnvim
  - OK: SCNvim classes installed: /home/me/.local/share/SuperCollider/Extensions/scide_scnvim
  - OK: has("timers") - success
  - INFO: using g:scnvim_sclang_executable = /usr/bin/sclang
  - INFO: sclang executable: /usr/bin/sclang
  - INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information.
    This is an optional dependency and only needed for SCDoc integration.

Expected behavior :SCNVim* commands should show up.

Information

davidgranstrom commented 2 years ago

That sounds strange indeed. You could try :lua require'scnvim'.start() and see if that works. :SCNvimStart is just a wrapper for that function call.

If that doesn't work, I would recommend that you try out this branch and see if that helps!

ranjithshegde commented 2 years ago

For example: if I type :SCNVimStart, I get an error saying it's not an editor command. I've tried this in both .sc and .scd files.

Not sure if its your typo in the error report or also in your trial, but SCNV... is not the command. SCNvim... is. The V is not capitalized

bla9kdog commented 2 years ago

That sounds strange indeed. You could try :lua require'scnvim'.start() and see if that works. :SCNvimStart is just a wrapper for that function call.

If I type this, I get the post window. But none of the keybindings work. I'll check the other branch. Thanks!

compiling class library...
    Found 867 primitives.
    Compiling directory '/usr/share/SuperCollider/SCClassLibrary'
    Compiling directory '/usr/share/SuperCollider/Extensions'
    Compiling directory '/home/me/.local/share/SuperCollider/Extensions'
    numentries = 1283639 / 19422096 = 0.066
    5736 method selectors, 3386 classes
    method table size 20834432 bytes, big table size 155376768
    Number of Symbols 14965
    Byte Code Size 450281
    compiled 559 files in 0.57 seconds
Info: 4 methods are currently overwritten by extensions. To see which, execute:
MethodOverride.printAll
compile done
localhost : setting clientID to 1.
internal : setting clientID to 1.
Class tree inited in 1.01 seconds
*** Welcome to SuperCollider 4.13.0-dev. *** For help type ctrl-c ctrl-h (Emacs) or :SChelp (vim) or ctrl-U (sced/gedit).

Not sure if its your typo in the error report or also in your trial, but SCNV... is not the command. SCNvim... is. The V is not capitalized

Oops, this was just a typo in the bug report. :) Thanks

bla9kdog commented 2 years ago

Ok, I found the culprit, "vim-polyglot" was causing issues. If I remove it, SCNvim works fine.

It's weird because it happens only on my Linux machine. Works fine on MacOS.