Closed Ducasse closed 2 weeks ago
So apparently this is not in the microdown baseline in Pharo but in the baseline in the microdown repo.
I do not get why Attempt to read undeclared variable IceRepository
BaselineOfMicrodown >> postload: loader package: packageSpec
| p |
self class name, ' postload ' traceCr.
p := (IceRepository repositoryNamed: 'microdown').
p ifNil: [ p := (IceRepository repositoryNamed: 'Microdown') ].
[
(p ifNotNil: [ :p2 | (p2 packageNamed: 'BaselineOfMicrodown') reload ])
]
on: MCMergeOrLoadWarning
do: [ :ex | ex load ]
Something like this?
postload: loader package: packageSpec
| repo |
self class name, ' postload ' traceCr.
repo := (self class environment classNamed: #IceRepository)
ifNotNil: [ :iceberg |
iceberg registry
detect: [ :each | each name = 'Microdown' ]
ifNone: [ nil ] ].
[ repo ifNotNil: [ :p2 | (p2 packageNamed: 'BaselineOfMicrodown') reload ] ]
on: MCMergeOrLoadWarning
do: [ :ex | ex load ]
I did a PR to fix this: https://github.com/pillar-markup/Microdown/pull/909
Fixed, although some problems persists: #17348
Apparently the build is broken. Now I do not understand why because I did not change anything in the pharo13 branch of Microdown.