fructure icon indicating copy to clipboard operation
fructure copied to clipboard

failures freeze entire editor

Open zenspider opened this issue 6 years ago • 4 comments

You're giving the talk, so I CLEARLY don't know what I'm doing yet. I was trying to get into the "free" typing mode, not really coding anything. While trying to do a list, I got to the second item and hit right (I think?) and everything froze as such:

Screen Shot 2019-07-13 at 16 53 37

This was what was in the terminal:

match-define: no matching clause for '(◇ (p/ #hash((depth . 0) (handle . #t) (in-scope . ()) (sort . expr)) (if (p/ #hash((depth . 1) (handle . #t) (in-scope . ()) (sort . expr)) (ref (p/ #hash((depth . 2) (sort . pat)) (id (p/ #hash((depth . 3) (sort . char)) t) (p/ #hash((depth . 3) (s...
  location...:
   src/mode/transform.rkt:839:2
  context...:
   /MyApplications/dev/lisp/Racket/collects/racket/match/runtime.rkt:24:0: match:error
   /Users/ryan/fructure/src/mode/transform.rkt:829:0: menu-filter-in-stx
   /Users/ryan/fructure/src/mode/transform.rkt:17:0: mode:transform
   /Users/ryan/fructure/src/fructure.rkt:211:0
   .../more-scheme.rkt:261:28
   /MyApplications/dev/lisp/Racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:435:6
   /MyApplications/dev/lisp/Racket/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:486:32
   /MyApplications/dev/lisp/Racket/share/pkgs/htdp-lib/2htdp/private/last.rkt:18:4: last method in last-mixin
   "/Users/ryan/fructure/src/fructure.rkt": [running body]
   temp37_0
   for-loop
   run-module-instance!125
   perform-require!78

zenspider avatar Jul 13 '19 22:07 zenspider

Did it again, with less:

Screen Shot 2019-07-13 at 16 56 08

zenspider avatar Jul 13 '19 22:07 zenspider

on it. after-the-fact editing of variadic forms (interacting with +-shaped holes) isn't really implemented. (a (quasi) mode for inserting/deleting/permuting variadic forms element is on the roadmap). I'll plug the hole for the moment but wow looking at quality of the error messages this is generating from an external perspective is making me cringe. i take back 30% of the stuff i said about turnstile's error messages.

disconcision avatar Jul 14 '19 05:07 disconcision

p.s. consider installing the recommended font. for some reason the fallthrough font isn't fixed-width, even though this is the supposed behavior of text/font with family set to modern. this is mostly a reminder to myself to look into it.

disconcision avatar Jul 14 '19 05:07 disconcision

Just came here to say congrats on your project's first outside bug report, and may you have many more :)

tov avatar Jul 16 '19 03:07 tov