AbstractLauncherApplication.st
changeset 16225 ce1e52b48698
parent 16209 08c17ac3132b
child 16226 cb5fd5f3a984
child 16235 3ba8f4de3a87
--- a/AbstractLauncherApplication.st	Thu Mar 31 18:07:08 2016 +0200
+++ b/AbstractLauncherApplication.st	Fri Apr 01 00:15:01 2016 +0200
@@ -7622,13 +7622,18 @@
                                 ifTrue:[ path first , ':' , ((path copyFrom:2) asStringWith:$/) ]
                                 ifFalse:[ path first ].
 
-                isAlreadyLoaded := 
-                    (defClass := ProjectDefinition definitionClassForPackage:packageID) notNil
-                    and:[ defClass isLoaded
-                    and:[ defClass isFullyLoaded ]].
-
                 item := self getItemByPath:path packageID:packageID.
 
+                isAlreadyLoaded := false.
+                Error handle:[:ex |
+                    item label:(item label , (' ERROR - please rebuild!!' colorizeAllWith:Color red)).
+                ] do:[    
+                    isAlreadyLoaded := 
+                        (defClass := ProjectDefinition definitionClassForPackage:packageID) notNil
+                        and:[ defClass isLoaded
+                        and:[ defClass isFullyLoaded ]].
+                ].
+
                 target := fn contents first.
                 ((target startsWith:'lib ') or:[(target startsWith:'app ')]) ifTrue:[
                     pathByItem at:item put:(target copyFrom:(target indexOfSeparator + 1)) withoutSeparators.