Well, debugging the jhs is a bit of a challenge. But I can reproduce the problem. It has nothing to do with the lab. Pressing Esc-q causes the crash. Apparently I accidentally pressed Esc-q instead of Esc-a while running the lab. I tried it on a different machine with a clean install from scratch. In the meantime I guess I will work on figuring out how to debug jhs.
On Tue, Feb 15, 2011 at 7:03 PM, Don Guinn <[email protected]> wrote: > A challenge! Why did the lab trigger this error? A chance to start learning > what is really going on in JHS. > > I found what you told me to look for. I had seen this earlier and I > couldn't understand how it worked. I didn't realize the the project and > script name were magic. It seems to me that this type of thing should be in > config and not in the ~user. But that is another issue. Now I can have the > fun of finding out why this causes an error. > > > On Tue, Feb 15, 2011 at 5:40 PM, Eric Iverson <[email protected]>wrote: > >> Don't know what is going on with the lab, but I can perhaps clarify the >> js.ijs stuff. >> >> Browse to the jhs jhelp page, jump to IDE, scroll down to section that >> starts with: >> >> jijx action menu... >> >> On Tue, Feb 15, 2011 at 4:36 PM, Don Guinn <[email protected]> wrote: >> >> > I made a typo on the name of the script file. It was jijx.ijs , Sorry >> about >> > that. >> > >> > From root/trunk/labs/labs/core/jtaste1.ijt is the section 19 which I >> > experienced the failure. There are 32 sections in this lab. >> > >> > 172 NB. ========================================================= >> > 173 Lab Section >> > 174 The function +/ sums its argument. It is made up of + (add) with / >> > (insert), meaning insert + between each item of the argument. >> > 175 >> > 176 So +/ 10 20 30 means: 10 + 20 + 30. >> > 177 >> > 178 Similarly */ is "multiply insert", i.e. multiply all elements >> together. >> > 179 ) >> > 180 +/ 10 20 30 >> > 181 >> > 182 */ 10 20 30 >> > 183 >> > 184 NB. ========================================================= >> > >> > The error I got: >> > >> > *** event handler error >> > ev_actionn_click 0 >> > |value error: amenu >> > | ".'''''',~'ja_', (>y{amenu),'_base_' >> > jdo jev_jijx_ 0 >> > jtype click >> > jmid actionn >> > jsid 0 >> > jdata >> > >> > From root/trunk/ide/jhs/jijx.ijs >> > >> > 128 actionmenu=: 3 : 0 >> > 129 a=. 'action' jhmg'action';1;10 >> > 130 a=. a,'scratch' jhmab'scratch...' >> > 131 a=. a,'scratchr'jhmab'scratch r^' >> > 132 t=. a >> > 133 if. fexist'~user/projects/ja/ja.ijs' do. >> > 134 try. >> > 135 load'~user/projects/ja/ja.ijs' >> > 136 amenu=: <;._2 ja_menu >> > 137 for_i. i.#amenu do. >> > 138 t=. t,('actionn*',":i)jhmab(>i{amenu),>(i<3){'';' ',(i{'qwe >> > '),'^' >> > 139 end. >> > 140 catch. >> > 141 t=. a >> > 142 end. >> > 143 end. >> > 144 t >> > 145 ) >> > 146 >> > 147 ev_action_click=: 3 : 0 >> > 148 smoutput 'see help ijx menu action for customization info' >> > 149 ) >> > 150 >> > 151 action=: 3 : 0 >> > 152 ".'''''',~'ja_',(>y{amenu),'_base_' >> > 153 ) >> > >> > I really stopped looking into what was happening when I saw that in >> lines >> > 133 and 135 the script references a script file in the ~user library. I >> > can't see any reason why the J system code should look for or create any >> > specific script file in ~user. That's why I thought this might be some >> left >> > over testing code. What is '~user/projects/ja/ja.ijs'? Is it something >> that >> > is created temporarily? Makes no sense. >> > >> > >> > >> > On Tue, Feb 15, 2011 at 8:29 AM, Eric Iverson <[email protected] >> > >wrote: >> > >> > > That lab doesn't have a section 19 (as far as I can tell). The >> > > circumstances >> > > of the crash are confusing. Could you perhaps give minimal steps from >> a >> > > fresh start to get the crash? >> > > >> > > On Mon, Feb 14, 2011 at 6:15 PM, Don Guinn <[email protected]> >> wrote: >> > > >> > > > Got a crash in jhs running the lab "A Taste of J (1)" in section 19. >> > The >> > > > crash was in line 152 of jijs.ijs with "amenu" undefined. amenu is >> > > supposed >> > > > to be defined is in line 135 where if '~user/projects/ja/ja.ijs' is >> > > defined >> > > > then amenu is defined. I have no such file on my system. But I don't >> > > think >> > > > I >> > > > should. Is this something left over from testing? >> > > > >> ---------------------------------------------------------------------- >> > > > For information about J forums see >> http://www.jsoftware.com/forums.htm >> > > > >> > > ---------------------------------------------------------------------- >> > > For information about J forums see >> http://www.jsoftware.com/forums.htm >> > > >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> > >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
