Questions tagged [metacello]

Metacello is the standard dependency management package for cross-platform Smalltalk development.

Metacello provides the same functionality as gem/bundle for Ruby, or maven for Java: it lets you specify the internal structure of your application in terms of Monticello packages, and lets you specify your external dependencies.

This allows for "one click" installations, where you can recursively load a package and all its (transitive) dependencies into a running Smalltalk image.

16 questions
6
votes
3 answers

How to define a ConfigurationOf with a #development version that depends on a baseline?

In Pharo, I want to define a Metacello's ConfigurationOfNand2Tetris that has just one package: ConfigurationOfNand2Tetris>>baseline01: spec spec for: #common do: [ spec blessing: #baseline; …
Damien Cassou
  • 2,555
  • 1
  • 16
  • 21
4
votes
1 answer

Installing Smalltalk project from GitHub Repository

First of all: I never worked with Smalltalk before, so it's a bit of a culture shock for me. I am using Squeak 5.1 (32bit). Now to my question: I want to install a Smalltalk project from a GitHub Repository. I successfully installed Metacello using…
4
votes
1 answer

How to add project to configuration browser?

One easy way of installing projects in pharo is by using a Configuration Browser. How can a developer make his project appear in this browser?
Uko
  • 13,134
  • 6
  • 58
  • 106
4
votes
1 answer

What is the #includes: directive in Metacello?

I don't understand the following excerpt. More precisely, it's not clear what the #includes: directive is since it looks exactly like the opposite of #requires:. spec for: #'pharo3.x' do: [ spec package: 'Grease-Core' with: [ …
Damien Cassou
  • 2,555
  • 1
  • 16
  • 21
3
votes
1 answer

Load version of package for a given date in Pharo

I am looking for a way to, given a package name, load a version of that package that was the newest version at a given date. For example: HypotheticalClassLoader loadPackage: 'Athens-Core' onDate: ('12.03.2015' asDate). Would load the first commit…
BoriS
  • 907
  • 5
  • 13
2
votes
2 answers

How to debug a MetacelloProjectSpecLoadError?

When loading a configuration which depends of many configurations I have a debugger windows opened with: MetacelloProjectSpecLoadError: No version found for '13' of ConfigurationOfNeoCSV because: Version '13' is not defined in…
Juanjo
  • 155
  • 3
2
votes
2 answers

Can i require a specific commit of another Metacello ConfigurationOf in my Metacello configuration?

In the baseline of ConfigurationOfMyProject i require project Something: spec project: 'Something' with: [ spec className: 'ConfigurationOfSomething'; repository: 'http://smalltalkhub.com/mc/SomeOne/Something/main'; …
MartinW
  • 4,966
  • 2
  • 24
  • 60
2
votes
3 answers

How to load Metacello in Squeak?

It is known that Metacello first or main target was Pharo, but it seems now that Squeak 4 is supported. I've tried but fails due a missing method. From the Transcript: Starting atomic load Loaded -> OSProcess-dtl.65 ---…
user1000565
  • 927
  • 4
  • 12
1
vote
3 answers

How to browse Metacello repositories in Pharo Smalltalk?

I have downloaded Pharo 1.2.2 #12353 and wanted to install some packages in a easier way than going through Monticello Browser. I do not want to copy and paste scripts to install packages. After I opened the Menu, Tools, Configuration Browser a new…
user869097
  • 1,362
  • 8
  • 16
1
vote
1 answer

Metacello dependency on a package from github project

How can one depend directly on a package from a github repo? (Assuming the project has no baseline, or there is a reason not use the baseline.) I've tried the following spec spec package: 'Magritte-XMLBinding' with: [ spec …
Peter Uhnak
  • 9,617
  • 5
  • 38
  • 51
1
vote
1 answer

Determining loaded group from postLoadDoIt:

Is it possible to determine what group was used to load a particular baseline from postLoadDoIt: in Metacello? For example: BaselineOfProject>>baseline: spec ... spec group: 'default' with: #(...). spec group: 'complete'…
Peter Uhnak
  • 9,617
  • 5
  • 38
  • 51
1
vote
3 answers

Metacello says "This package"?

I am using pharo 4. I just installed a configuration which load other configurations, and I am getting this error: This package depends on the following classes: GTExampleTestCase GTExampleFinder You must resolve these dependencies before you…
Juanjo
  • 155
  • 3
0
votes
1 answer

how to install a specific metacello group from command line in Pharo 9?

I'm running this line which used to work as expected in Pharo 8, but doesn't in Pharo 9/10: ./pharo bootstrap.image metacello install tonel://./src BaselineOfPowerlang --groups=base Instead of installing the base group, in Pharo 9 it installs…
melkyades
  • 1,719
  • 11
  • 20
0
votes
0 answers

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:…
VitorCruz
  • 372
  • 2
  • 17
0
votes
1 answer

Updating project that extends a class removed in dependency project

Imagine that you have a package MyPackage and it depends on another project called Library. MyPackage has extension methods in a class LibraryClass which is in the Library project. At some point Library is changed and LibraryClass is renamed to…
Uko
  • 13,134
  • 6
  • 58
  • 106
1
2