gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

PlatformResolver>>desktop is missing <origin> Pragma

Open andyburnett opened this issue 3 years ago • 6 comments

The desktop method is missing the pragma on the MacOS image

The code should should say.

desktop ^ self home / 'Desktop'

andyburnett avatar Apr 29 '22 14:04 andyburnett

Ha, I just noticed that Github removed the pragma! What the code should have said was angle bracket origin angle bracket.

andyburnett avatar Apr 29 '22 17:04 andyburnett

Why do you think it should have that pragma?

girba avatar Jun 05 '22 18:06 girba

Only because without it the method was throwing an error. I noticed that the other methods included a similar pragma, and when I added it, everything worked. However, that could be completely u related of course!

andyburnett avatar Jun 05 '22 19:06 andyburnett

In what scenario was it throwing an error?

girba avatar Jun 06 '22 07:06 girba

I confirm this is a problem. FileLocator's predefined origins require two methods each.

From a playground, dive on FileLocator desktop. Hung my image for about a minute, apparently due to all the inspector errors.

Screen Shot 2022-06-06 at 1 11 56 PM

By contrast, FileLocator home works as expected: Screen Shot 2022-06-06 at 1 12 45 PM

seandenigris avatar Jun 06 '22 17:06 seandenigris

Thanks Sean. I was scrambling around trying to find the workspace where I first noticed the problem. Your description is spot on.

andyburnett avatar Jun 06 '22 18:06 andyburnett