Metacello baseline loading from cmd

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

Metacello baseline loading from cmd

Vitor Medina Cruz
Hello,

How do I load a baseline located at disk? I tried inside /home/vitormcruz/testpharo/:

./pharo Pharo.image eval "Metacello new baseline: 'Employees'; repository: 'filetree://employees/pharo'; load: #(core)"

But then I got:

Could not resolve: BaselineOfEmployees [BaselineOfEmployees] in /home/vitormcruz/testpharo/pharo-local/package-cache filetree:///home/vitormcruz/testpharo/employees/pharo


And ls -la of /home/vitormcruz/testpharo/employees/pharo gives:

drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 16:21 .
drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 15:57 ..
-rw-rw-r-- 1 vitormcruz vitormcruz 69 Nov 12 16:21 .filetree
-rw-rw-r-- 1 vitormcruz vitormcruz 21 Nov 12 15:57 .propertiesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployeesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees

 It is strange that it tried to access the local cache, is that correct? Im am using an Ubuntu 16 lst distribution.

Regards,
Vitor

Reply | Threaded
Open this post in threaded view
|

Re: Metacello baseline loading from cmd

cedreek
Hi Vitor,

Le 12 nov. 2018 à 19:53, Vitor Medina Cruz <[hidden email]> a écrit :

Hello,

How do I load a baseline located at disk? I tried inside /home/vitormcruz/testpharo/:

./pharo Pharo.image eval "Metacello new baseline: 'Employees'; repository: '<a href="filetree://employees/pharo" class="">filetree://employees/pharo'; load: #(core)"

But then I got:

Could not resolve: BaselineOfEmployees [BaselineOfEmployees] in /home/vitormcruz/testpharo/pharo-local/package-cache <a href="filetree:///home/vitormcruz/testpharo/employees/pharo" class="">filetree:///home/vitormcruz/testpharo/employees/pharo

I use towel format.

I could load from local repo by using something like:

Metacello new
baseline: 'ICTWorkbench';
repository: '<a href="gitlocal://../../iceberg/cdrick65/ICTWorkbench" class="">gitlocal://../../iceberg/cdrick65/ICTWorkbench' ;
load.

Not sure if it’s the correct way.

My git repo are in a common iceberg dir. I use the launcher, so iceberg dir is in the root Pharo dir (I changed the default).

HTH,

Cédrick






And ls -la of /home/vitormcruz/testpharo/employees/pharo gives:

drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 16:21 .
drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 15:57 ..
-rw-rw-r-- 1 vitormcruz vitormcruz 69 Nov 12 16:21 .filetree
-rw-rw-r-- 1 vitormcruz vitormcruz 21 Nov 12 15:57 .propertiesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployeesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees

 It is strange that it tried to access the local cache, is that correct? Im am using an Ubuntu 16 lst distribution.

Regards,
Vitor


Reply | Threaded
Open this post in threaded view
|

Re: Metacello baseline loading from cmd

Vitor Medina Cruz
Thanks Cédrick, this partly worked because I also had a git repository, but I noted that if the .git folder is not present the procedure don't work as well. It, however, cannot load remote dependent projects or baselines, and thus fail. :(



Livre de vírus. www.avg.com.

On Mon, Nov 12, 2018 at 5:03 PM Cédrick Béler <[hidden email]> wrote:
Hi Vitor,

Le 12 nov. 2018 à 19:53, Vitor Medina Cruz <[hidden email]> a écrit :

Hello,

How do I load a baseline located at disk? I tried inside /home/vitormcruz/testpharo/:

./pharo Pharo.image eval "Metacello new baseline: 'Employees'; repository: 'filetree://employees/pharo'; load: #(core)"

But then I got:

Could not resolve: BaselineOfEmployees [BaselineOfEmployees] in /home/vitormcruz/testpharo/pharo-local/package-cache filetree:///home/vitormcruz/testpharo/employees/pharo

I use towel format.

I could load from local repo by using something like:

Metacello new
baseline: 'ICTWorkbench';
repository: 'gitlocal://../../iceberg/cdrick65/ICTWorkbench' ;
load.

Not sure if it’s the correct way.

My git repo are in a common iceberg dir. I use the launcher, so iceberg dir is in the root Pharo dir (I changed the default).

HTH,

Cédrick






And ls -la of /home/vitormcruz/testpharo/employees/pharo gives:

drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 16:21 .
drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 15:57 ..
-rw-rw-r-- 1 vitormcruz vitormcruz 69 Nov 12 16:21 .filetree
-rw-rw-r-- 1 vitormcruz vitormcruz 21 Nov 12 15:57 .propertiesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployeesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees

 It is strange that it tried to access the local cache, is that correct? Im am using an Ubuntu 16 lst distribution.

Regards,
Vitor


Reply | Threaded
Open this post in threaded view
|

Re: Metacello baseline loading from cmd

Vitor Medina Cruz
Using directly the remote repository with https I got ZnTooManyRedirects :´(

On Mon, Nov 12, 2018 at 8:56 PM Vitor Medina Cruz <[hidden email]> wrote:
Thanks Cédrick, this partly worked because I also had a git repository, but I noted that if the .git folder is not present the procedure don't work as well. It, however, cannot load remote dependent projects or baselines, and thus fail. :(



Livre de vírus. www.avg.com.

On Mon, Nov 12, 2018 at 5:03 PM Cédrick Béler <[hidden email]> wrote:
Hi Vitor,

Le 12 nov. 2018 à 19:53, Vitor Medina Cruz <[hidden email]> a écrit :

Hello,

How do I load a baseline located at disk? I tried inside /home/vitormcruz/testpharo/:

./pharo Pharo.image eval "Metacello new baseline: 'Employees'; repository: 'filetree://employees/pharo'; load: #(core)"

But then I got:

Could not resolve: BaselineOfEmployees [BaselineOfEmployees] in /home/vitormcruz/testpharo/pharo-local/package-cache filetree:///home/vitormcruz/testpharo/employees/pharo

I use towel format.

I could load from local repo by using something like:

Metacello new
baseline: 'ICTWorkbench';
repository: 'gitlocal://../../iceberg/cdrick65/ICTWorkbench' ;
load.

Not sure if it’s the correct way.

My git repo are in a common iceberg dir. I use the launcher, so iceberg dir is in the root Pharo dir (I changed the default).

HTH,

Cédrick






And ls -la of /home/vitormcruz/testpharo/employees/pharo gives:

drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 16:21 .
drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 15:57 ..
-rw-rw-r-- 1 vitormcruz vitormcruz 69 Nov 12 16:21 .filetree
-rw-rw-r-- 1 vitormcruz vitormcruz 21 Nov 12 15:57 .propertiesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployeesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees

 It is strange that it tried to access the local cache, is that correct? Im am using an Ubuntu 16 lst distribution.

Regards,
Vitor


Reply | Threaded
Open this post in threaded view
|

Re: Metacello baseline loading from cmd

Vitor Medina Cruz
Ok, this error was due to a problem with my Metacello configuration. I am having a very hard time using metacello, spent almost all of yesterday trying to figure out a fix....

On Mon, Nov 12, 2018 at 9:18 PM Vitor Medina Cruz <[hidden email]> wrote:
Using directly the remote repository with https I got ZnTooManyRedirects :´(

On Mon, Nov 12, 2018 at 8:56 PM Vitor Medina Cruz <[hidden email]> wrote:
Thanks Cédrick, this partly worked because I also had a git repository, but I noted that if the .git folder is not present the procedure don't work as well. It, however, cannot load remote dependent projects or baselines, and thus fail. :(



Livre de vírus. www.avg.com.

On Mon, Nov 12, 2018 at 5:03 PM Cédrick Béler <[hidden email]> wrote:
Hi Vitor,

Le 12 nov. 2018 à 19:53, Vitor Medina Cruz <[hidden email]> a écrit :

Hello,

How do I load a baseline located at disk? I tried inside /home/vitormcruz/testpharo/:

./pharo Pharo.image eval "Metacello new baseline: 'Employees'; repository: 'filetree://employees/pharo'; load: #(core)"

But then I got:

Could not resolve: BaselineOfEmployees [BaselineOfEmployees] in /home/vitormcruz/testpharo/pharo-local/package-cache filetree:///home/vitormcruz/testpharo/employees/pharo

I use towel format.

I could load from local repo by using something like:

Metacello new
baseline: 'ICTWorkbench';
repository: 'gitlocal://../../iceberg/cdrick65/ICTWorkbench' ;
load.

Not sure if it’s the correct way.

My git repo are in a common iceberg dir. I use the launcher, so iceberg dir is in the root Pharo dir (I changed the default).

HTH,

Cédrick






And ls -la of /home/vitormcruz/testpharo/employees/pharo gives:

drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 16:21 .
drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 15:57 ..
-rw-rw-r-- 1 vitormcruz vitormcruz 69 Nov 12 16:21 .filetree
-rw-rw-r-- 1 vitormcruz vitormcruz 21 Nov 12 15:57 .propertiesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployeesdrwxrwxr
-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees

 It is strange that it tried to access the local cache, is that correct? Im am using an Ubuntu 16 lst distribution.

Regards,
Vitor


Reply | Threaded
Open this post in threaded view
|

Re: Metacello baseline loading from cmd

Paul DeBruicker
Can you post your baseline?







Vitor Medina Cruz wrote
> Ok, this error was due to a problem with my Metacello configuration. I am
> having a very hard time using metacello, spent almost all of yesterday
> trying to figure out a fix....
>
> On Mon, Nov 12, 2018 at 9:18 PM Vitor Medina Cruz &lt;

> vitormcruz@

> &gt;
> wrote:
>
>> Using directly the remote repository with https I got ZnTooManyRedirects
>> :´(
>>
>> On Mon, Nov 12, 2018 at 8:56 PM Vitor Medina Cruz &lt;

> vitormcruz@

> &gt;
>> wrote:
>>
>>> Thanks Cédrick, this partly worked because I also had a git repository,
>>> but I noted that if the .git folder is not present the procedure don't
>>> work
>>> as well. It, however, cannot load remote dependent projects or
>>> baselines,
>>> and thus fail. :(
>>>
>>>
>>>
>>>
>>> &lt;http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail&gt;
>>> Livre
>>> de vírus. www.avg.com
>>> &lt;http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail&gt;.
>>>
>>> <#m_2818603894744208060_m_9098696167481251908_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> On Mon, Nov 12, 2018 at 5:03 PM Cédrick Béler &lt;

> cdrick65@

> &gt; wrote:
>>>
>>>> Hi Vitor,
>>>>
>>>> Le 12 nov. 2018 à 19:53, Vitor Medina Cruz &lt;

> vitormcruz@

> &gt; a
>>>> écrit :
>>>>
>>>> Hello,
>>>>
>>>> How do I load a baseline located at disk? I tried inside
>>>> /home/vitormcruz/testpharo/:
>>>>
>>>> ./pharo Pharo.image eval "Metacello new baseline: 'Employees';
>>>>> repository: 'filetree://employees/pharo'; load: #(core)"
>>>>>
>>>>
>>>> But then I got:
>>>>
>>>> Could not resolve: BaselineOfEmployees [BaselineOfEmployees] in
>>>>> */home/vitormcruz/testpharo/pharo-local/package-cache*
>>>>> filetree:///home/vitormcruz/testpharo/employees/pharo
>>>>>
>>>>
>>>> I use towel format.
>>>>
>>>> I could load from local repo by using something like:
>>>>
>>>> Metacello new
>>>> baseline: 'ICTWorkbench';
>>>> repository: 'gitlocal://../../iceberg/cdrick65/ICTWorkbench' ;
>>>> load.
>>>>
>>>> Not sure if it’s the correct way.
>>>>
>>>> My git repo are in a common iceberg dir. I use the launcher, so iceberg
>>>> dir is in the root Pharo dir (I changed the default).
>>>>
>>>> HTH,
>>>>
>>>> Cédrick
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> And ls -la of /home/vitormcruz/testpharo/employees/pharo gives:
>>>>
>>>> drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 16:21 .
>>>>> drwxrwxr-x 4 vitormcruz vitormcruz 4096 Nov 12 15:57 ..
>>>>> -rw-rw-r-- 1 vitormcruz vitormcruz 69 Nov 12 16:21 .filetree
>>>>> -rw-rw-r-- 1 vitormcruz vitormcruz 21 Nov 12 15:57 .propertiesdrwxrwxr
>>>>> -x 2 vitormcruz vitormcruz 4096 Nov 12 15:57
>>>>> BaselineOfEmployeesdrwxrwxr
>>>>> -x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees
>>>>
>>>>
>>>>  It is strange that it tried to access the local cache, is that
>>>> correct?
>>>> Im am using an Ubuntu 16 lst distribution.
>>>>
>>>> Regards,
>>>> Vitor
>>>>
>>>>
>>>>





--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html