On Sat, 28 Apr 2001, Andreas Kuckartz wrote:
I could not reproduce this.
Which version of Squeak are you using and what is your latest update?
3.0 VM UNIX. Most recent 3.1 beta image... (all updates).. Not sure how to get the most recent update number out of squeak.
Open up a 'package browser', pick any package group: ('System')
Then for the pane listing individual packages within that group, middle-click to get a menu, select 'add item'. It will ask if you want to add a package called 'Catagory-Name'. Type anything or just click 'OK'...
CRASH into debugger.
Scott
----- Original Message ----- From: "Scott A Crosby" crosby@qwes.math.cmu.edu To: squeak@cs.uiuc.edu Sent: Thursday, April 26, 2001 9:50 PM Subject: Bug in package browser (fwd)
---------- Forwarded message ---------- Date: Mon, 23 Apr 2001 14:01:45 -0400 (EDT) From: Scott A Crosby crosby@qwes.math.cmu.edu To: squeak@cs.uiuc.edu Subject: Bug in package browser
Go into the package browser, select a system catagory. (Any one.) Then, attempt to create a new package. (by clicking in the package pane).
It crashes into the debugger.
The error appears to be here:
selectedSystemCategoryName "Answer the name of the selected system category or nil."
systemCategoryListIndex = 0 ifTrue: [^nil]. packageListIndex = 0 ifTrue: [^ self systemCategoryList at:
systemCategoryListIndex].
^ self package , '-' , (self systemCategoryList at:
systemCategoryListIn
dex)
^^^^^^^^^^^^^^^^
systemCatagoryListIndex is set at 100-something.
--
Scott
-- No DVD movie will ever enter the public domain, nor will any CD. The last
CD
and the last DVD will have moldered away decades before they leave
copyright.
This is not encouraging the creation of knowledge in the public domain.
-- No DVD movie will ever enter the public domain, nor will any CD. The last CD and the last DVD will have moldered away decades before they leave copyright. This is not encouraging the creation of knowledge in the public domain.
Scott A Crosby wrote:
On Sat, 28 Apr 2001, Andreas Kuckartz wrote:
I could not reproduce this.
Which version of Squeak are you using and what is your latest update?
I'm seeing this in Windows with Squeak3.0 of 4 Feb 2001, latest update #3522
3.0 VM UNIX. Most recent 3.1 beta image... (all updates).. Not sure how to get the most recent update number out of squeak.
evaluate "Smalltalk lastUpdateString", for example - or in the brown tab "Squeak" flap on the left of the default image, click on "about this system"
Open up a 'package browser', pick any package group: ('System')
if I select something in the second pane at this point, the following doesn't crash
Then for the pane listing individual packages within that group, middle-click to get a menu, select 'add item'. It will ask if you want to add a package called 'Catagory-Name'. Type anything or just click 'OK'...
CRASH into debugger.
Hm, I dug a bit deeper, and found this change works for me: In Browser>>addSystemCategory ... self systemCategoryListIndex: (oldIndex = 0 ifTrue: [self systemCategoryList size] "this was 'ifTrue: [ systemOrganizer categories size ]'" ifFalse: [oldIndex]). ...
"systemOrganizer categories" gives all "traditional" categories (e.g. "System-Support", ...), while "self systemCategoryList" is overridden in the package browser to only return the (i.e. "Support" in package "); so basically the problem was that it tried to select the last "traditional" category in a (shorter) list of only sub-categories.
But I really don't know the Browser machinery, so someone who is in the know should probably have a look at it (or, as Andreas can't reproduce it, someone has probably already fixed it)
Joern
I still get that at update #3910, too.
so, here's the fix, packaged as a cs this time.
from the preamble:
"Change Set: BrowserSystemCategoryList Date: 30 April 2001 Author: Joern Eyrich
fixes a problem reported by Scott A Crosby when adding a Category in the Package Browser without having a Category selected. changes hardcoded access to category list to use subclass-overridable access method"
Joern
Scott A Crosby wrote:
On Sat, 28 Apr 2001, Andreas Kuckartz wrote:
I could not reproduce this.
Which version of Squeak are you using and what is your latest update?
3.0 VM UNIX. Most recent 3.1 beta image... (all updates).. Not sure how to get the most recent update number out of squeak.
Open up a 'package browser', pick any package group: ('System')
Then for the pane listing individual packages within that group, middle-click to get a menu, select 'add item'. It will ask if you want to add a package called 'Catagory-Name'. Type anything or just click 'OK'...
CRASH into debugger.
Scott
squeak-dev@lists.squeakfoundation.org