davidgranstrom / scnvim

Neovim frontend for SuperCollider.
GNU General Public License v3.0
197 stars 26 forks source link

[ SCNvimStart - cannot start sclang process || Unrecognized handler || ERROR: Class not defined ] - medley #200

Closed vsandstrom closed 2 years ago

vsandstrom commented 2 years ago

Describe the bug Scnvim complains that it cannot start an sclang process.

I have had issues with migrating to Lua, and this is as far as I have gotten. Checkhealth looks good, and some parts of the plugin are running, as the postwindow and eval-highlights. But it cannot start the sclang process when calling SCNvimStart. I thought that it might been an issue with how I have organized the config lua-files, but all plugins but scnvim works.

I have tried to set the path to the executable explicitly, and made sure it was added to $PATH, but no luck.

Expected behavior Since I have not seen this bug anywhere else I expected everything to work out of the box.

Steps to reproduce

Additional context I am trying to build the lua-condig on a separate git-branch, to keep my old vimscript-config, and scnvim, working. Could this be an issue?

Information The issue as far as I can tell seems to be in the M.find_sclang_executable()-function in the lua/sclang.lua file. From there I cannot really tell what is going on.

checkhealth:

Skärmavbild 2022-10-01 kl  13 05 56

scnvim config and config directory tree:

Skärmavbild 2022-10-01 kl  13 05 59
vsandstrom commented 2 years ago

Update: It runs! I had to move the SuperCollider.app from the SuperCollider folder in /Applications to make it run.

It does seem to have some issue with a function in the file lua/udp.lua, complaining about an 'Unrecognized Handler', perhaps another issue.

Skärmavbild 2022-10-01 kl  14 44 18
vsandstrom commented 2 years ago

Managed to solve the "Unrecognized handler" by removing a perhaps conflicting Plug-installation. The error disappeared when i removed the older installation
Then I got the "ERROR: Class not defined"-error, which was fixed by doing the symbolic linking of the "scide_scnvim"-folder.

Skärmavbild 2022-10-01 kl  18 56 54