SqueakMap Package Loader

squeak-dev at lists.squeakfoundation.org squeak-dev at lists.squeakfoundation.org
Fri Oct 25 08:17:07 UTC 2002


Hi Ned, Chris and all!

Ned Konz <ned at bike-nomad.com> wrote:
> On Thursday 24 October 2002 05:36 pm, Norton, Chris wrote:
> 
> > The next thing I noticed is that the stock Squeak image can't
> > display Göran's name properly.  Apparently we need to add 'ö' to
> > the standard font set.  With so many European Squeakers, I was
> > rather surprised to see this.
> 
> I believe that this is because the character encoding used on the web=20
> page is different from the one used in Squeak. The 246 byte for the =F6=20
> character got transferred (perhaps ISO8859-1), but Squeak doesn't=20
> regard it as an  =F6 character. In this case, perhaps we should have=20
> called isoToSqueak which would have transcoded it right.
> 
> Hmm.. that can be done in the method I added the clickable links to.=20
> Try the attached CS.

I will integrate. Thanks for caring about my name! :-)
To be true - I haven't looked at these enconding issues at all yet.

> > Looking over the details, I see two
> > URLs (Homepage & Download).  Wouldn't it be nice if these were a
> > different color and/or underlined, as they are in all of my web
> > browsers?
> 
> That's what my recent enhancement does; this has already been wrapped=20
> into the next version of Squeakmap.

Yep. RC2 of SqueakMap is coming up later today and also I think a new
SMBrowser and Daniels SMLoader is also brewing...

> > OK, so I'm back to wondering what the heck I can do with this tool.
> >  I tried right mouse clicking over the description pane and didn't
> > even get an edit menu, though I *can* type in that window.  Hmm.=20
> > What does that mean?
> 
> It means that the pane needs to be locked.

Probably. That pane is not intended to be editable at all.

> > (self newCategoryWithId: '82f328ab-175d-40b4-a363-bc0287dabd77')
> > =09created: 3206703836
> > =09updated:3206703836
> > =09name: 'Development tools'
> > =09summary: 'Add-on development tools for Squeak.'
> > =09url: ''
> > =09mandatory: false
> > =09parentId: nil!
> >
> > This seems, to me, to be some sort of temporary data file.  I can
> > only presume that it was downloaded from http://anakin.bluefish.se
> > or perhaps it was created when the 'SM Package Loader' was
> > installed?  I don't know. Maybe it is the result of my request to
> > 'update map from the net'?
> 
> I think this is the Squeakmap data itself. Perhaps the logs are being=20
> written for diagnostic reasons; I don't know.

Eh, I will respond to the original posting - I didn't see the context.
But it is the format in which the transactions are sent - simply
Compiler "evals".

> > *  How come some of the packages don't have information in the
> > upper right pane?
> 
> Because when they were registered, no categories were entered (the=20
> upper right pane lists categories for the selected package).

Right, and some of the packages were registered before I even had these
categories.
And before some of them were made mandatory. We should probably go
through them and correct them.

> > Fine.  Now I'm ready to try this puppy out.  I chose 'Win32 Native
> > Fonts (1.0)' and selected 'install'.  Well, whatever it did, it was
> > fast.  The item has disappeared from the list.  I think some
> > bio-feedback would be good here.

Ouch. You got bitten by a subtle bug immediately. ;-) In RC1 Neds
SMZipInstaller recognized the .zip format (as a .sar file which is a
.zip file with some rules on the contents) which means it tries to
install it and since Andreas .zip file isn't actually such a .sar file
it doesn't work. Of course - the error reporting here is lousy, it's on
my todo list.

And I have already made sure that SMZipInstaller only recognizes .sar
files which means that "Minnestore" and "Win32 Native Fonts" (and
perhaps others) will not offer the "install" choice.

> That's a good suggestion. I think the default view is of things that=20
> you haven't installed yet (or things that are new).

Right, SM Loader think it installed it (wrongly, see above) and that
made it disappear from the list since you are vieweing "new or newer"
packages. I think Daniel will change the default view to be "all
packages".

> > OK, I searched my disk and found the Win32NativeFonts.zip file is
> > now in my 'sm' directory.  Opening the archive, I see many files
> > inside.  I can only presume that the 'SM Package Loader' downloaded
> > the archive, but then didn't know how to 'install' it.  Is this a
> > bug???  Should the 'SM Package Loader' have tried to file in the
> > contents of the archive?

See above.

> No, this is the responsibility of the packager. The .sar (Squeak=20
> Archive) format that I came up with is a Zip file with two magically=20
> named files: 'install/preamble' and 'install/postscript'. These are=20
> both filed in; typically the preamble will load change sets from the=20
> zip, and the postscript will open up windows, help, etc.
> 
> With an arbitrary zip, there are no such guidelines. With .cs or=20
> =2Ecs.gz or .st or .st.gz files, we know what to do and file them in.

And again, with RC2 the SMZipInstaller will not think it can handle .zip
files...
More info on the .sar format is in the (gasp) SMZipInstaller class
comment.

> > The SMSqueakMapBrowser has a class comment (Hurrah!).  In the

All my classes have! :-)

> > comment I find: "SMSqueakMapBrowser open", which is great, but
> > don't you think it should be a URL?  Maybe I'm getting too used to
> > point & click technology.

Good idea. I have never used style in my code sofar, but I could throw
that in for kicks.

> I think that it's a good idea to put instructions and handy=20
> invocations into the Squeakmap descriptions so that people will see=20
> what to do after they install. Or even better, include a readme in a=20
> =2Esar file and have the postscript pop it up in a Workspace or=20
> FileBrowser. In the readme, we can have live links.

Yes, indeed. At least a "getting it running" paragraph in the package
description would be nice.
But that will have to be up to the maintainer, right? Or should it be a
separate optional text field? Nah...
And Daniel has also written a dynamic menu thingy that we intend to
start using so that installed packages end up in the menus! Yiha.

> > * One thing that is missing from SqueakMap is a 'ReadMe' after
> > something gets loaded.  In the case of the Refactory Browser, I
> > expected a window to pop up and give me some basic instructions on
> > what to do next.  Perhaps this could be improved upon.
> 
> Again, this is something that should be standard in a package. There's=20
> even support in ChangeSets (via the postscript) to do such things.

Exactly. I think it will have to be up to the package itself to do that.
For example, if you install DVS it will actually fire itself up!

> > Thanks for the nice tools G=F6ran & Daniel!  I hope this e-mail will
> > help you with your feature.
> 
> Thanks for the feedback, Chris!

Indeed thanks!

regards, Göran



More information about the Squeak-dev mailing list