[pharo7] loading mcz files

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

[pharo7] loading mcz files

Hans Baveco
It appeared impossible to load any packages (mcz files) from a MCFileRepositoryInspector, in a recent pharo (moose) 7 image (on windows 7), stack below. Apparently, somewhere a Character null is encountered where an integer is expected...

Any ideas how to solve this?

TIA, Hans



Character(Object)>>doesNotUnderstand: #bitOr:
SmallInteger>>bitOr:
ZnEndianessReadWriteStream>>nextLittleEndianNumber:
ZipArchive>>readEndOfCentralDirectoryFrom:
ZipArchive>>readFrom:
MCMczReader>>zip
MCMczReader>>parseMember:
MCMczReader>>loadPackage
MCMczReader(MCVersionReader)>>package
MCMczReader(MCVersionReader)>>basicVersion
MCMczReader(MCVersionReader)>>version
[ :r | r version ] in MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed: in Block: [ :r | r version ]
[ :s |
(MCVersionReader readerClassForFileNamed: aString)
        ifNotNil:
                [ :class | aBlock value: (class on: s fileName: (self pathForFileNamed: aString)) ] ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do: in Block: [ :s | ...
MCSubDirectoryRepository>>readStreamForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed:
[ self loadVersionFromFileNamed: aFileName ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed: in Block: [ self loadVersionFromFileNamed: aFileName ]
Dictionary>>at:ifAbsent:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed:
[ version := repository versionFromFileNamed: selectedVersion ] in MCFileRepositoryInspector>>version in Block: [ version := repository versionFromFileNamed: sele...etc...
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
MCFileRepositoryInspector>>version
MCFileRepositoryInspector(MCVersionInspector)>>versionSummary
MCFileRepositoryInspector(MCVersionInspector)>>summary
MCFileRepositoryInspector(Object)>>perform:withEnoughArguments:
RubPluggableTextMorph(RubScrolledTextMorph)>>getTextFromModel
RubPluggableTextMorph>>update:
[ :aDependent | aDependent update: aParameter ] in MCFileRepositoryInspector(Model)>>changed: in Block: [ :aDependent | aDependent update: aParameter ]
DependentsArray>>do:
Reply | Threaded
Open this post in threaded view
|

Re: [pharo7] loading mcz files

Guillermo Polito
Hi Hans,

I'm trying to reproduce this one. It seems it happens only with a "Directory with subdirectories" kind of repository. Can you confirm?
I do now know exactly what this should do, never used it before.

I'll check it and come back to you.

Guille

On Wed, Dec 12, 2018 at 12:46 PM Baveco, Hans <[hidden email]> wrote:
It appeared impossible to load any packages (mcz files) from a MCFileRepositoryInspector, in a recent pharo (moose) 7 image (on windows 7), stack below. Apparently, somewhere a Character null is encountered where an integer is expected...

Any ideas how to solve this?

TIA, Hans



Character(Object)>>doesNotUnderstand: #bitOr:
SmallInteger>>bitOr:
ZnEndianessReadWriteStream>>nextLittleEndianNumber:
ZipArchive>>readEndOfCentralDirectoryFrom:
ZipArchive>>readFrom:
MCMczReader>>zip
MCMczReader>>parseMember:
MCMczReader>>loadPackage
MCMczReader(MCVersionReader)>>package
MCMczReader(MCVersionReader)>>basicVersion
MCMczReader(MCVersionReader)>>version
[ :r | r version ] in MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed: in Block: [ :r | r version ]
[ :s |
(MCVersionReader readerClassForFileNamed: aString)
        ifNotNil:
                [ :class | aBlock value: (class on: s fileName: (self pathForFileNamed: aString)) ] ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do: in Block: [ :s | ...
MCSubDirectoryRepository>>readStreamForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed:
[ self loadVersionFromFileNamed: aFileName ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed: in Block: [ self loadVersionFromFileNamed: aFileName ]
Dictionary>>at:ifAbsent:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed:
[ version := repository versionFromFileNamed: selectedVersion ] in MCFileRepositoryInspector>>version in Block: [ version := repository versionFromFileNamed: sele...etc...
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
MCFileRepositoryInspector>>version
MCFileRepositoryInspector(MCVersionInspector)>>versionSummary
MCFileRepositoryInspector(MCVersionInspector)>>summary
MCFileRepositoryInspector(Object)>>perform:withEnoughArguments:
RubPluggableTextMorph(RubScrolledTextMorph)>>getTextFromModel
RubPluggableTextMorph>>update:
[ :aDependent | aDependent update: aParameter ] in MCFileRepositoryInspector(Model)>>changed: in Block: [ :aDependent | aDependent update: aParameter ]
DependentsArray>>do:


--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|

Re: [pharo7] loading mcz files

Guillermo Polito
I've opened an issue here:


The reason is that several parts of monticello were updated to use the new file streams, but MCSubdirectory was not.
I'll be posting a fix in a couple of minutes.

On Wed, Dec 12, 2018 at 3:24 PM Guillermo Polito <[hidden email]> wrote:
Hi Hans,

I'm trying to reproduce this one. It seems it happens only with a "Directory with subdirectories" kind of repository. Can you confirm?
I do now know exactly what this should do, never used it before.

I'll check it and come back to you.

Guille

On Wed, Dec 12, 2018 at 12:46 PM Baveco, Hans <[hidden email]> wrote:
It appeared impossible to load any packages (mcz files) from a MCFileRepositoryInspector, in a recent pharo (moose) 7 image (on windows 7), stack below. Apparently, somewhere a Character null is encountered where an integer is expected...

Any ideas how to solve this?

TIA, Hans



Character(Object)>>doesNotUnderstand: #bitOr:
SmallInteger>>bitOr:
ZnEndianessReadWriteStream>>nextLittleEndianNumber:
ZipArchive>>readEndOfCentralDirectoryFrom:
ZipArchive>>readFrom:
MCMczReader>>zip
MCMczReader>>parseMember:
MCMczReader>>loadPackage
MCMczReader(MCVersionReader)>>package
MCMczReader(MCVersionReader)>>basicVersion
MCMczReader(MCVersionReader)>>version
[ :r | r version ] in MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed: in Block: [ :r | r version ]
[ :s |
(MCVersionReader readerClassForFileNamed: aString)
        ifNotNil:
                [ :class | aBlock value: (class on: s fileName: (self pathForFileNamed: aString)) ] ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do: in Block: [ :s | ...
MCSubDirectoryRepository>>readStreamForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed:
[ self loadVersionFromFileNamed: aFileName ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed: in Block: [ self loadVersionFromFileNamed: aFileName ]
Dictionary>>at:ifAbsent:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed:
[ version := repository versionFromFileNamed: selectedVersion ] in MCFileRepositoryInspector>>version in Block: [ version := repository versionFromFileNamed: sele...etc...
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
MCFileRepositoryInspector>>version
MCFileRepositoryInspector(MCVersionInspector)>>versionSummary
MCFileRepositoryInspector(MCVersionInspector)>>summary
MCFileRepositoryInspector(Object)>>perform:withEnoughArguments:
RubPluggableTextMorph(RubScrolledTextMorph)>>getTextFromModel
RubPluggableTextMorph>>update:
[ :aDependent | aDependent update: aParameter ] in MCFileRepositoryInspector(Model)>>changed: in Block: [ :aDependent | aDependent update: aParameter ]
DependentsArray>>do:


--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13



--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|

Re: [pharo7] loading mcz files

Guillermo Polito

On Wed, Dec 12, 2018 at 3:46 PM Guillermo Polito <[hidden email]> wrote:
I've opened an issue here:


The reason is that several parts of monticello were updated to use the new file streams, but MCSubdirectory was not.
I'll be posting a fix in a couple of minutes.

On Wed, Dec 12, 2018 at 3:24 PM Guillermo Polito <[hidden email]> wrote:
Hi Hans,

I'm trying to reproduce this one. It seems it happens only with a "Directory with subdirectories" kind of repository. Can you confirm?
I do now know exactly what this should do, never used it before.

I'll check it and come back to you.

Guille

On Wed, Dec 12, 2018 at 12:46 PM Baveco, Hans <[hidden email]> wrote:
It appeared impossible to load any packages (mcz files) from a MCFileRepositoryInspector, in a recent pharo (moose) 7 image (on windows 7), stack below. Apparently, somewhere a Character null is encountered where an integer is expected...

Any ideas how to solve this?

TIA, Hans



Character(Object)>>doesNotUnderstand: #bitOr:
SmallInteger>>bitOr:
ZnEndianessReadWriteStream>>nextLittleEndianNumber:
ZipArchive>>readEndOfCentralDirectoryFrom:
ZipArchive>>readFrom:
MCMczReader>>zip
MCMczReader>>parseMember:
MCMczReader>>loadPackage
MCMczReader(MCVersionReader)>>package
MCMczReader(MCVersionReader)>>basicVersion
MCMczReader(MCVersionReader)>>version
[ :r | r version ] in MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed: in Block: [ :r | r version ]
[ :s |
(MCVersionReader readerClassForFileNamed: aString)
        ifNotNil:
                [ :class | aBlock value: (class on: s fileName: (self pathForFileNamed: aString)) ] ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do: in Block: [ :s | ...
MCSubDirectoryRepository>>readStreamForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionReaderForFileNamed:do:
MCSubDirectoryRepository(MCFileBasedRepository)>>loadVersionFromFileNamed:
[ self loadVersionFromFileNamed: aFileName ] in MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed: in Block: [ self loadVersionFromFileNamed: aFileName ]
Dictionary>>at:ifAbsent:
MCSubDirectoryRepository(MCFileBasedRepository)>>versionFromFileNamed:
[ version := repository versionFromFileNamed: selectedVersion ] in MCFileRepositoryInspector>>version in Block: [ version := repository versionFromFileNamed: sele...etc...
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
MCFileRepositoryInspector>>version
MCFileRepositoryInspector(MCVersionInspector)>>versionSummary
MCFileRepositoryInspector(MCVersionInspector)>>summary
MCFileRepositoryInspector(Object)>>perform:withEnoughArguments:
RubPluggableTextMorph(RubScrolledTextMorph)>>getTextFromModel
RubPluggableTextMorph>>update:
[ :aDependent | aDependent update: aParameter ] in MCFileRepositoryInspector(Model)>>changed: in Block: [ :aDependent | aDependent update: aParameter ]
DependentsArray>>do:


--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13



--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13



--

   

Guille Polito

Research Engineer

Centre de Recherche en Informatique, Signal et Automatique de Lille

CRIStAL - UMR 9189

French National Center for Scientific Research - http://www.cnrs.fr


Web: http://guillep.github.io

Phone: +33 06 52 70 66 13