making .extension files (like .class files)
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
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/
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
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
Actually i was using "if statements" to find which radio button is selected. So alternative of using "If statements" is to extend RadioButtonGroup and adding a method which return " ^buttons detect: [ :b | b state ] ifNone: [ nil ] " and categorized it under *name_of_my_package protocol. This method will return which button is selected by user. I was confused with Who we extending RadioButtonGroup. Initially i was facing problem with loading a repository in pharo but now its fine. Thanks Rohit On Sat, Mar 14, 2015 at 6:57 PM, Esteban Lorenzano <estebanlm@gmail.com> wrote:
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
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 -- View this message in context: http://forum.world.st/making-extension-files-like-class-files-tp4810389p4812... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (5)
-
Esteban Lorenzano -
Martin Bähr -
rohit sharma -
Sean P. DeNigris -
stepharo