Hi all,
Is the second time I'm having troubles with simple changes to my package :S, and I can't figure out what I'm doing bad. I'm working in a little app. I did it 2 minor changes writing some comments on Doc side of a class, one line on a method commented and so on. Now, I'm trying to commit to my MC repository, and I get an: Error: Subscript Out Of Bounds: 1 Following the debugger, seems the error is in: foreignExtensionMethodsForClass: aClass ^ (self foreignExtensionCategoriesForClass: aClass) gather: [:cat | (aClass organization listAtCategoryNamed: cat) collect: [:sel | self referenceForMethod: sel ofClass: aClass]] where 'cat' is nil. But I don't know wich Category is this. Some advice? Note: Debug Report attached. <cid:[hidden email]> Error: subscript is out of bounds: 1 5 August 2008 7:07:25 pm VM: Win32 - a SmalltalkImage Image: Squeak3.10.2 [latest update: #7179] SecurityManager state: Restricted: false FileAccess: true SocketAccess: true Working Dir E:\Desarrollo\Squeak3.10.2-7179-glp Trusted Dir E:\Desarrollo\Squeak3.10.2-7179-glp\Giuseppe Untrusted Dir C:\My Squeak\Giuseppe ByteSymbol(Object)>>error: Receiver: #'' Arguments and temporary variables: aString: 'subscript is out of bounds: 1' Receiver's instance variables: #'' ByteSymbol(Object)>>errorSubscriptBounds: Receiver: #'' Arguments and temporary variables: index: 1 Receiver's instance variables: #'' ByteSymbol(Object)>>at: Receiver: #'' Arguments and temporary variables: index: 1 Receiver's instance variables: #'' ByteSymbol>>at: Receiver: #'' Arguments and temporary variables: index: 1 Receiver's instance variables: #'' --- The full stack --- ByteSymbol(Object)>>error: ByteSymbol(Object)>>errorSubscriptBounds: ByteSymbol(Object)>>at: ByteSymbol>>at: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ByteSymbol(SequenceableCollection)>>first PackageInfo>>isForeignClassExtension: [] in PackageInfo>>foreignExtensionCategoriesForClass: {[:cat | self isForeignClassExtension: cat]} Array(SequenceableCollection)>>select: PackageInfo>>foreignExtensionCategoriesForClass: PackageInfo>>foreignExtensionMethodsForClass: PackageInfo>>coreMethodsForClass: [] in PackageInfo>>coreMethods {[:class | self coreMethodsForClass: class]} [] in OrderedCollection(Collection)>>gather: {[:ea | stream nextPutAll: (aBlock value: ea)]} OrderedCollection>>do: [] in OrderedCollection(Collection)>>gather: {[:stream | self do: [:ea | stream nextPutAll: (aBlock value: ea)]]} Array class(SequenceableCollection class)>>streamContents: OrderedCollection(Collection)>>gather: PackageInfo>>coreMethods PackageInfo>>methods MCPackage>>snapshot MCWorkingCopy>>newVersionWithName:message: [] in MCWorkingCopy>>newVersion {[:pair | self newVersionWithName: pair first message: pair last]} Array(Object)>>ifNotNilDo: MCWorkingCopy>>newVersion MCWorkingCopyBrowser>>saveVersion PluggableButtonMorphPlus(PluggableButtonMorph)>>performAction PluggableButtonMorphPlus>>performAction [] in PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp: {[:m | (m containsPoint: evt cursorPoint) ifTrue: [m performAction]]} Array(SequenceableCollection)>>do: PluggableButtonMorphPlus(PluggableButtonMorph)>>mouseUp: PluggableButtonMorphPlus>>mouseUp: PluggableButtonMorphPlus(Morph)>>handleMouseUp: MouseButtonEvent>>sentTo: PluggableButtonMorphPlus(Morph)>>handleEvent: PluggableButtonMorphPlus(Morph)>>handleFocusEvent: [] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self. ActiveEvent := anEvent. e := anEvent transformedB...]} [] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]} BlockContext>>on:do: PasteUpMorph>>becomeActiveDuring: HandMorph>>sendFocusEvent:to:clear: HandMorph>>sendEvent:focus:clear: HandMorph>>sendMouseEvent: HandMorph>>handleEvent: HandMorph>>processEvents [] in WorldState>>doOneCycleNowFor: {[:h | ActiveHand := h. h processEvents. capturingGesture := capturingGest...]} Array(SequenceableCollection)>>do: WorldState>>handsDo: WorldState>>doOneCycleNowFor: WorldState>>doOneCycleFor: PasteUpMorph>>doOneCycle [] in Project class>>spawnNewProcess {[[World doOneCycle. Processor yield. false] whileFalse. nil]} [] in BlockContext>>newProcess {[self value. Processor terminateActive]} _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Still with the same problem :(
The class giving me problems is InciGestApp, a WebApplication children. But, IncigestApp is under Aida category, under InciGest package. All seems ok. I uploaded a DebugReport if someone can take a look. http://www.lordzealon.com/mc/debugreport Cheers. Giuseppe Luigi Punzi escribió: > Hi all, > > Is the second time I'm having troubles with simple changes to my > package :S, and I can't figure out what I'm doing bad. > > I'm working in a little app. I did it 2 minor changes writing some > comments on Doc side of a class, one line on a method commented and so > on. > > Now, I'm trying to commit to my MC repository, and I get an: > Error: Subscript Out Of Bounds: 1 > > Following the debugger, seems the error is in: > foreignExtensionMethodsForClass: aClass > ^ (self foreignExtensionCategoriesForClass: aClass) > gather: [:cat | (aClass organization listAtCategoryNamed: cat) > collect: [:sel | self referenceForMethod: sel > ofClass: aClass]] > > where 'cat' is nil. But I don't know wich Category is this. > > Some advice? > > Note: Debug Report attached. <cid:[hidden email]> > ------------------------------------------------------------------------ > > _______________________________________________ > Beginners mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Hi Giuseppe,
I'm not familiar with the code in question but it seems like somehow you have a category named '' (empty string). If I am correct, then the following should evaluate to true: InciGestApp organization categories includes: '' And, if it does, it may or may not have methods: InciGestApp allMethodsInCategory: '' I am not sure how this could have happened or how to fix it, but if it is the case perhaps someone else could suggest a safe solution. Regards, Zulq. Giuseppe Luigi Punzi wrote: > Still with the same problem :( > > The class giving me problems is InciGestApp, a WebApplication children. > But, IncigestApp is under Aida category, under InciGest package. All > seems ok. > > I uploaded a DebugReport if someone can take a look. > > http://www.lordzealon.com/mc/debugreport > > Cheers. > > Giuseppe Luigi Punzi escribió: >> Hi all, >> >> Is the second time I'm having troubles with simple changes to my >> package :S, and I can't figure out what I'm doing bad. >> >> I'm working in a little app. I did it 2 minor changes writing some >> comments on Doc side of a class, one line on a method commented and so >> on. >> >> Now, I'm trying to commit to my MC repository, and I get an: >> Error: Subscript Out Of Bounds: 1 >> >> Following the debugger, seems the error is in: >> foreignExtensionMethodsForClass: aClass >> ^ (self foreignExtensionCategoriesForClass: aClass) >> gather: [:cat | (aClass organization listAtCategoryNamed: cat) >> collect: [:sel | self referenceForMethod: sel >> ofClass: aClass]] >> >> where 'cat' is nil. But I don't know wich Category is this. >> >> Some advice? >> >> Note: Debug Report attached. <cid:[hidden email]> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Beginners mailing list >> [hidden email] >> http://lists.squeakfoundation.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Mon, Aug 11, 2008 at 03:04:28PM +0100, Zulq Alam wrote:
> Hi Giuseppe, > > I'm not familiar with the code in question but it seems like somehow you > have a category named '' (empty string). This should be handled in MC. I guess you have an old version of MC. Try upgrading to the latest version: http://www.squeaksource.com/mc.html There is a script to install this into any version of Squeak: http://installer.pbwiki.com/LevelPlayingField HTTPSocket httpFileIn: 'installer.pbwiki.com/f/LPF.st'. This script is the only supported way to upgrade Monticello, for now. -- Matthew Fulmer -- http://mtfulmer.wordpress.com/ _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
In reply to this post by Zulq Alam-2
IncigestApp organization categories includes: ''
Is false. I don't understand why fails, but with LPF as Mathew said, was corrected, and now I can save again. Thanks to all for your time. El 11/08/2008, a las 16:04, Zulq Alam escribió: > Hi Giuseppe, > > I'm not familiar with the code in question but it seems like somehow > you have a category named '' (empty string). > > If I am correct, then the following should evaluate to true: > > InciGestApp organization categories includes: '' > > And, if it does, it may or may not have methods: > > InciGestApp allMethodsInCategory: '' > > I am not sure how this could have happened or how to fix it, but if > it is the case perhaps someone else could suggest a safe solution. > > Regards, > Zulq. > > Giuseppe Luigi Punzi wrote: >> Still with the same problem :( >> The class giving me problems is InciGestApp, a WebApplication >> children. But, IncigestApp is under Aida category, under InciGest >> package. All seems ok. >> I uploaded a DebugReport if someone can take a look. >> http://www.lordzealon.com/mc/debugreport >> Cheers. >> Giuseppe Luigi Punzi escribió: >>> Hi all, >>> >>> Is the second time I'm having troubles with simple changes to my >>> package :S, and I can't figure out what I'm doing bad. >>> >>> I'm working in a little app. I did it 2 minor changes writing some >>> comments on Doc side of a class, one line on a method commented >>> and so on. >>> >>> Now, I'm trying to commit to my MC repository, and I get an: >>> Error: Subscript Out Of Bounds: 1 >>> >>> Following the debugger, seems the error is in: >>> foreignExtensionMethodsForClass: aClass >>> ^ (self foreignExtensionCategoriesForClass: aClass) >>> gather: [:cat | (aClass organization listAtCategoryNamed: cat) >>> collect: [:sel | self referenceForMethod: >>> sel ofClass: aClass]] >>> >>> where 'cat' is nil. But I don't know wich Category is this. >>> >>> Some advice? >>> >>> Note: Debug Report attached. <cid:[hidden email] >>> > >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Beginners mailing list >>> [hidden email] >>> http://lists.squeakfoundation.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |