Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/scripts/preLoading.st
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
IceRepository registry remove: (IceRepository repositoryNamed: #tonel).
#( 'BaselineOfTonel' ) do: [ :each |
(RPackageOrganizer default packageNamed: each ifAbsent: [ nil ])
ifNotNil: [ :aPackage | aPackage removeFromSystem ] ]
#( 'BaselineOfTonel' ) do: [ :each | (each asPackageIfAbsent: [ nil ]) ifNotNil: #removeFromSystem ]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

**/.DS_Store

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ loadDefinitions

| definitionOrders newDefinitions tagNames |
definitionOrders := self class definitionOrders.
newDefinitions := ((self packageDirectory entries select: [ :each | self canBeLoaded: each ]) collect: [ :each |
each readStreamDo: [ :s | TonelParser parseStream: s ] ]) flattened sort: [ :a :b |
(definitionOrders at: a class) < (definitionOrders at: b class) ].

newDefinitions := ((self packageDirectory entries select: [ :file | self canBeLoaded: file ]) collect: [ :file | self parseTonelFile: file ]) flattened sort: [
:a
:b | (definitionOrders at: a class) < (definitionOrders at: b class) ].

self ensurePackagesAndTagsOfDefinitions: newDefinitions.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
loading
parseTonelFile: file
"In case of error we add the info of the file that produced the error for a better debugging experience."

^ [ file readStreamDo: [ :aStream | TonelParser parseStream: aStream ] ]
on: TonelParseError
do: [ :error |
error messageText: 'Error while parsing ' , file basename , ': ' , error messageText.
error pass ]
Loading