Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
(translated: “the command “C:\Program” is either misspelled or could not be found”)
I haven’t tried it with all possible combinations of devices and MME/WASAPI/WDM-KS/Jack Router. It works fine in SC IDE, it’s only in scnvim that I run into this problem.
I am on Windows 10, using Supercollider version 3.12.2.
Is this an scnvim bug? What can I do to get to the bottom of it (and hopefully fix it)?
Camilla Kutzner (they/them) via scsynth noreply@m.scsynth.org [2022-04-21 19:26]:
[…]
I get this error message:
Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Not sure what the reason for this error may be, but on Windows the
folder for software on english systems is often
C:\Program Files
while on german systems there is either a
C:\Programme
or it links to the english one. I suspect something, possibly within
scvim, is trying to find
C:\Program Files
on your computer…?
I wonder if something is going wrong when the device name (which has to be passed in as a command line argument to the server) has spaces in it? Try printing the command line being used to launch the server (see Server.sc:1041, the line where it does unixCmd(....) - something like:
You should be able to run this command directly from the command line and get the server to launch. If you get the same error as sclang does, this might make it a little easier to fiddle with the command line to see whats wrong.
(just picking WASAPI and the built-in devices as an example here)
It then lets me quit the server from scnvim, or query things, but not play any sound.
It also launches just fine from scnvim with the default devices. Just not when I request devices other than nil with s.options.inDevice_() or s.options.outDevice_() respectively.
If I paste the last one in the command prompt, scsynth starts. (It needs the full path, though; just running “scsynth.exe” from the command prompt only gives me an error message that the program could not be found.)
I suspect the problem is somewhere within scnvim and/or my configuration. I’m just mystified why it works with the default devices (and not with the others).
After some more searching on Github, I found a fix right now. This issue on the scnvim repository contains the line that appears to fix the weird path issue.
That is peculiar – one would have thought that "C:\path\to\executable" arg arg "quoted arg" would be fine in the shell, but perhaps this confuses the Windows command shell in a way that executable "quoted arg" arg arg "other quoted arg" does not.
But because of your report, the scnvim instructions can be improved
The server boots when I execute the first thing on the Windows command prompt or the shell (only then I can’t “talk” to it from neovim) - so I suspect there’s some weirdness going on with neovim and/or scnvim.