[FIX] FileUrl doesnot understand string protocol

Baveco, Hans J.M.Baveco at Alterra.wag-ur.nl
Wed Oct 17 07:18:11 UTC 2001


Well, I managed to locate the problem and fix it. The problem was that
FileUrls are not Strings but apparently (recently) replaced Strings at some
locations.
By inserting 

locUrl isString ifFalse: [locUrl _ locUrl pathString]

in the attached method (ResourceManager) makeAllProjectResourcesLocalTo:
resourceUrl

I could publish again (otherwise resourcelocations ended up referring to
bizarre non-existing directories).

Still I do not quite understand why some graphics occasionally come up
degraded in a published project, as if downloading stopped after the first
pass. This is Squeak 3.1beta upto 4411 running on win2000.

Hans Baveco

 <<ResourceManager-makeAllProjectResourcesLocalTo.st>> 





Hans Baveco Saskia Visser wrote:
> 
> I keep running into trouble, like endless "Publishing - collecting
> resources" when trying to republish the project I am working on.
> I had a working version at work, but loading it at home results in some
> mangled graphics (originally jpg's) and when after some editing (e.g.
> replacing the mangled graphics with new ones) I try to store the edited
> project I can't....
> 
> What are the hidden secrets? Obligatory locations for certain files???
> Display depth??? Use gifs?

There must be some hidden secret, otherwise I would have found that bug
already. This problem pops up occasionally, but just last week I failed
to reproduce it.

Which OS are you using? Is it a recent plugin? How did you add the
images to your project (painted, imported, drag'n'drop)?

If you don't mind, could you send me the project or a URL  (directly,
not through the list of course) so I can take a look at it?

Sorry you are having so much trouble, but maybe it at least helps to
finally track down this bug.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ResourceManager-makeAllProjectResourcesLocalTo.st
Type: application/octet-stream
Size: 1570 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20011017/f090c306/ResourceManager-makeAllProjectResourcesLocalTo-0001.obj


More information about the Squeak-dev mailing list