[GAP Forum] Problems getting GAP to read my files
Russ Woodroofe
rsw9 at cornell.edu
Sun Jun 21 12:24:07 BST 2020
Dear Will,
I want to tell you about my front-end and distribution for GAP on the Mac, Gap.app. See
https://cocoagap.sourceforge.io/
It's listed under GAP's alternative distributions.
In particular, it has a File-Open for .g files (Command-Shift-O). Also, Command-Option-Shift-O will repeat the last such open, so if you're debugging a program and reloading it over and over again, you can do it with one key shortcut.
There are two ways that Gap.app might help in your specific circumstance.
1) I don't see where your read commands are badly formed, but if they somehow are, the File-Open dialog will likely issue them correctly.
2) If there's an issue with your installation of GAP, then the GAP install included with the Gap.app+GAP download is tested and might work better.
Best,
--Russ
> On 20 Jun 2020, at 02:44, Will Chen <oxeimon at gmail.com> wrote:
>
> Dear all,
>
> I've just installed gap 4.11.0 on a new macbook. Installation seems to gone
> smoothly. However I'm having trouble getting gap to read my files. It can't
> find them.
>
> The gap folder is at: "/Users/wchen/gap-4.11.0".
> Inside that folder, I put a document which I want it to read called
> "setup.g"
>
> However, when I enter:
>
> Read("setup.g");
>
> I get the error:
>
> Error, file "setup.g" must exist and be readable at
> /Users/wchen/gap-4.11.0/lib/files.gi:210 called from
>
> <function "Read string">( <arguments> )
>
> called from read-eval loop at *stdin*:5
>
> you can 'quit;' to quit to outer loop, or
>
> you can 'return;' to continue
>
> I find this confusing because ".../lib/files.gi" isn't even a folder. It's
> a file. I get the exact same error even if I use the full path
>
> "Read("Users/wchen/gap-4.11.0/setup.g");"
>
> or
>
> Read("/Users/wchen/gap-4.11.0/setup.g");
>
> I was also not able to find any documentation about this.
>
> I would very much appreciate some help.
>
> - Will
>
> --
>
> William Chen
> NSF Postdoctoral Fellow, Department of Mathematics
> Columbia University,
> New York, NY, 10025
> oxeimon at gmail.com
> _______________________________________________
> Forum mailing list
> Forum at gap-system.org
> https://mail.gap-system.org/mailman/listinfo/forum
More information about the Forum
mailing list