When click open Demo's and Project starters not visible

Report bugs. Post bug workarounds or fixes

Moderator: MSandro

Post Reply
MrSteve
Posts: 61
Joined: Jun 16th, '16, 01:22

When click open Demo's and Project starters not visible

Post by MrSteve » Nov 28th, '17, 05:29

Just downloaded beta-78 (running on Mac 10.13.1)
When you click on open, and then "Examples" you get:
Screen Shot 2017-11-28 at 12.27.25 AM.png
I can't see the Demo or Project Starter Folders. Perhaps a "Demo" button and "Project Starter" button directly linked to those directories.

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: When click open Demo's and Project starters not visible

Post by JohnM » Nov 28th, '17, 11:49

It sounds like the GP application got separated from the "Examples" folder. Make sure the GP app is in the GP folder that you got when you first unzipped GP.

This problem sometimes arise on Mac OS 10.12 and later because you need to remove GP.app from the GP folder and put it in the Applications folder the first time you run it in order to be able to tell Mac OS that its okay to run the application. But after you've opened GP once that way, you should replace it in the original GP folder so it can find the "Examples" folder.

MrSteve
Posts: 61
Joined: Jun 16th, '16, 01:22

Re: When click open Demo's and Project starters not visible

Post by MrSteve » Nov 29th, '17, 01:04

Here is my directory listing:

Code: Select all

stephens-mbp-2:GP-beta-078 stephenthomas$ pwd
/Users/stephenthomas/Desktop/GP-beta-078
stephens-mbp-2:GP-beta-078 stephenthomas$ ls -ltr
total 57344
drwxr-xr-x@ 3 stephenthomas  staff        96 Jul  1 21:55 GP.app
-rw-r--r--@ 1 stephenthomas  staff      1271 Jul  8 15:02 README.txt
-rwxr-xr-x@ 1 stephenthomas  staff   5884436 Aug  9 12:09 GP_RaspberryPi
-rwx------@ 1 stephenthomas  staff  11197526 Nov 20 08:42 GP_Win.exe
-rwxrwxr-x@ 1 stephenthomas  staff   5825430 Nov 20 09:19 GP_Linux_32bit
-rwxrwxr-x@ 1 stephenthomas  staff   6442836 Nov 20 09:27 GP_Linux_64bit
drwxr-xr-x@ 9 stephenthomas  staff       288 Nov 20 09:47 runtime
drwxr-xr-x@ 5 stephenthomas  staff       160 Nov 27 23:47 Examples
stephens-mbp-2:GP-beta-078 stephenthomas$
Re-downloaded and unzip (also did a unzip -l) and it get same structure.

Tried to figure out by going into developer mode. Wound up at FilePicker and modified the setExamples to "say" the value of gpExamplesFolder (see screenshot attached. Seems the value is not set to the directory where the GP.app is located.
Screen Shot 2017-11-28 at 7.58.35 PM.png
Hi Five Side Note: I have tried in the past I have tried to dive into Etoys with much less success. I found it much easier to figure out how to get to implementation and modfy it to debug (and optionally change behavior, although I had to hard code the path and couldn't figure out how to determine the value of (gpExamplesFolder) without using the say tile.

MrSteve
Posts: 61
Joined: Jun 16th, '16, 01:22

Re: When click open Demo's and Project starters not visible

Post by MrSteve » Nov 29th, '17, 01:14

Okay so I figured out how to see the value its: '/private/var/folders/v9/xf0dlwyx24q68mzs688t7gs80000gn/T/AppTranslocation/FC5E8256-C4B5-4601-93A2-2C846EF10C7F/d/Examples'

Wound up using "print it..." (which I only knew from playing around with Etoys).

I tried "explore it..." first as the description in the bubble seemed to be what I wanted. I have a problem with the presentation shown below:
Screen Shot 2017-11-28 at 8.08.22 PM.png
My issue is it shows the "String: <value>" in the window header and wastes a lot of other space. At first I didn't even notice this in the window header. Perhaps you could show the string in the whites space. Also saw you use the same visualization for lists.
Anyway this is obviously low priority, just sharing how someone explore as they try and dive down to the metal :)

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: When click open Demo's and Project starters not visible

Post by JohnM » Dec 5th, '17, 16:57

Whoa, where did that strange path come from?

It looks like you are on Mac OS, probably the latest version (High Sierra). What's your OS version number? (e.g. 10.13.0)?

Something must have changed about how the OS resolves absolute paths. GP uses the absolute path of the app to find the Examples folder -- but it looks like that no longer works on Mac OS due to some "behind the scenes" magic with app files.

I'll dig into it this. Thanks for letting me know.

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: When click open Demo's and Project starters not visible

Post by JohnM » Dec 5th, '17, 16:58

I'm glad you were able to dig into the problem yourself.

I agree, the way the Explorer shows string values needs improvement.

MrSteve
Posts: 61
Joined: Jun 16th, '16, 01:22

Re: When click open Demo's and Project starters not visible

Post by MrSteve » Dec 11th, '17, 00:22

Running Mac OS 10.3.1

Post Reply