ByteString>>projectSpec

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

ByteString>>projectSpec

Alexandre Bergel-5
Hi!

I got this error time to time:

Error creating project: MessageNotUnderstood: ByteString>>projectSpec to reproduce evalutate the following: 'ConfigurationOfSpy project' { projectCreationError } [ #validateProject ]

Apparently something get screwed. Any idea where this could come from?

Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: ByteString>>projectSpec

Dale Henrichs
On 02/25/2011 05:29 AM, Alexandre Bergel wrote:
> Hi!
>
> I got this error time to time:
>
> Error creating project: MessageNotUnderstood: ByteString>>projectSpec to reproduce evalutate the following: 'ConfigurationOfSpy project' { projectCreationError } [ #validateProject ]
>
> Apparently something get screwed. Any idea where this could come from?
>
> Alexandre

Did you try executing:

   ConfigurationOfSpy project

This looks like an error that is occurring during validation...

Dale
Reply | Threaded
Open this post in threaded view
|

Re: ByteString>>projectSpec

Alexandre Bergel-5
> Did you try executing:
>
>  ConfigurationOfSpy project
>
> This looks like an error that is occurring during validation...


Yes, I found the problem. It was that a version number was missing (i.e., not inserted by the toolbox)
I have no idea why this occurs.

Alexandre

NB: just a remark, you often reply emails with your name in copy. It does not make your email to appear twice ? (what about this email?)
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: ByteString>>projectSpec

Dale Henrichs
On 02/25/2011 10:19 AM, Alexandre Bergel wrote:

>> Did you try executing:
>>
>>   ConfigurationOfSpy project
>>
>> This looks like an error that is occurring during validation...
>
>
> Yes, I found the problem. It was that a version number was missing (i.e., not inserted by the toolbox)
> I have no idea why this occurs.
>
> Alexandre
>
> NB: just a remark, you often reply emails with your name in copy. It does not make your email to appear twice ? (what about this email?)

It would help if you somehow provided me with a reproducible test case
or at least a stack trace in bug report so I can see if there something
that can be done to improve the validator ... I've seen empty versions
before and don't recall whether or not that they throw errors ... wait
if the error was version not found, then that would explain it ..

As for empty strings from the toolbox. Those will happen when the
package/project that is listed wasn't found to be installed in the image
(mcz file missing or currentVersion of a project resolves to nil) ... I
chose to throw in an invalid version that would break later, rather than
complain at code generation time ... perhaps I should throw an error
during generation?

I only get one copy of the mail .. so my mail client is allowing me to
get away with this:)

Dale
Reply | Threaded
Open this post in threaded view
|

Re: ByteString>>projectSpec

Alexandre Bergel-5
> It would help if you somehow provided me with a reproducible test case or at least a stack trace in bug report so I can see if there something that can be done to improve the validator ... I've seen empty versions before and don't recall whether or not that they throw errors ... wait if the error was version not found, then that would explain it ..

Here is a simple scenario:
1 - Load squeaksource.com/Spy
2 - Add a version using the toolbox (or +Version). I get a DNU ByteString>>projectSpec
3 - When I manually inspect the method, I can see the problem:
        ConfigurationOfSpy>>version122: spec
                <version: '1.22' imports: #('default' )>
                ...
                spec
                        project: 'MemoryMonitor' ;
                        project: 'Merlin' with: '1.0';
                        project: 'Mondrian' with: '2.54';
                        project: 'HealthReportProducer' with: '1.3'.
                ...
4 - The baseline contains:
                ...
                spec project: 'MemoryMonitor' with: [
                                spec
                                        className: 'ConfigurationOfMemoryMonitor';
                                        loads: #('default' );
                                        file: 'ConfigurationOfMemoryMonitor';
                                        repository: 'http://www.squeaksource.com/MemoryMonitor' 
                        ].
                ...
5 - "ConfigurationOfMemoryMonitor project currentVersion" gives me " 1.0.3 [ConfigurationOfMemoryMonitor]"

> As for empty strings from the toolbox. Those will happen when the package/project that is listed wasn't found to be installed in the image (mcz file missing or currentVersion of a project resolves to nil) ... I chose to throw in an invalid version that would break later, rather than complain at code generation time ... perhaps I should throw an error during generation?

Complaining at generation time would be a good step I think. I think it is better to not generate a version than generating one that screw up the whole configuration (I could not do "ConfigurationOfSpy project" anymore).

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: ByteString>>projectSpec

Dale Henrichs
Great. I've created an Issue for this Issue 115<http://code.google.com/p/metacello/issues/detail?id=115>...the toolbox needs more bullet proofing...

Dale

On Feb 26, 2011, at 5:07 AM, Alexandre Bergel wrote:

Here is a simple scenario:
1 - Load squeaksource.com/Spy<http://squeaksource.com/Spy>
2 - Add a version using the toolbox (or +Version). I get a DNU ByteString>>projectSpec
3 - When I manually inspect the method, I can see the problem:
ConfigurationOfSpy>>version122: spec
<version: '1.22' imports: #('default' )>
...
spec
project: 'MemoryMonitor' ;
project: 'Merlin' with: '1.0';
project: 'Mondrian' with: '2.54';
project: 'HealthReportProducer' with: '1.3'.
...
4 - The baseline contains:
...
spec project: 'MemoryMonitor' with: [
spec
className: 'ConfigurationOfMemoryMonitor';
loads: #('default' );
file: 'ConfigurationOfMemoryMonitor';
repository: 'http://www.squeaksource.com/MemoryMonitor'
].
...
5 - "ConfigurationOfMemoryMonitor project currentVersion" gives me " 1.0.3 [ConfigurationOfMemoryMonitor]"

Reply | Threaded
Open this post in threaded view
|

Re: ByteString>>projectSpec

Alexandre Bergel-5
Thanks

Alexandre


On 26 Feb 2011, at 19:43, Dale Henrichs wrote:

> Great. I've created an Issue for this Issue 115<http://code.google.com/p/metacello/issues/detail?id=115>...the toolbox needs more bullet proofing...
>
> Dale
>
> On Feb 26, 2011, at 5:07 AM, Alexandre Bergel wrote:
>
> Here is a simple scenario:
> 1 - Load squeaksource.com/Spy<http://squeaksource.com/Spy>
> 2 - Add a version using the toolbox (or +Version). I get a DNU ByteString>>projectSpec
> 3 - When I manually inspect the method, I can see the problem:
> ConfigurationOfSpy>>version122: spec
> <version: '1.22' imports: #('default' )>
> ...
> spec
> project: 'MemoryMonitor' ;
> project: 'Merlin' with: '1.0';
> project: 'Mondrian' with: '2.54';
> project: 'HealthReportProducer' with: '1.3'.
> ...
> 4 - The baseline contains:
> ...
> spec project: 'MemoryMonitor' with: [
> spec
> className: 'ConfigurationOfMemoryMonitor';
> loads: #('default' );
> file: 'ConfigurationOfMemoryMonitor';
> repository: 'http://www.squeaksource.com/MemoryMonitor'
> ].
> ...
> 5 - "ConfigurationOfMemoryMonitor project currentVersion" gives me " 1.0.3 [ConfigurationOfMemoryMonitor]"
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.