Hi Jakob,


short answer only at the current time, but thank you for looking into this!


Can you please provide a concrete example for this? Maybe we can at least find a solution for this aspect quicker than for all the rest.


Object future comment ifRejected: #halt.


A workaround might be only catching Error or Error , Warning in Promise>>#fulfillWith:passErrors: but not Exception, I guess ...


Best,

Christoph


Von: Jakob Reschke <jakres+squeak@gmail.com>
Gesendet: Mittwoch, 23. August 2023 23:23:27
An: The general-purpose Squeak developers list
Betreff: [squeak-dev] Re: On the rejection of Promises due to errors
 
Am Fr., 18. Aug. 2023 um 21:06 Uhr schrieb <christoph.thiede@student.hpi.uni-potsdam.de>:
Most importantly, you must never catch Exceptions instead of Errors but the current implementation does so. At the moment, we cannot even access any source files from a promise due to CurrentReadOnlySourceFiles. 

Can you please provide a concrete example for this? Maybe we can at least find a solution for this aspect quicker than for all the rest.