{"action":"created","issue":{"url":"https://api.github.com/repos/gap-system/gap/issues/39","labels_url":"https://api.github.com/repos/gap-system/gap/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/gap-system/gap/issues/39/comments","events_url":"https://api.github.com/repos/gap-system/gap/issues/39/events","html_url":"https://github.com/gap-system/gap/issues/39","id":62118078,"number":39,"title":"Color prompt not available in HPC-GAP","user":{"login":"mtorpey","id":5583599,"avatar_url":"https://avatars.githubusercontent.com/u/5583599?v=3","gravatar_id":"","url":"https://api.github.com/users/mtorpey","html_url":"https://github.com/mtorpey","followers_url":"https://api.github.com/users/mtorpey/followers","following_url":"https://api.github.com/users/mtorpey/following{/other_user}","gists_url":"https://api.github.com/users/mtorpey/gists{/gist_id}","starred_url":"https://api.github.com/users/mtorpey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtorpey/subscriptions","organizations_url":"https://api.github.com/users/mtorpey/orgs","repos_url":"https://api.github.com/users/mtorpey/repos","events_url":"https://api.github.com/users/mtorpey/events{/privacy}","received_events_url":"https://api.github.com/users/mtorpey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gap-system/gap/labels/gapdays2015","name":"gapdays2015","color":"fbca04"},{"url":"https://api.github.com/repos/gap-system/gap/labels/HPC-GAP","name":"HPC-GAP","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-16T15:34:40Z","updated_at":"2015-03-18T10:26:07Z","closed_at":null,"body":"When HPC-GAP is loaded with the \"color prompt\" turned on - that is, with a line like\r\n```GAP\r\nSetUserPreference( \"UseColorPrompt\", true );\r\n```\r\nin gap.ini - an error is encountered every time a command is executed:\r\n```\r\ngap> 1+1;<3> Attempt to read object 89230224 of type object (positional) without having read access in\r\n<3>   Error, return WRITE_STRING_FILE_NC( stream![1], str ); on line 1560 of file /home/mtorpey/hpcgap/gap/lib/streams.gi called from \r\n<3> WriteAll( STDOut, \"\\033[0m\" ); on line 185 of file /home/username/hpcgap/gap/lib/colorprompt.g called from\r\n<3> <function \"EndLineHook\">( <arguments> )\r\n<3>  called from read-eval loop at line 0 of *defin*\r\n2\r\ngap> \r\n```\r\nand the prompt is not shown in colour."},"comment":{"url":"https://api.github.com/repos/gap-system/gap/issues/comments/82883177","html_url":"https://github.com/gap-system/gap/issues/39#issuecomment-82883177","issue_url":"https://api.github.com/repos/gap-system/gap/issues/39","id":82883177,"user":{"login":"fingolfin","id":241512,"avatar_url":"https://avatars.githubusercontent.com/u/241512?v=3","gravatar_id":"","url":"https://api.github.com/users/fingolfin","html_url":"https://github.com/fingolfin","followers_url":"https://api.github.com/users/fingolfin/followers","following_url":"https://api.github.com/users/fingolfin/following{/other_user}","gists_url":"https://api.github.com/users/fingolfin/gists{/gist_id}","starred_url":"https://api.github.com/users/fingolfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fingolfin/subscriptions","organizations_url":"https://api.github.com/users/fingolfin/orgs","repos_url":"https://api.github.com/users/fingolfin/repos","events_url":"https://api.github.com/users/fingolfin/events{/privacy}","received_events_url":"https://api.github.com/users/fingolfin/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T10:26:07Z","updated_at":"2015-03-18T10:26:07Z","body":"But the fact remains that this is an error many, many users will run into -- and it will leave a very bad first-time impression!\r\n\r\nSo, at the very least, just disable the color prompt code. Telling people that they need to use `-r` or edit their gap.ini is not an alternative IMHO -- why would I want to use HPC-GAP if I have to give up all my default settings?\r\n\r\nIn the same vein, I don't understand why readline is not disabled for now during build time. I just started HPC-GAP with color prompt disabled, and got an immediate crash by pressing the up-arrow -- I guess it was trying to access my save history (I am using `SaveAndRestoreHistory`, and frankly, find it hard to live without it).\r\n\r\nOh, and copy & pasting code examples into HPC-GAP is also essentially `broken`. All these issues combined make HPC-GAP very unattractive to use for me, and all that before I even got to do a single computation. I imagine that the avarage user will be similarly put off by it.\r\n\r\nSo, I think these are not at all obscure or unimportant issues, but rather I think they are critical for the public acceptance of HPC-GAP, and IMHO they must be addressed *before* a beta release."}}