[Pharo-dev] Iceberg - loading baseline

Esteban Lorenzano estebanlm at gmail.com
Tue Oct 3 05:30:24 EDT 2017


> On 3 Oct 2017, at 11:23, Peter Uhnák <i.uhnak at gmail.com> wrote:
> 
> Don't forget to enable Metacello integration in settings.

ah, yes :)
In pharo 6.1 this is a must (I keep forgetting it, heh)

Esteban

> 
> On Tue, Oct 3, 2017 at 8:55 AM, Esteban Lorenzano <estebanlm at gmail.com <mailto:estebanlm at gmail.com>> wrote:
> 
>> On 3 Oct 2017, at 08:47, Jan Blizničenko <bliznjan at fit.cvut.cz <mailto:bliznjan at fit.cvut.cz>> wrote:
>> 
>> Hello
>> 
>> I have a local clone of git repository and I am looking for code that adds
>> this repository to Iceberg and then loads its baseline into Pharo. I am
>> using Pharo 6.1 (image 60510) and last stable Windows VM.
>> 
>> Right now I am experimenting with following code, it adds the project into
>> Iceberg, but does not load the baseline. The code is:
>> 
>>  SystemSettingsPersistence updateSettingNodes. "sets ssh key locations"
>> 
>>  (Smalltalk at: #IceRepositoryCreator) new
>> 	  url: 'git at gitlab.com <mailto:git at gitlab.com>:bliznjan/nameofmyproject.git';
>> 	  location: '/C:/Users/User/Pharo/repo/nameofmyproject/filetree'
>> asFileReference;
>> 	  subdirectory: 'filetree';
>> 	  createRepository. "this part seems to work fine”
> 
> I think this is your error: '/C:/Users/User/Pharo/repo/nameofmyproject/filetree, needs to be '/C:/Users/User/Pharo/repo/nameofmyproject (without the filetree part, which is the subdirectory)
> 
> now, I think if you do: 
> 
> Metacello new 
> 	repository: ‘gitlab://bliznjan/nameofmyproject/filetree' <>;
> 	baseline: ‘MyProject’
> 	load.
> 
> ir will also do what you want without the two steps.
> 
>> 
>>  Metacello new baseline: 'NameOfMyProject'; repository:
>> 'gitlocal:///C:/Users/User/Pharo/repo/nameofmyproject/filetree <>'; load. "this
>> one fails with exception below"
>> 
>> 
>> loading the baseline ends with Exception
>>  Could not resolve: BaselineOfNameOfMyProject [BaselineOfNameOfMyProject]
>> in C:\Users\User\Pharo\images\TestingImage1\pharo-local\package-cache
>> C:\Users\User\Pharo\repo\nameofmyproject\filetree (Libgit)
>> 
>> Those paths seem correct - the package-cache is located in exactly that
>> position (but does not contain anything that relates to my project) and the
>> filetree (repository) in the mentioned path and there is a
>> BaselineOfNameOfMyProject.package directory in there.
>> 
>> Also, if I then try loading the baseline manually via Iceberg, by right
>> clicking on BaselineOfNameOfMyProject in Packages tab, I get exactly same
>> exception.
>> 
>> Loading packages one by one manually via Iceberg Packages tab works. Also,
>> loading the baseline via GitFileTree works.
>> 
>> Thank you
>> Jan
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html <http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html>
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20171003/a976b07e/attachment-0002.html>


More information about the Pharo-dev mailing list