instantiations / tonel-vast

Tonel file format writer and reader implementation for VA Smalltalk
MIT License
9 stars 3 forks source link

Handle missing classes in class extensions #17

Open eMaringolo opened 5 years ago

eMaringolo commented 5 years ago

When loading a package that has a class extension that is not in the image it currently raises an error because the class was not found.

Determine what to do in these cases. E.g. the class might exist as part of an application in the library, or the extension could be omitted (and properly logged).

I found this while trying to load BuoyConditions from issue #12.

| reader |
reader := TonelReader new readPackagesFrom:
      ((CfsPath named: CfsDirectoryDescriptor getcwd)  
         append: '..\TonelRepositories\Buoy').
(TonelLoader on:  reader) loadApplicationNamed: 'BuoyConditions'
eMaringolo commented 4 years ago

Already solved