Is there a way to access the help files in the sclang REPL? I can’t find anything about this anywhere.
Update: I discovered .help
as a suffix, which seems to call the help files. this is what I got when I ran SinOsc.help
:
sc3> SinOsc.help
SCDoc: Indexing help-files...
ERROR: Primitive '_FileCopy' failed.
caught exception 'Invalid cross-device link: copy from "/nix/store/8r4hg5172rka90c7dls5xnjglvb03wl7-supercollider-with-plugins-3.12.2/share/SuperCollider/HelpSource/Classes/IdentityDictionary_01.png" to "/home/dot/.local/share/SuperCollider/Help/Classes/IdentityDictionary_01.png"' in primitive in method Meta_File:copy
RECEIVER:
class File (0x37b3d40) {
instance variables [19]
name : Symbol 'File'
nextclass : instance of Meta_FileDialog (0x304d1c0, size=19, set=5)
superclass : Symbol 'UnixFILE'
subclasses : instance of Array (0x41c0a40, size=1, set=2)
methods : instance of Array (0x37b3ec0, size=12, set=4)
instVarNames : instance of SymbolArray (0x37b4040, size=1, set=2)
classVarNames : instance of SymbolArray (0x37b41c0, size=1, set=2)
iprototype : instance of Array (0x37b4100, size=1, set=2)
cprototype : instance of Array (0x37b4280, size=1, set=2)
constNames : nil
constValues : nil
instanceFormat : Integer 0
instanceFlags : Integer 0
classIndex : Integer 1652
classFlags : Integer 0
maxSubclassIndex : Integer 1653
filenameSymbol : Symbol '/nix/store/8r4hg5172rka90c7dls5xnjglvb03wl7-supercollider-with-plugins-3.12.2/share/SuperCollider/SCClassLibrary/Common/Files/File.sc'
charPos : Integer 0
classVarIndex : Integer 213
}
CALL STACK:
MethodError:reportError
arg this = <instance of PrimitiveFailedError>
Nil:handleError
arg this = nil
arg error = <instance of PrimitiveFailedError>
Thread:handleError
arg this = <instance of Thread>
arg error = <instance of PrimitiveFailedError>
Object:throw
arg this = <instance of PrimitiveFailedError>
Object:primitiveFailed
arg this = <instance of Meta_File>
ArrayedCollection:do
arg this = [*68]
arg function = <instance of Function>
var i = 14
Meta_SCDoc:indexAllDocuments
arg this = <instance of Meta_SCDoc>
arg clearCache = false
var now = 4.919052754
var key = "Classes/String"
var doc = <instance of SCDocEntry>
var nonHelpFiles = [*68]
var undocClasses = <instance of IdentitySet>
var additions = <instance of Dictionary>
Meta_SCDoc:documents
arg this = <instance of Meta_SCDoc>
Meta_SCDoc:findHelpFile
arg this = <instance of Meta_SCDoc>
arg str = "SinOsc"
var old = nil
var sym = nil
var pfx = "file:///home/dot/.local/shar..."
Meta_HelpBrowser:openHelpFor
arg this = <instance of Meta_HelpBrowser>
arg text = "SinOsc"
String:help
arg this = "SinOsc"
Class:openHelpFile
arg this = <instance of Meta_SinOsc>
Class:help
arg this = <instance of Meta_SinOsc>
Interpreter:interpretPrintCmdLine
arg this = <instance of Interpreter>
var res = nil
var func = <instance of Function>
var code = "SinOsc.help"
var doc = nil
var ideClass = nil
Process:interpretPrintCmdLine
arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Primitive '_FileCopy' failed.
caught exception 'Invalid cross-device link: copy from "/nix/store/8r4hg5172rka90c7dls5xnjglvb03wl7-supercollider-with-plugins-3.12.2/share/SuperCollider/HelpSource/Classes/IdentityDictionary_01.png" to "/home/dot/.local/share/SuperCollider/Help/Classes/IdentityDictionary_01.png"' in primitive in method Meta_File:copy
RECEIVER: File
UPDATE: hardlinks can’t be created between partitions. so either: sclang
should be set to read directly from a given location, rather than copy it; or the nixos
package should be softlinking rather than hardlinking?
I’ll try to see what I can do, but while I’m doing that, do you all have any tips? ideas? @Jeff_Brown ?