making .extension files (like .class files)

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

making .extension files (like .class files)

rohit_01
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: making .extension files (like .class files)

Martin Bähr
Excerpts from rohit sharma's message of 2015-03-08 10:14:41 +0100:
> hi everyone. I am facing a problem. I cloned a repo. of package. After that
> i tried saving and opening that package using Monticello Browser.

which package did you clone?

> But
> whenever i try save & open that package in pharo, all class and extension
> files are getting deleted and pharo is showing nothing in that package. Any
> suggestion???

how exactly are you trying to load it?

> One more thing i want to ask, i.e, how to make .extension files (like
> .class files) in pharo.

what do you mean?
when code is saved with filetree (or gitfiletree) each class is a directory,
with each method as a file.

greetings, martin.

--
eKita                   -   the online platform for your entire academic life
--
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
secretary                                                      beijinglug.org
mentor                                                           fossasia.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/

Reply | Threaded
Open this post in threaded view
|

Re: making .extension files (like .class files)

stepharo
In reply to this post by rohit_01
My suggestion is try to use as much as possible smalltalkhub and
monticello before diving into git.
The pharo git support is working for people knowing it (= not me for
example).

Stef

Le 8/3/15 10:14, rohit sharma a écrit :

> hi everyone. I am facing a problem. I cloned a repo. of package. After
> that i tried saving and opening that package using Monticello Browser.
> But whenever i try save & open that package in pharo, all class and
> extension files are getting deleted and pharo is showing nothing in
> that package. Any suggestion???
> One more thing i want to ask, i.e, how to make .extension files (like
> .class files) in pharo. Any resources on this topic?
>
> Thanks
> Rohit
>
>


Reply | Threaded
Open this post in threaded view
|

Re: making .extension files (like .class files)

EstebanLM
I do not understand what are you trying to do.

you cloned a repo in your disk, then you have, for example:

path/to/myProject/myPackage.package/etc…

to use it, you have to add the repository (path/to/myProject) to monticello browser, as a filetree repository.
then you can browse and interact exactly as any other monticello repository: you can save and load packages you see listed there.

so… what lost me is the question about the .extension… you DO NOT HAVE to do anything… saving a package from monticello browser will save also the extensions belonging to that package.

cheers,
Esteban

Le 8/3/15 10:14, rohit sharma a écrit :
> hi everyone. I am facing a problem. I cloned a repo. of package. After that i tried saving and opening that package using Monticello Browser. But whenever i try save & open that package in pharo, all class and extension files are getting deleted and pharo is showing nothing in that package. Any suggestion???
> One more thing i want to ask, i.e, how to make .extension files (like .class files) in pharo. Any resources on this topic?
>
> Thanks
> Rohit
>
>




Reply | Threaded
Open this post in threaded view
|

Re: making .extension files (like .class files)

rohit_01
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: making .extension files (like .class files)

Sean P. DeNigris
Administrator
In reply to this post by rohit_01
rohit_01 wrote
One more thing i want to ask, i.e, how to make .extension files (like
.class files) in pharo
Rohit, when you put a method in a protocol of the form *MyPackage, it's a hack which is not really a protocol at all, but tells Monticello, Pharo's SCM: "package this method in MyPackage instead of with the method's class (the default)". We call it an "extension method". Then, when GitFileTree saves the source to disk, it creates a .extension file inside the .package file. It is like a .class file, but remember the class is packaged elsewhere, so it already has a .class file. On loading, if the class is present in the system, GitFileTree adds the extension method (which is described in the .extension file) to it.
Cheers,
Sean