Problem upgrading seaside from an existing image (Pharo #14438 and Seaside 3.0)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Problem upgrading seaside from an existing image (Pharo #14438 and Seaside 3.0)

Dave
DiegoLont wrote
Dave,

Thanks for fixing my script, I was rather fast in typing a reply.
No problem, Diego, I make a lot of typos when I write

There can be several problems remaining, that might be a bit more difficult to find out:
        1) Metacello might be outdated. The configuration of Seaside is quite complex, and therefor needs a recent version. Loading a newer version of Metacallo before upgrading Seaside might help.
Done, no improvement.

        2) Your package cache might be polluted. Trying to upgrade an image, always put things in your package cache first (downloads them there) and wrong packages here sometimes lead to trouble. But I understand that Stephan tested with a clean image, so this is not the case.
Yep, I also tested with a brand new image with no success.

        3) There might be a problem with one of the (newer) used configurations. One of the trouble I ran into was that the currentVersion was not determined correctly, so I had to specify Seaside3 differently. I do not know if all configurations are well. Finding out where the problem here is, is harder. But maybe you should try running:
                (ConfigurationOfSeaside3 project version: #stable)

But I will try to find some time to look into your problem.
Thanks
Davide

Good luck,
Diego
Reply | Threaded
Open this post in threaded view
|

Re: Problem upgrading seaside from an existing image (Pharo #14438 and Seaside 3.0)

DiegoLont
Hi Dave,

I have found the root cause of your problem:
- During the update prices it tries to load
                        package: 'Refactoring-Spelling' with: [
                                spec repository: 'http://www.squeaksource.com/PharoTaskForces'.
                                spec requires: 'Refactoring-Critics'.
                                spec postLoadDoIt: #postLoadRBSpelling ];
from the ConfigurationOfRefactoringBrowser.
Because in this folder (http://www.squeaksource.com/PharoTaskForces') there is a file called ".mcz" Gofer fails.

So you can either circumvent this problem, by making this package not to be loaded (i.e. update this package by hand to version 29 (the version it tries to fetch when crashing)) or make a bug fix, that it should no longer crash on invalid named packages. When I look at the implementation in Pharo 2.0, this implementation is already fixed. The method
MCFileBasedRepository.readableFileNames
        | all cached new emptyFilenamelength |
        "<hyphenated-package-name>.<dotted.branch.tag>-<initials>.<count>.mcz"
        emptyFilenamelength := 'P-i.c.mcz' size.
        all := self allFileNames. "from repository"
        all := all reject: [ :each |  each size < emptyFilenamelength].
                "first stupid way to filter first level broken files. Ideally we should
                remove any files not following the naming pattern: PackageName-author.number[(branch)].mcz"
        cached := self cachedFileNames. "in memory"
        new := all difference: cached.
        ^ (cached asArray, new)
                select: [:ea | self canReadFileNamed: ea]
is the fixed version.

Cheers,
Diego

Op 6 sep. 2013, om 19:27 heeft Dave het volgende geschreven:

> DiegoLont wrote
>> Dave,
>>
>> Thanks for fixing my script, I was rather fast in typing a reply.
>
> No problem, Diego, I make a lot of typos when I write
>
>
>> There can be several problems remaining, that might be a bit more
>> difficult to find out:
>> 1) Metacello might be outdated. The configuration of Seaside is quite
>> complex, and therefor needs a recent version. Loading a newer version of
>> Metacallo before upgrading Seaside might help.
>
> Done, no improvement.
>
>
>> 2) Your package cache might be polluted. Trying to upgrade an image,
>> always put things in your package cache first (downloads them there) and
>> wrong packages here sometimes lead to trouble. But I understand that
>> Stephan tested with a clean image, so this is not the case.
>
> Yep, I also tested with a brand new image with no success.
>
>
>> 3) There might be a problem with one of the (newer) used configurations.
>> One of the trouble I ran into was that the currentVersion was not
>> determined correctly, so I had to specify Seaside3 differently. I do not
>> know if all configurations are well. Finding out where the problem here
>> is, is harder. But maybe you should try running:
>> (ConfigurationOfSeaside3 project version: #stable)
>>
>> But I will try to find some time to look into your problem.
>
> Thanks
> Davide
>
>
>> Good luck,
>> Diego
>
>
>
>
>
> --
> View this message in context: http://forum.world.st/Problem-upgrading-seaside-from-an-existing-image-Pharo-14438-and-Seaside-3-0-tp4706594p4706963.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Problem upgrading seaside from an existing image (Pharo #14438 and Seaside 3.0)

Dave
Hi Diego,
 Thanks for your analysis. So, I'm starting to evaluate to migrate my projects to Pharo 2

Cheers
 Dave

DiegoLont wrote
Hi Dave,

I have found the root cause of your problem:
- During the update prices it tries to load
                        package: 'Refactoring-Spelling' with: [
                                spec repository: 'http://www.squeaksource.com/PharoTaskForces'.
                                spec requires: 'Refactoring-Critics'.
                                spec postLoadDoIt: #postLoadRBSpelling ];
from the ConfigurationOfRefactoringBrowser.
Because in this folder (http://www.squeaksource.com/PharoTaskForces') there is a file called ".mcz" Gofer fails.

So you can either circumvent this problem, by making this package not to be loaded (i.e. update this package by hand to version 29 (the version it tries to fetch when crashing)) or make a bug fix, that it should no longer crash on invalid named packages. When I look at the implementation in Pharo 2.0, this implementation is already fixed. The method
MCFileBasedRepository.readableFileNames
        | all cached new emptyFilenamelength |
        "<hyphenated-package-name>.<dotted.branch.tag>-<initials>.<count>.mcz"
        emptyFilenamelength := 'P-i.c.mcz' size.
        all := self allFileNames. "from repository"
        all := all reject: [ :each |  each size < emptyFilenamelength].
                "first stupid way to filter first level broken files. Ideally we should
                remove any files not following the naming pattern: PackageName-author.number[(branch)].mcz"
        cached := self cachedFileNames. "in memory"
        new := all difference: cached.
        ^ (cached asArray, new)
                select: [:ea | self canReadFileNamed: ea]
is the fixed version.

Cheers,
Diego
Reply | Threaded
Open this post in threaded view
|

How was it received?

FDominicus
In reply to this post by DiegoLont
I think you should the QCMagritte implementation. Was there any
reaction?

Regards
Friedrich

--
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How was it received?

Stephan Eggermont-3
Hi Friedrich,

We had quite a number of people interested in QCMagritte. Several people
asked us about it after the presentation. The demo was impressive even
though we lost a ^ in creating the different builders. (fixed now). We'll create
a short screencast just demo-ing the modified twitter bootstrap.
Tobias Pape already looked at getting it to work with Squeak, and we created a CI
job for it on PharoContributions. While doing that, we found some ConfigurationOf...
issues that are now fixed.  

Cheers,
  Stephan_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
12