disconcision / fructure

a structured interaction engine 🗜️ ⚗️
https://fructure-editor.tumblr.com/
Apache License 2.0
453 stars 12 forks source link

failures freeze entire editor #27

Open zenspider opened 5 years ago

zenspider commented 5 years ago

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 commented 5 years ago

Did it again, with less:

Screen Shot 2019-07-13 at 16 56 08
disconcision commented 5 years ago

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 commented 5 years ago

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.

tov commented 5 years ago

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