CampSmalltalk / STIG

Cypress implementation for VisualWorks
5 stars 4 forks source link

walkback doing STIG>>diff #1

Closed dalehenrich closed 12 years ago

dalehenrich commented 12 years ago

I had to set the root to point to my clone of STIG, then got this walkback running with: VisualWorks®, 7.8 of March 30, 2011:

Unhandled exception: Message not understood: #definitionOf:ifAbsent:
NameSpace(Object)>>doesNotUnderstand:
Store.DatumDescriptor>>definition
Store.DatumDescriptor>>asBlueprint
optimized [] in Store.PackageModel>>sharedVariableBlueprints
OrderedCollection>>do:
Store.PackageModel>>sharedVariableBlueprints
STIG.DeltaSets>>fromSource:
STIG.DeltaSets class>>from:to:
Store.PackageModel>>stigDeltasFromDisk
ByteSymbol(Symbol)>>value:
optimized [] in OrderedCollection>>collect:
OrderedCollection>>do:
OrderedCollection>>collect:
optimized [] in Refactory.Browser.BrowserNavigator>>stigDiffMenuItem
MenuBarButtonController>>dispatchBlockClosure:
MenuBarButtonController>>dispatchMenuSelection:
optimized [] in MenuBarButtonController>>menuBarActionForMenu:
BlockClosure>>ensure:
MenuBarButtonController>>menuBarActionForMenu:
MenuBarButtonController>>menuBarAction
MenuBarButtonController>>redButtonPressedEvent:
RedButtonPressedEvent>>dispatchTo:
MenuBarButtonController(Controller)>>handleEvent:
EventDispatcher>>dispatch:to:
EventDispatcher>>dispatchEvent:
RedButtonPressedEvent(Event)>>dispatch
RedButtonPressedEvent(Event)>>dispatchForWindowManager:
optimized [] in WindowManager>>safelyDispatchForWindowManager:
BlockClosure>>on:do:
WindowManager>>safelyDispatchForWindowManager:
WindowManager>>processNextEvent
optimized [] in [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
NameSpace(Object)>>doesNotUnderstand:
Receiver:
    a NameSpace
Instance Variables:
    organization = ('' #AbstractFromDisk #BoundVariableFromDisk #CypressLayout #DeltaSets #DirectoryLayout #Git #PackageFromDisk #PropertiesFromDisk #TravisLayout)
('constants' #CRswapLF #DefaultLayout #DefaultRoot)

    bindings = a NameSpaceBindings[12]
    specificImports = an Array[0]
    generalImports = an Array[1]
    parent = a NameSpace[31]
    name = #STIG
Arguments:
    aMessage = a Message with selector: #definitionOf:ifAbsent: and arguments: #(#CRswapLF BlockClosure [] in Store.DatumDescriptor>>definition)
Temporaries:
    excpt = a MessageNotUnderstood
    resumeValue = nil
Context PC = 25

----------------------------------------------------------------------
Store.DatumDescriptor>>definition
Receiver:
    a Store.DatumDescriptor
Instance Variables:
    dataKey = #CRswapLF
    nameSpaceName = 'Root.Smalltalk.STIG'
    className = nil
Temporaries:
    ns = a NameSpace[12]
Context PC = 15

----------------------------------------------------------------------
Store.DatumDescriptor>>asBlueprint
Receiver:
    a Store.DatumDescriptor
Instance Variables:
    dataKey = #CRswapLF
    nameSpaceName = 'Root.Smalltalk.STIG'
    className = nil
Temporaries:
    definitionParts = nil
    myReference = nil
    blueprint = a SharedVariableBlueprint nil
Context PC = 8

----------------------------------------------------------------------
optimized [] in Store.PackageModel>>sharedVariableBlueprints
Receiver:
    an UndefinedObject
Arguments:
    each = Root.Smalltalk.STIG.CRswapLF
Temporaries:
    blueprint = nil
    .self = [STIG]
    .output = a WriteStream
Context PC = 5

----------------------------------------------------------------------
OrderedCollection>>do:
Receiver:
    an OrderedCollection
Instance Variables:
    firstIndex = 1
    lastIndex = 6
Arguments:
    aBlock = BlockClosure [] in Store.PackageModel>>sharedVariableBlueprints
Temporaries:
    index = 1
Context PC = 17

----------------------------------------------------------------------
Store.PackageModel>>sharedVariableBlueprints
Receiver:
    a Store.PackageModel
Instance Variables:
    name = 'STIG'
    properties = an IdentityDictionary[5]
    dbInfo = an IdentityDictionary[1]
    readonly = nil
    models = an IdentityDictionary[22]
Temporaries:
    output = a WriteStream
Context PC = 20

----------------------------------------------------------------------
STIG.DeltaSets>>fromSource:
Receiver:
    a STIG.DeltaSets
Instance Variables:
    fromClasses = an Array[8]
    fromMethods = an Array[0]
    fromShares = an Array[0]
    fromProperties = an Array[4]
    fromNamespaces = an Array[1]
    toClasses = an Array[0]
    toMethods = an Array[0]
    toNamespaces = an Array[0]
    toShares = an Array[0]
    toProperties = an Array[0]
    removals = nil
    additions = nil
    changes = nil
    originals = nil
Arguments:
    aBlueprintProvider = [STIG]
Context PC = 19

----------------------------------------------------------------------
STIG.DeltaSets class>>from:to:
Receiver:
    a STIG.DeltaSets class
Instance Variables:
    superclass = Object
    methodDict = a MethodDictionary[33]
    format = 16398
    subclasses = nil
    instanceVariables = an Array[14]
    organization = ('accessing' #additions #changes #fromClasses #fromClasses: #fromMethods #fromMethods: #fromNamespaces #fromNamespaces: #fromProperties #fromProperties: #fromShares #fromShares: #originals #removals #toClasses #toClasses: #toMethods #toMethods: #toNamespaces #toNamespaces: #toProperties #toProperties: #toShares #toShares:)
('initialize-release' #fromSource: #initialize #toSource:)
('private' #addBlueprints:to: #compareFromBlueprints:toBlueprints: #compute)
('API' #buildCompositeChange #hasPackagePropertyChanges)
('printing' #printOn:)

    name = #DeltaSets
    classPool = a NameSpaceOfClass[0]
    environment = a NameSpace[12]
Arguments:
    aFromProvider = [STIG]
    aToProvider = a STIG.PackageFromDisk
Context PC = 7

----------------------------------------------------------------------
Store.PackageModel>>stigDeltasFromDisk
Receiver:
    a Store.PackageModel
Instance Variables:
    name = 'STIG'
    properties = an IdentityDictionary[5]
    dbInfo = an IdentityDictionary[1]
    readonly = nil
    models = an IdentityDictionary[22]
Temporaries:
    layout = a STIG.CypressLayout
    fromDisk = a STIG.PackageFromDisk
Context PC = 19

----------------------------------------------------------------------
ByteSymbol(Symbol)>>value:
Receiver:
    a ByteSymbol
Arguments:
    anObject = [STIG]
Context PC = 5

----------------------------------------------------------------------
optimized [] in OrderedCollection>>collect:
Receiver:
    an UndefinedObject
Arguments:
    each = [STIG]
Temporaries:
    .newCollection = an OrderedCollection[0]
    .aBlock = #stigDeltasFromDisk
Context PC = 7

----------------------------------------------------------------------
OrderedCollection>>do:
Receiver:
    an OrderedCollection
Instance Variables:
    firstIndex = 1
    lastIndex = 3
Arguments:
    aBlock = BlockClosure [] in OrderedCollection>>collect:
Temporaries:
    index = 1
Context PC = 17

----------------------------------------------------------------------
OrderedCollection>>collect:
Receiver:
    an OrderedCollection
Instance Variables:
    firstIndex = 1
    lastIndex = 3
Arguments:
    aBlock = #stigDeltasFromDisk
Temporaries:
    newCollection = an OrderedCollection[0]
Context PC = 16

----------------------------------------------------------------------
optimized [] in Refactory.Browser.BrowserNavigator>>stigDiffMenuItem
Receiver:
    an UndefinedObject
Temporaries:
    .self = a Refactory.Browser.BrowserNavigator
Context PC = 9

----------------------------------------------------------------------
MenuBarButtonController>>dispatchBlockClosure:
Receiver:
    a MenuBarButtonController
Instance Variables:
    model = nil
    view = a MacOSXMenuBarButtonView
    sensor = a TranslatingSensor
Arguments:
    aBlock = BlockClosure [] in Refactory.Browser.BrowserNavigator>>stigDiffMenuItem
Temporaries:
    na = 0
Context PC = 11

----------------------------------------------------------------------
MenuBarButtonController>>dispatchMenuSelection:
Receiver:
    a MenuBarButtonController
Instance Variables:
    model = nil
    view = a MacOSXMenuBarButtonView
    sensor = a TranslatingSensor
Arguments:
    menuSelection = BlockClosure [] in Refactory.Browser.BrowserNavigator>>stigDiffMenuItem
Context PC = 31

----------------------------------------------------------------------
optimized [] in MenuBarButtonController>>menuBarActionForMenu:
Receiver:
    an UndefinedObject
Temporaries:
    valueResult = a MenuItem 'Diff'
    .self = a MenuBarButtonController
    .aMenu = a Menu
Context PC = 35

----------------------------------------------------------------------
BlockClosure>>ensure:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in MenuBarButtonController>>menuBarActionForMenu:
    outerContext = nil
    copiedValues = an Array[2]
Arguments:
    aBlock = BlockClosure [] in MenuBarButtonController>>menuBarActionForMenu:
Temporaries:
    result = nil
Context PC = 4

----------------------------------------------------------------------
MenuBarButtonController>>menuBarActionForMenu:
Receiver:
    a MenuBarButtonController
Instance Variables:
    model = nil
    view = a MacOSXMenuBarButtonView
    sensor = a TranslatingSensor
Arguments:
    aMenu = a Menu
Temporaries:
    performer = a Refactory.Browser.RefactoringBrowser
Context PC = 31

----------------------------------------------------------------------
MenuBarButtonController>>menuBarAction
Receiver:
    a MenuBarButtonController
Instance Variables:
    model = nil
    view = a MacOSXMenuBarButtonView
    sensor = a TranslatingSensor
Temporaries:
    theMenu = a Menu
Context PC = 20

----------------------------------------------------------------------
MenuBarButtonController>>redButtonPressedEvent:
Receiver:
    a MenuBarButtonController
Instance Variables:
    model = nil
    view = a MacOSXMenuBarButtonView
    sensor = a TranslatingSensor
Arguments:
    event = a RedButtonPressedEvent
Context PC = 10

----------------------------------------------------------------------
RedButtonPressedEvent>>dispatchTo:
Receiver:
    a RedButtonPressedEvent
Instance Variables:
    time = 71101497
    initiator = an EventDispatcher
    window = a ScheduledWindow 6663424
    state = 1
    x = 194
    y = 7
    gx = 429
    gy = 140
    buttonNumber = 1
Arguments:
    anObject = a MenuBarButtonController
Context PC = 4

----------------------------------------------------------------------
MenuBarButtonController(Controller)>>handleEvent:
Receiver:
    a MenuBarButtonController
Instance Variables:
    model = nil
    view = a MacOSXMenuBarButtonView
    sensor = a TranslatingSensor
Arguments:
    event = a RedButtonPressedEvent
Context PC = 4

----------------------------------------------------------------------
EventDispatcher>>dispatch:to:
Receiver:
    an EventDispatcher
Instance Variables:
    windowController = an ApplicationStandardSystemController
    currentMouseConsumer = nil
    grabbingMouse = false
    lastControlObject = nil
    trapList = nil
    state = nil
    repairDamageWhenDebugging = true
    flushQueueAfterError = true
    distributeEventsWhenDebugging = true
    dragDropInProgress = false
    dragDropTracker = nil
    dispatchUnknownEvents = false
Arguments:
    event = a RedButtonPressedEvent
    object = a MenuBarButtonController
Temporaries:
    tmp = nil
Context PC = 10

----------------------------------------------------------------------
EventDispatcher>>dispatchEvent:
Receiver:
    an EventDispatcher
Instance Variables:
    windowController = an ApplicationStandardSystemController
    currentMouseConsumer = nil
    grabbingMouse = false
    lastControlObject = nil
    trapList = nil
    state = nil
    repairDamageWhenDebugging = true
    flushQueueAfterError = true
    distributeEventsWhenDebugging = true
    dragDropInProgress = false
    dragDropTracker = nil
    dispatchUnknownEvents = false
Arguments:
    event = a RedButtonPressedEvent
Temporaries:
    objectWantingControl = a MenuBarButtonController
    targetKeyboardProcessor = nil
Context PC = 122

----------------------------------------------------------------------
RedButtonPressedEvent(Event)>>dispatch
Receiver:
    a RedButtonPressedEvent
Instance Variables:
    time = 71101497
    initiator = an EventDispatcher
    window = a ScheduledWindow 6663424
    state = 1
    x = 194
    y = 7
    gx = 429
    gy = 140
    buttonNumber = 1
Context PC = 16

----------------------------------------------------------------------
RedButtonPressedEvent(Event)>>dispatchForWindowManager:
Receiver:
    a RedButtonPressedEvent
Instance Variables:
    time = 71101497
    initiator = an EventDispatcher
    window = a ScheduledWindow 6663424
    state = 1
    x = 194
    y = 7
    gx = 429
    gy = 140
    buttonNumber = 1
Arguments:
    aWinMgr = a WindowManager
Context PC = 4

----------------------------------------------------------------------
optimized [] in WindowManager>>safelyDispatchForWindowManager:
Receiver:
    an UndefinedObject
Temporaries:
    .event = a RedButtonPressedEvent
    .self = a WindowManager
Context PC = 6

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in WindowManager>>safelyDispatchForWindowManager:
    outerContext = nil
    copiedValues = an Array[2]
Arguments:
    anExceptionSelector = BadControllerError
    handlerBlock = BlockClosure [] in WindowManager>>safelyDispatchForWindowManager:
Context PC = 18

----------------------------------------------------------------------
WindowManager>>safelyDispatchForWindowManager:
Receiver:
    a WindowManager
Instance Variables:
    windows = an OrderedCollection[1]
    activeController = nil
    interruptLock = false
    outstandingMetaOrDamage = false
    openInProgress = false
    eventQueue = an EventQueue
    baseProcess = a Process in Semaphore>>waitIfCurtailedSignal
    dontFilterEvents = false
Arguments:
    event = a RedButtonPressedEvent
Context PC = 13

----------------------------------------------------------------------
WindowManager>>processNextEvent
Receiver:
    a WindowManager
Instance Variables:
    windows = an OrderedCollection[1]
    activeController = nil
    interruptLock = false
    outstandingMetaOrDamage = false
    openInProgress = false
    eventQueue = an EventQueue
    baseProcess = a Process in Semaphore>>waitIfCurtailedSignal
    dontFilterEvents = false
Temporaries:
    event = a RedButtonPressedEvent
Context PC = 9

----------------------------------------------------------------------
optimized [] in [] in WindowManager>>newProcess
Receiver:
    an UndefinedObject
Temporaries:
    .self = a WindowManager
Context PC = 13

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in [] in WindowManager>>newProcess
    outerContext = nil
    copiedValues = a WindowManager
Arguments:
    anExceptionSelector = TerminateException
    handlerBlock = BlockClosure [] in [] in WindowManager>>newProcess
Context PC = 18

----------------------------------------------------------------------
optimized [] in WindowManager>>newProcess
Receiver:
    an UndefinedObject
Temporaries:
    .self = a WindowManager
Context PC = 15

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in WindowManager>>newProcess
    outerContext = nil
    copiedValues = a WindowManager
Arguments:
    anExceptionSelector = TerminateException
    handlerBlock = BlockClosure [] in [] in Process class>>forBlock:priority:
Context PC = 18

----------------------------------------------------------------------
optimized [] in Process class>>forBlock:priority:
Receiver:
    an UndefinedObject
Temporaries:
    .aBlock = BlockClosure [] in WindowManager>>newProcess
Context PC = 9
mkobetic commented 12 years ago

Yup, the diff is still mostly broken. It doesn't DNU on me, but it doesn't give correct results either. Currently when I want to commit an update, I have to wipe the packages directory and regenerate it from scratch. I think the issue has something to do with the types of BindingReferences that are created for the two sides of the comparison. One side seems to be using Root.Smalltalk. prefix, the other doesn't, so they all end up comparing as different. So normally I get a list of removals removing everything and then a list of additions adding everything back in. I hope to fix this soon.

dalehenrich commented 12 years ago

Ah, cool ... I just followed your install instructions and kablouie:)

Like I said no hurry on my part ... I was going to generate the vw variant for Cypress-Mocks ... I was also interested in seeing what would happen if I tried loading the VW code into Pharo:)

Dale

----- Original Message ----- From: "Martin Kobetic" reply@reply.github.com To: "Dale Henrichs" dhenrich@vmware.com Sent: Wednesday, April 11, 2012 4:36:04 PM Subject: Re: [STIG] walkback doing STIG>>diff (#1)
Yup, the diff is still mostly broken. It doesn't DNU on me, but it
doesn't give correct results either. Currently when I want to commit
an update, I have to wipe the packages directory and regenerate it
from scratch. I think the issue has something to do with the types
of BindingReferences that are created for the two sides of the
comparison. One side seems to be using Root.Smalltalk. prefix, the
other doesn't, so they all end up comparing as different. So
normally I get a list of removals removing everything and then a
list of additions adding everything back in. I hope to fix this
soon.
---
Reply to this email directly or view it on GitHub:
https://github.com/CampSmalltalk/STIG/issues/1#issuecomment-5081605
mkobetic commented 12 years ago

OK, the diff should be working now. I'll create new issues for finishing load and save next.

Dale, I don't know if you feel like giving it another look, but either way can you let me know if you're OK with closing this issue ?

AntonyBlakey commented 12 years ago

This exact error still occurs on VW 7.10 preview.