New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with cl-manual, chords #4
Comments
Can't reproduce it here, and I checked the file containing anapadVC: it's in github, and the version in github is the same as my local version. The most likely explanation is that the file is either missing or out of date. Check the top of the output here:
Latest entry should be d50380c9, raising filter frequencies. If yours doesn't match, try updating. Otherwise: did you get an error when running |
Not reproducible, no further information provided. Closing. |
I have updated, and I've updated the various ddw quarks too. It seems to pass your tests. Still it errors out at: /make(anapadVC:pad/chordBP:ch(chords:\one)); but the error is different, it reads: ERROR: syntax error, unexpected BINOP, expecting $end ?
|
Whoa... I definitely don't get that. Are you copy/pasting the text, or typing it yourself? If pasting, are you copying from the PDF or from cl-manual-examples.scd? Copying from the PDF might include some extra, invisible characters. Another possible explanation might be text encoding, which may be related to locale. Could you save your code window as scd and upload here as an attachment? So I can inspect it byte by byte. Ok... another test. Can you post the output of this statement (copy from here)?
I'm sorry to ask for so much, but I used anapadVC just a few hours ago and nothing bad happened. I can see that, on your machine, for some reason a wrong character is being generated in the translation, but I don't see that behavior myself and I don't know why it's happening on your machine and not mine. Thanks for your patience -- |
I have, at the manuals (your) suggestion, typed them in myself. I include a copy of this file, but looking You have suggested that I execute the statement above and see what it produces. I have to guess a little \loadAllCl.eval The former gave: and the latter gave: "Fact('anapadVC').chuck(VC('pad')); PROTECTED CALL STACK: CALL STACK: If I have misinterpreted your request, please let me know. |
OK, I've fixed
And now I see where the '?' problem came from. You said you ran this:
But actually ran this:
... which is a parsing bug with comments at the end of a cll statement. I will fix it tomorrow but it's quite late and I can't do it right now. I didn't even think of that because I didn't know what statement you were really running. In the meantime, could you try this?
Really appreciate your patience, thanks. |
'?' bug is fixed now, too: 1f251ce
|
Loaded the latest ddwChucklib-livecode and ddwLivecodeInstruments and now /make(anapadVC:pad/chordBP:ch(chords:\one)); works. I, apparently naively, thought the markings for comments were the same as the main supercollider |
Comments should be the same. There was a bug processing them, which caused the "?" error you saw, but that isn't the behavior I wanted. The bug is fixed, so now your version with the comment should behave correctly. It's difficult to unpack the first error, because there wasn't much info about it and there are now at least 2 other errors listed in the thread. The target kept moving. If it's working now, we probably should just close it. I do appreciate the error report and your patience in sending the details. There were a couple of bugs in the code that are now fixed -- I'm happy about fixing those! Thanks for taking the time :) |
I am running SuperCollider 3.9.0-rc2. Running through the examples (in sequence) on everything's fine until
I reach on page 12:
/make(anapadVC:pad/chordBP:ch(chords:\one));
It errors out, posting this:
ERROR: clMake: Fact('anapadVC') does not exist
PROTECTED CALL STACK:
a FunctionDef 0x800d4e8
sourceCode = "{ |stream|
var fact, target, parms, ch, start, factory;
#fact, ch = ~parseWord.(stream);
if(Fact.exists(fact.asSymbol).not) {
Error("clMake: Fact('%') does not exist".format(fact)).throw;
};
if(ch == $:) {
#target, ch = ~parseWord.(stream);
if(target.isEmpty) {
"clMake: empty target name for Fact(%), reverting to default"
.format(fact.asSymbol.asCompileString).warn;
target = nil;
};
};
if(ch == $() {
start = stream.pos;
\clParseBracketed.eval(...etc..."
arg stream = a CollStream
var fact = anapadVC
var target = nil
var parms = nil
var ch = :
var start = nil
var factory = nil
a FunctionDef 0x800cf28
sourceCode = "{ |code|
var stream = CollStream(code), ch, continue = true;
~ids = Array.new;
while { (ch = stream.next).notNil and: { ch != $( } };
if(ch != $() {
Error("clMake expected parentheses").throw;
};
while { continue } {
~ids = ~ids.add(~parseOne.(stream));
ch = stream.peek;
case
{ ch == $/ } { continue = true; stream.next }
{ ch.isNil or: { ch == $) } } { continue = false }
{ Error("clMake: invalid separator '%'".format(ch)).throw };
};
if(ch.isNil) {
...etc..."
arg code = make(anapadVC:pad/chordBP:ch(chords:\one))
var stream = a CollStream
var ch = (
var continue = true
a FunctionDef 0x800c688
sourceCode = "{ |code|
~parseIDs.(code);
~writeCode.();
}"
arg code = make(anapadVC:pad/chordBP:ch(chords:\one))
a FunctionDef 0x3c88d00
sourceCode = ""
a FunctionDef 0x3c86d40
sourceCode = ""
Function:prTry 0x32bf740
arg this = a Function
var result = nil
var thread = a Thread
var next = a Function
var wasInProtectedFunc = true
Function:protect 0x32becc0
arg this = a Function
arg handler = a Function
var result = nil
Proto:use 0x3c867c0
arg this = a Proto
arg func = a Function
arg failSilentlyAfterFree = false
var result = nil
var saveEnvir = a Proto
Proto:doesNotUnderstand 0x3c885c0
arg this = a Proto
arg selector = process
arg args = nil
var result = [ make(anapadVC:pad/chordBP:ch(chords:\one)) ]
var item = nil
a FunctionDef 0x8098098
sourceCode = ""
arg assn = (clMake -> ^ make(.))
ArrayedCollection:do 0x3fb9d00
arg this = [ (clMake -> ^ make(.)), (clFuncCall -> ^
id\.\(.*\)), (clPassThru -> ^ *([A-Z][A-Za-z0-9_]*\.)?
id(.)), (clChuck -> ^ ([A-Z][A-Za-z0-9_].)?id *=>.*), (clPatternSet -> ^ *
id(.|id|
id*[0-9]+)* = .), (clGenerator -> ^id(\.|
id) *.), (clXferPattern -> ^id(\.
id)?(*int)? ->>), (clCopyPattern -> ^ *
id(.id)?(\*
int)? ->), (clStartStop -> ^([/spc]*
id)+[spc]*[+-]), (clPatternToDoc -> ^ *
id(.|id)*(\*[0-9]+)?[
spc]$) ]arg function = a Function
var i = 0
a FunctionDef 0x8098208
sourceCode = ""
arg break = a Function
a FunctionDef 0x3c88d00
sourceCode = ""
a FunctionDef 0x3c86d40
sourceCode = ""
Function:prTry 0x32bf740
arg this = a Function
var result = nil
var thread = a Thread
var next = nil
var wasInProtectedFunc = false
CALL STACK:
Exception:reportError
arg this =
Nil:handleError
arg this = nil
arg error =
Thread:handleError
arg this =
arg error =
Object:throw
arg this =
Function:protect
arg this =
arg handler =
var result =
Proto:use
arg this =
arg func =
arg failSilentlyAfterFree = false
var result = nil
var saveEnvir =
Proto:doesNotUnderstand
arg this =
arg selector = 'process'
arg args = [*1]
var result = nil
var item =
< FunctionDef in closed FunctionDef >
arg stmt = "/make(anapadVC:pad/chordBP:c..."
arg i = 0
ArrayedCollection:do
arg this = [*2]
arg function =
var i = 0
< closed FunctionDef >
arg code = [*2]
Interpreter:interpretPrintCmdLine
arg this =
var res = nil
var func = nil
var code = "/make(anapadVC:pad/chordBP:c..."
var doc = nil
var ideClass =
Process:interpretPrintCmdLine
arg this =
^^ The preceding error dump is for ERROR: clMake: Fact('anapadVC') does not exist
What gives?
Thank You for Your Attention
The text was updated successfully, but these errors were encountered: