antonhornquist / Grrr-sc

Grid controller UI toolkit for SuperCollider
5 stars 1 forks source link

Error with first example #1

Closed tatecarson closed 7 years ago

tatecarson commented 7 years ago

Hello,

When try to run:

a=GRScreenGrid.new; // creates a virtual grid which shows up in a separate window
b=GRButton(a, 0@0); // places a 1x1 button at top left key

I get this error:

ERROR: Message 'indicateAddedRemovedAttachedDetached' not understood.
RECEIVER:
class GRCommon (0x116e40a00) {
  instance variables [19]
    name : Symbol 'GRCommon'
    nextclass : instance of Meta_GRContainerView (0x1190f3600, size=19, set=5)
    superclass : Symbol 'Object'
    subclasses : nil
    methods : nil
    instVarNames : nil
    classVarNames : instance of SymbolArray (0x116e3fc80, size=3, set=2)
    iprototype : nil
    cprototype : instance of Array (0x116e40b80, size=3, set=2)
    constNames : nil
    constValues : nil
    instanceFormat : Integer 0
    instanceFlags : Integer 0
    classIndex : Integer 2221
    classFlags : Integer 0
    maxSubclassIndex : Integer 2221
    filenameSymbol : Symbol '/Users/tatecarson/Library/Application Support/SuperCollider/Extensions/Grrr-sc/GRCommon.sc'
    charPos : Integer 0
    classVarIndex : Integer 60
}
ARGS:
PATH: /Users/tatecarson/Library/Application Support/SuperCollider/Extensions/Grrr-sc/HelpSource/Overviews/Grrr.schelp
CALL STACK:
    DoesNotUnderstandError:reportError   0x11d1a4bc8
        arg this = <instance of DoesNotUnderstandError>
    Nil:handleError   0x11d1991c8
        arg this = nil
        arg error = <instance of DoesNotUnderstandError>
    Thread:handleError   0x11d136348
        arg this = <instance of Thread>
        arg error = <instance of DoesNotUnderstandError>
    Object:throw   0x11d158ea8
        arg this = <instance of DoesNotUnderstandError>
    Object:doesNotUnderstand   0x11d1635d8
        arg this = <instance of Meta_GRCommon>
        arg selector = 'indicateAddedRemovedAttachedDetached'
        arg args = [*0]
    GRContainerView:prAddChild   0x11cb478a8
        arg this = <instance of GRTopView>
        arg view = <instance of GRButton>
        arg origin = <instance of Point>
        arg preventFlash = false
    GRContainerView:addChild   0x11d173f88
        arg this = <instance of GRTopView>
        arg view = <instance of GRButton>
        arg origin = <instance of Point>
    GRController:addChild   0x11d16b028
        arg this = <instance of GRScreenGrid>
        arg argView = <instance of GRButton>
        arg argOrigin = <instance of Point>
    GRView:validateParentOriginAndAddToParent   0x11cfa7208
        arg this = <instance of GRButton>
        arg argParent = <instance of GRScreenGrid>
        arg argOrigin = <instance of Point>
    GRView:initGRView   0x11cb47e08
        arg this = <instance of GRButton>
        arg argParent = <instance of GRScreenGrid>
        arg argOrigin = <instance of Point>
        arg argNumCols = 1
        arg argNumRows = 1
        arg argEnabled = true
    Meta_GRButton:new   0x11cb48858
        arg this = <instance of Meta_GRButton>
        arg parent = <instance of GRScreenGrid>
        arg origin = <instance of Point>
        arg numCols = nil
        arg numRows = nil
        arg enabled = true
        arg coupled = true
        arg behavior = 'toggle'
    < closed FunctionDef >  (no arguments or variables)
    Interpreter:interpretPrintCmdLine   0x11cb48ec8
        arg this = <instance of Interpreter>
        var res = nil
        var func = <instance of Function>
        var code = "b=GRButton(a, 0@0); // place..."
        var doc = nil
        var ideClass = <instance of Meta_ScIDE>
    Process:interpretPrintCmdLine   0x11d1213f8
        arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Message 'indicateAddedRemovedAttachedDetached' not understood.
RECEIVER: GRCommon

Is there a dependency I don't know about? I removed the previous grr-monome classes because there was a discrepancy, so I don't think that's a problem.

I'm on OSX 10.11.6 SC 3.8

antonhornquist commented 7 years ago

Thanks. Just commited 240167567c01981a66d91e55d494d14ebe51617d which should fix classvars in GRCommon I broke during last refactoring.

The code is a bit split up now compared to what i posted on http://llllllll.co. To use Grrr with a monome you need these libs in your extensions folder: Grrr-sc (has no dependencies) SerialOSCClient-sc (has no dependencies) GrrrMonome-sc (requires SerialOSCClient-sc)

I still haven't tried with a real monome after my most recent patches but it ought to work. :)

Let me know if you run into something. Thanks.