Closed zmrocze closed 6 months ago
I think I get the error now.
When I call sclang
on a file, it is not the same as interpreting the file line by line inside sclang
repl.
How is it interpreted then? And how do I call sclang and immedietely interpret a script file inside? I've tried sclang <<< my-file.sc
but it doesn't work.
there is a distinction between .sc
files which contain Class definitions which are compiled and .scd
files which are interpreted interactively. The problem you have here is that sclang is trying to compile your install script which is actually interactive code. simply changing the extension to .scd should fix this. closing this issue.
Environment
Steps to reproduce
I'm calling
sclang
on an.sc
script that is supposed to install a quark.The script is
install.sc
file as follows:Expected vs. actual behavior
but it fails already on the first line with:
Additional context
I'll admit I'm in the woods here with supercollider as I haven't used it at all. Supercollider with a superdirt plugin is a runtime dependency to TidalCycles. The above is supposed to be an installation script for superdirt. The script is provided in the form of a nix package, but it looks broken and I'm trying to fix it in that pr.