NQ of a character to an Edit fails
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
```
'F'eWC'Form'
48:54.896 D: Created HTMLRenderer #.F.HR
48:55.424 C: Session 1 created, socket 2, connected from [::1]:63611, key: Utg9X77BqyAsEZLB+BDKJw==
48:55.430 R: #2: {"DeviceCapabilities":{"ViewPort":[400,600],"ScreenSize":[1130,1800],"DPR":1,"PPI":200}}
48:55.434 W: *** Ignoring unchanged DeviceCapabilities
48:55.436 R: #2: {"Initialise":{"Version":"0.2.3","Name":"EWC Client","URL":"http://localhost:22322/"}}
48:55.496 T: {"Options":{"ID":"Mode","Properties":{"Desktop":1}}}
48:55.499 T: {"Options":{"ID":"Locale","Properties":{"Decimal":".","LongDate":"D. MMMM YYYY","ShortDate":"DD-MM-YYYY","T
housand":","}}}
48:55.509 T: {"Options":{"ID":"Colors","Properties":{"Standard":[[-1,"Scrollbar",[200,200,200]],[-2,"Background",[0,0,0]
],[-3,"ActiveTitle",[153,180,209]],[-4,"InactiveTitle",[191,205,219]],[-5,"MenuBar",[240,240,240]],[-6,"Window",[255
,255,255]],[-7,"WindowFrame",[100,100,100]],[-8,"MenuText",[0,0,0]],[-9,"WindowText",[0,0,0]],[-10,"TitleText",[0,0,
0]],[-11,"ActiveBorder",[180,180,180]],[-12,"InactiveBorder",[244,247,252]],[-13,"AppWorkspace",[171,171,171]],[-14,
"Hilight",[0,120,215]],[-15,"HilightText",[255,255,255]],[-16,"ButtonFace",[240,240,240]],[-17,"ButtonShadow",[160,1
60,160]],[-18,"GrayText",[109,109,109]],[-19,"ButtonText",[0,0,0]],[-20,"InactiveTitleText",[0,0,0]],[-21,"ButtonHil
ight",[255,255,255]]]}}}
48:55.531 T: {"Options":{"ID":"Fonts","Properties":{"Scale":1}}}
48:55.533 D: *** CREATE Form F at
48:55.538 T: #2: {"WC":{"ID":"F","Properties":{"Posn":[0,0],"Type":"Form"}}}
'F.E'eWC'Edit'('Event' 'KeyPress' 'foo')
49:08.204 D: *** CREATE Edit F.E at
49:08.208 T: #2: {"WC":{"ID":"F.E","Properties":{"Event":[["KeyPress",""]],"Type":"Edit"}}}
foo←{⎕←⍵}
49:22.191 R: #2: {"Event":{"EventName":"KeyPress","ID":"F.E","EventID":"67ad63e8-3f6d-4935-b62a-9d895491368e","Info":["d
",100,68,0]}}
49:22.199 N: NQ of of {"Conn":[2],"Event":{"EventID":"67ad63e8-3f6d-4935-b62a-9d895491368e","EventName":"KeyPress","ID":
"F.E","Info":["d",100,68,0]}} to #._EWC.TIMER1
49:22.215 P: Action = foo for {"EventID":"67ad63e8-3f6d-4935-b62a-9d895491368e","EventName":"KeyPress","ID":"F.E","Info"
:["d",100,68,0]} at processEvent[81] dqTimer[28]
49:22.226 P: Monadic call to foo
F.E KeyPress d 100 68 0
49:22.235 T: #2: {"EC":{"EventID":"67ad63e8-3f6d-4935-b62a-9d895491368e","Proceed":1}}
eNQ'F.E' 'X'
49:37.625 N: Mode 0, F.E X
49:37.628 T: #2: {"NQ":{"Event":"X","ID":"F.E","Info":[],"NoCallback":0}}
49:37.638 R: #2: {"Event":{"EventName":"X","ID":"F.E","Info":[]}}
49:37.641 N: NQ of of {"Conn":[2],"Event":{"EventName":"X","ID":"F.E","Info":[]}} to #._EWC.TIMER1
49:37.646 E: *** No callback defined for event X on object F.E
eNQ'F.E' 'KeyPress' 'X'
49:58.020 N: Mode 0, F.E KeyPress X
49:58.023 T: #2: {"NQ":{"Event":"KeyPress","ID":"F.E","Info":"X","NoCallback":0}}
49:58.053 R: #2: {"Event":{"EventName":"KeyPress","ID":"F.E","Info":"X"}}
49:58.058 N: NQ of of {"Conn":[2],"Event":{"EventName":"KeyPress","ID":"F.E","Info":"X"}} to #._EWC.TIMER1
RANK ERROR
processEvent[55] (1⊃Info)←k[1] ⍝ Turn single char into a scalar
```
Contributor guide
Research direction
Reproduce the issue with the shown Form/Edit setup, KeyPress callback, and eNQ calls, then start at processEvent[55], where the rank error occurs while handling a single-character Info value. Done means sending a character to the Edit no longer raises RANK ERROR and the displayed event behavior matches the existing multi-character case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100