Cant add local git repo to Iceberg

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

Cant add local git repo to Iceberg

Pharo Smalltalk Users mailing list
I already have a GitHub repository named FredsLunch-Pharo.
The local clone of that (using shell and git) is

Importing repository from /Users/Michael/Development/gitRepos/FredsLunch-Pharo

> [graphe:~/Development/gitRepos/FredsLunch-Pharo] Michael% git status
> On branch master
> Your branch is up-to-date with 'origin/master'.
> Changes to be committed:
>   (use "git reset HEAD <file>..." to unstage)
>
> modified:   FredsLunch.st
> new file:   FredsLunchCSV.st
> new file:   FredsLunchLunch.st
> new file:   FredsLunchLunchData.st
> new file:   FredsLunchLunchList.st
> new file:   FredsLunchMain.st
> new file:   FredsLunchMember.st
> new file:   FredsLunchMemberList.st
> new file:   FredsLunchParticipant.st
> new file:   FredsLunchTest.st
> modified:   FredsLunchTests.st
> new file:   ManifestFredsLunch.st
>
> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
>
> pharo-local/
>
> [graphe:~/Development/gitRepos/FredsLunch-Pharo] Michael% pwd
> /Users/Michael/Development/gitRepos/FredsLunch-Pharo
> [graphe:~/Development/gitRepos/FredsLunch-Pharo] Michael%
>


The files currently in that repo were the result of doing a fileOut of each of the classes in the package.

Now, I’m trying to register that local repository in Iceberg.

After I supply the pathname for the repository and press OK I get an exception window.

Copy stack from debug window:

> FFICallout>>loaderForArgNamed:
> FFICallout>>loaderForArgNamed:indirectIndex:
> FFIVariableArgument>>resolveUsing:
> [ :arg2 | arg2 resolveUsing: arg1 ] in FFIFunctionSpec>>resolveUsing: in Block: [ :arg2 | arg2 resolveUsing: arg1 ]
> OrderedCollection>>do:
> FFIFunctionSpec>>resolveUsing:
> FFICalloutMethodBuilder>>generateMethodFromSpec:
> FFICalloutMethodBuilder>>generate
> FFICalloutMethodBuilder>>build:
> FFICalloutAPI>>function:library:
> FFICalloutAPI>>function:module:
> LGitRepository(LGitExternalObject)>>callUnchecked:options:
> LGitRepository>>repository_open:bare_path:
> [ self
> repository_open: self
> bare_path: self repositoryReference pathString ] in LGitRepository>>open in Block: [ self...
> LGitRepository(LGitExternalObject)>>withReturnHandlerDo:
> LGitRepository>>open
> IceLibgitRepository>>repositoryHandle
> [ | tmp1 |
> self isValid
> ifFalse: [ ^ #() ].
> tmp1 := self repositoryHandle allRemotes.
> ^ tmp1
> collect: [ :arg1 |
> | tmp3 |
> tmp3 := IceGitRemote name: arg1 remoteName url: arg1 url.
> tmp3
> localRepository: self;
> yourself ] ] in IceLibgitRepository>>remotes in Block: [ | tmp1 |...
> BlockClosure>>on:do:
> IceLibgitRepository>>handleLibgitError:
> IceLibgitRepository>>remotes
> IcePharoPlugin class>>isAvailableFor:
> [ :arg2 | arg2 isAvailableFor: arg1 ] in IcePlugin class>>allAvailableFor: in Block: [ :arg2 | arg2 isAvailableFor: arg1 ]
> OrderedCollection>>select:
> IcePlugin class>>allAvailableFor:
> IcePluginManager>>availablePluginsFor:
> IcePluginManager>>initializeRepository:
> IcePluginManager class>>managerFor:
> IceLibgitRepository(IceRepository)>>pluginManager
> IceRepositoryCreator>>addLocalRepository
>
>

If I try to Fuel out the exception I get another exception whose stack looks like this:

> File>>openForWrite:
> File>>openForWrite
> File>>writeStream
> File>>writeStreamDo:
> FLPharo7Platform>>fileNamed:writeStreamDo:
> FLSerializer>>serialize:toFileNamed:
> FuelOutStackDebugAction class>>serializeTestFailureContext:toFileNamed:
> FuelOutStackDebugAction>>serializeStack
> FuelOutStackDebugAction>>executeAction
> FuelOutStackDebugAction(DebugAction)>>execute
> [ self execute ] in FuelOutStackDebugAction(DebugAction)>>asGlamourAction in Block: [ self execute ]
> BlockClosure>>glamourValueWithArgs:
> GLMGenericAction(GLMAction)>>actOn:
> GLMGenericAction(GLMAction)>>morphicActOn:
> [ | tmp2 |
> (tmp2 := selector numArgs) = 0
> ifTrue: [ target perform: selector ]
> ifFalse: [ tmp2 = arguments size
> ifTrue: [ target perform: selector withArguments: arguments ]
> ifFalse: [ target perform: selector withArguments: (arguments copyWith: arg1) ] ].
> self
> showShortcut;
> changed ] in ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent: in Block: [ | tmp2 |...
> BlockClosure>>ensure:
> CursorWithMask(Cursor)>>showWhile:
> ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent:
> ToggleMenuItemMorph(MenuItemMorph)>>mouseUp:
> ToggleMenuItemMorph(MenuItemMorph)>>handleMouseUp:
> MouseButtonEvent>>sentTo:
> ToggleMenuItemMorph(Morph)>>handleEvent:
> MorphicEventDispatcher>>dispatchDefault:with:
> MorphicEventDispatcher>>handleMouseUp:
> MouseButtonEvent>>sentTo:
> [ ^ arg1 sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with: in Block: [ ^ arg1 sentTo: self ]
> BlockClosure>>ensure:
> MorphicEventDispatcher>>dispatchEvent:with:
> ToggleMenuItemMorph(Morph)>>processEvent:using:
> MorphicEventDispatcher>>dispatchDefault:with:
>




Reply | Threaded
Open this post in threaded view
|

Re: Cant add local git repo to Iceberg

Stéphane Ducasse

Importing repository from /Users/Michael/Development/gitRepos/FredsLunch-Pharo

[graphe:~/Development/gitRepos/FredsLunch-Pharo] Michael% git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
 (use "git reset HEAD <file>..." to unstage)

modified:   FredsLunch.st
new file:   FredsLunchCSV.st
new file:   FredsLunchLunch.st
new file:   FredsLunchLunchData.st
new file:   FredsLunchLunchList.st
new file:   FredsLunchMain.st
new file:   FredsLunchMember.st
new file:   FredsLunchMemberList.st
new file:   FredsLunchParticipant.st
new file:   FredsLunchTest.st
modified:   FredsLunchTests.st
new file:   ManifestFredsLunch.st

Untracked files:
 (use "git add <file>..." to include in what will be committed)

pharo-local/

[graphe:~/Development/gitRepos/FredsLunch-Pharo] Michael% pwd
/Users/Michael/Development/gitRepos/FredsLunch-Pharo
[graphe:~/Development/gitRepos/FredsLunch-Pharo] Michael%



The files currently in that repo were the result of doing a fileOut of each of the classes in the package.

You do not have to do the fileout by hand.
Did you check the chapters in PBE80 books and section 10 of the attached pdf



Now, I’m trying to register that local repository in Iceberg.

After I supply the pathname for the repository and press OK I get an exception window.

this is strange 
can you tell us your 
OS
+ version
Pharo version

Copy stack from debug window:

FFICallout>>loaderForArgNamed:
FFICallout>>loaderForArgNamed:indirectIndex:
FFIVariableArgument>>resolveUsing:
[ :arg2 | arg2 resolveUsing: arg1 ] in FFIFunctionSpec>>resolveUsing: in Block: [ :arg2 | arg2 resolveUsing: arg1 ]
OrderedCollection>>do:
FFIFunctionSpec>>resolveUsing:
FFICalloutMethodBuilder>>generateMethodFromSpec:
FFICalloutMethodBuilder>>generate
FFICalloutMethodBuilder>>build:
FFICalloutAPI>>function:library:
FFICalloutAPI>>function:module:
LGitRepository(LGitExternalObject)>>callUnchecked:options:
LGitRepository>>repository_open:bare_path:
[ self
repository_open: self
bare_path: self repositoryReference pathString ] in LGitRepository>>open in Block: [ self...
LGitRepository(LGitExternalObject)>>withReturnHandlerDo:
LGitRepository>>open
IceLibgitRepository>>repositoryHandle
[ | tmp1 |
self isValid
ifFalse: [ ^ #() ].
tmp1 := self repositoryHandle allRemotes.
^ tmp1
collect: [ :arg1 |
| tmp3 |
tmp3 := IceGitRemote name: arg1 remoteName url: arg1 url.
tmp3
localRepository: self;
yourself ] ] in IceLibgitRepository>>remotes in Block: [ | tmp1 |...
BlockClosure>>on:do:
IceLibgitRepository>>handleLibgitError:
IceLibgitRepository>>remotes
IcePharoPlugin class>>isAvailableFor:
[ :arg2 | arg2 isAvailableFor: arg1 ] in IcePlugin class>>allAvailableFor: in Block: [ :arg2 | arg2 isAvailableFor: arg1 ]
OrderedCollection>>select:
IcePlugin class>>allAvailableFor:
IcePluginManager>>availablePluginsFor:
IcePluginManager>>initializeRepository:
IcePluginManager class>>managerFor:
IceLibgitRepository(IceRepository)>>pluginManager
IceRepositoryCreator>>addLocalRepository



If I try to Fuel out the exception I get another exception whose stack looks like this:

File>>openForWrite:
File>>openForWrite
File>>writeStream
File>>writeStreamDo:
FLPharo7Platform>>fileNamed:writeStreamDo:
FLSerializer>>serialize:toFileNamed:
FuelOutStackDebugAction class>>serializeTestFailureContext:toFileNamed:
FuelOutStackDebugAction>>serializeStack
FuelOutStackDebugAction>>executeAction
FuelOutStackDebugAction(DebugAction)>>execute
[ self execute ] in FuelOutStackDebugAction(DebugAction)>>asGlamourAction in Block: [ self execute ]
BlockClosure>>glamourValueWithArgs:
GLMGenericAction(GLMAction)>>actOn:
GLMGenericAction(GLMAction)>>morphicActOn:
[ | tmp2 |
(tmp2 := selector numArgs) = 0
ifTrue: [ target perform: selector ]
ifFalse: [ tmp2 = arguments size
ifTrue: [ target perform: selector withArguments: arguments ]
ifFalse: [ target perform: selector withArguments: (arguments copyWith: arg1) ] ].
self
showShortcut;
changed ] in ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent: in Block: [ | tmp2 |...
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
ToggleMenuItemMorph(MenuItemMorph)>>invokeWithEvent:
ToggleMenuItemMorph(MenuItemMorph)>>mouseUp:
ToggleMenuItemMorph(MenuItemMorph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
ToggleMenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>handleMouseUp:
MouseButtonEvent>>sentTo:
[ ^ arg1 sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with: in Block: [ ^ arg1 sentTo: self ]
BlockClosure>>ensure:
MorphicEventDispatcher>>dispatchEvent:with:
ToggleMenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchDefault:with:








--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France


Exo-Counter.pdf (1M) Download Attachment