How do I load a Metacello baseline from disk in cmd
I am using Pharo 6.1 64bits and Ubuntu 16 LTS.
How do I load a Tonel formated 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 .properties
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployees
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees
It is strange that it tried to access the local cache, is that correct?
If I use gitlocal:// instead of filetree:// it can find the baseline class as long as the the .git folder is present (which shouldn't be necessary...), but Metacello is unable to load remote dependencies defined on the BaselineOf class failing with a ZnTooManyRedirects
git pharo metacello
add a comment |
I am using Pharo 6.1 64bits and Ubuntu 16 LTS.
How do I load a Tonel formated 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 .properties
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployees
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees
It is strange that it tried to access the local cache, is that correct?
If I use gitlocal:// instead of filetree:// it can find the baseline class as long as the the .git folder is present (which shouldn't be necessary...), but Metacello is unable to load remote dependencies defined on the BaselineOf class failing with a ZnTooManyRedirects
git pharo metacello
Can you try using an absolute path to your project instead of a relative path? Because I use the same kind of command and it is working for me.
– Cyril Ferlicot
Jan 6 at 1:40
I think you have a problem with your export because Filetree package export creates folder ending with.package
. So you should not haveBaselineOfEmployees
butBaselineOfEmployees.package
in the ls output.
– Cyril Ferlicot
Jan 6 at 1:42
1
Well, I made it work using tonel format. I had a myriad of problems with baselines which I managed to fix by reading through this guide: github.com/pharo-open-documentation/pharo-wiki/blob/master/…
– VitorCruz
Jan 7 at 15:55
add a comment |
I am using Pharo 6.1 64bits and Ubuntu 16 LTS.
How do I load a Tonel formated 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 .properties
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployees
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees
It is strange that it tried to access the local cache, is that correct?
If I use gitlocal:// instead of filetree:// it can find the baseline class as long as the the .git folder is present (which shouldn't be necessary...), but Metacello is unable to load remote dependencies defined on the BaselineOf class failing with a ZnTooManyRedirects
git pharo metacello
I am using Pharo 6.1 64bits and Ubuntu 16 LTS.
How do I load a Tonel formated 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 .properties
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 BaselineOfEmployees
drwxrwxr-x 2 vitormcruz vitormcruz 4096 Nov 12 15:57 Employees
It is strange that it tried to access the local cache, is that correct?
If I use gitlocal:// instead of filetree:// it can find the baseline class as long as the the .git folder is present (which shouldn't be necessary...), but Metacello is unable to load remote dependencies defined on the BaselineOf class failing with a ZnTooManyRedirects
git pharo metacello
git pharo metacello
asked Nov 14 '18 at 12:18
VitorCruzVitorCruz
11939
11939
Can you try using an absolute path to your project instead of a relative path? Because I use the same kind of command and it is working for me.
– Cyril Ferlicot
Jan 6 at 1:40
I think you have a problem with your export because Filetree package export creates folder ending with.package
. So you should not haveBaselineOfEmployees
butBaselineOfEmployees.package
in the ls output.
– Cyril Ferlicot
Jan 6 at 1:42
1
Well, I made it work using tonel format. I had a myriad of problems with baselines which I managed to fix by reading through this guide: github.com/pharo-open-documentation/pharo-wiki/blob/master/…
– VitorCruz
Jan 7 at 15:55
add a comment |
Can you try using an absolute path to your project instead of a relative path? Because I use the same kind of command and it is working for me.
– Cyril Ferlicot
Jan 6 at 1:40
I think you have a problem with your export because Filetree package export creates folder ending with.package
. So you should not haveBaselineOfEmployees
butBaselineOfEmployees.package
in the ls output.
– Cyril Ferlicot
Jan 6 at 1:42
1
Well, I made it work using tonel format. I had a myriad of problems with baselines which I managed to fix by reading through this guide: github.com/pharo-open-documentation/pharo-wiki/blob/master/…
– VitorCruz
Jan 7 at 15:55
Can you try using an absolute path to your project instead of a relative path? Because I use the same kind of command and it is working for me.
– Cyril Ferlicot
Jan 6 at 1:40
Can you try using an absolute path to your project instead of a relative path? Because I use the same kind of command and it is working for me.
– Cyril Ferlicot
Jan 6 at 1:40
I think you have a problem with your export because Filetree package export creates folder ending with
.package
. So you should not have BaselineOfEmployees
but BaselineOfEmployees.package
in the ls output.– Cyril Ferlicot
Jan 6 at 1:42
I think you have a problem with your export because Filetree package export creates folder ending with
.package
. So you should not have BaselineOfEmployees
but BaselineOfEmployees.package
in the ls output.– Cyril Ferlicot
Jan 6 at 1:42
1
1
Well, I made it work using tonel format. I had a myriad of problems with baselines which I managed to fix by reading through this guide: github.com/pharo-open-documentation/pharo-wiki/blob/master/…
– VitorCruz
Jan 7 at 15:55
Well, I made it work using tonel format. I had a myriad of problems with baselines which I managed to fix by reading through this guide: github.com/pharo-open-documentation/pharo-wiki/blob/master/…
– VitorCruz
Jan 7 at 15:55
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300088%2fhow-do-i-load-a-metacello-baseline-from-disk-in-cmd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300088%2fhow-do-i-load-a-metacello-baseline-from-disk-in-cmd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you try using an absolute path to your project instead of a relative path? Because I use the same kind of command and it is working for me.
– Cyril Ferlicot
Jan 6 at 1:40
I think you have a problem with your export because Filetree package export creates folder ending with
.package
. So you should not haveBaselineOfEmployees
butBaselineOfEmployees.package
in the ls output.– Cyril Ferlicot
Jan 6 at 1:42
1
Well, I made it work using tonel format. I had a myriad of problems with baselines which I managed to fix by reading through this guide: github.com/pharo-open-documentation/pharo-wiki/blob/master/…
– VitorCruz
Jan 7 at 15:55