Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query BaselineOf dependencies? #517

Open
hernanmd opened this issue Jun 20, 2020 · 8 comments
Open

Query BaselineOf dependencies? #517

hernanmd opened this issue Jun 20, 2020 · 8 comments

Comments

@hernanmd
Copy link

Imagine I have loaded a very complex Baseline, using Metacello.

I would like to inspect which other Baselines are loaded by this complex Baseline. And maybe check for Baseline dependencies of a Baseline dependency itself... and so on.

Is there a way to query and get a tree of baseline dependencies?

Something like?

BaselineOfMyProject dependencyTree.
@dalehenrich
Copy link
Member

dalehenrich commented Jun 20, 2020 via email

@dalehenrich
Copy link
Member

dalehenrich commented Jun 20, 2020 via email

@hernanmd
Copy link
Author

Thanks Dale! Yes, I remember the visualization, just wanted to check if it can be produced out of their box.
Will try to use your script to see what I get.

@hernanmd
Copy link
Author

Maybe something is missing, I get "Instance of MetacelloScriptApiExecutor did not understand #versionDirectivesDo:" for example with a very small repo:

| directives versions |

directives := Metacello new
	baseline: 'StringExtensions';
	repository: 'github://hernanmd/StringExtensions/repository';
	record.
versions := OrderedCollection new.
directives versionDirectivesDo: [:d | versions add: d ].
versions

@dalehenrich
Copy link
Member

dalehenrich commented Jun 21, 2020 via email

@hernanmd
Copy link
Author

I ran this in a clean vanilla Pharo 8 image (Pharo 8.0.0
Build information: Pharo-8.0.0+build.1140.sha.5e328f2d7e8ed65fbddfb761624df5a19d0400f7 (64 Bit)) under macOS:

 wget -O- get.pharo.org/64 | bash -

All Metacello tests (183) passes, but this is the output I get running your script:

Instance of MetacelloScriptApiExecutor did not understand #versionDirectivesDo:
MetacelloScriptApiExecutor(Object)>>doesNotUnderstand: #versionDirectivesDo:
UndefinedObject>>DoIt
OpalCompiler>>evaluate
RubSmalltalkEditor>>evaluate:andDo:
RubSmalltalkEditor>>highlightEvaluateAndDo:
[ textMorph textArea editor highlightEvaluateAndDo: ann action.
textMorph shoutStyler style: textMorph text ] in [ textMorph textArea
handleEdit: [ textMorph textArea editor highlightEvaluateAndDo: ann action.
textMorph shoutStyler style: textMorph text ] ] in GLMMorphicPharoScriptRenderer(GLMMorphicPharoCodeRenderer)>>actOnHighlightAndEvaluate: in Block: [ textMorph textArea editor highlightEvaluateAndDo...etc...
RubEditingArea(RubAbstractTextArea)>>handleEdit:
[ textMorph textArea
handleEdit: [ textMorph textArea editor highlightEvaluateAndDo: ann action.
textMorph shoutStyler style: textMorph text ] ] in GLMMorphicPharoScriptRenderer(GLMMorphicPharoCodeRenderer)>>actOnHighlightAndEvaluate: in Block: [ textMorph textArea...
WorldState>>runStepMethodsIn:
WorldMorph>>runStepMethods
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
WorldMorph>>doOneCycle
WorldMorph class>>doOneCycle
[ [ WorldMorph doOneCycle.
Processor yield.
false ] whileFalse: [ ] ] in MorphicUIManager>>spawnNewProcess in Block: [ [ WorldMorph doOneCycle....
[ self value.
Processor terminateActive ] in BlockClosure>>newProcess in Block: [ self value....

@dalehenrich
Copy link
Member

dalehenrich commented Jun 22, 2020 via email

@hernanmd
Copy link
Author

Thanks Dale, I thought there was only one version of Metacello for all flavors and I also didn't found a forked Pharo 8 version. I will check if I find some info about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants