laurent.orseau
2020-5-7 09:47:20

I don’t see anything wrong with your script, except that you lose the selection if something is already selected (but this can be fixed by unselecting first with (send ted set-position current current))


laurent.orseau
2020-5-7 14:11:56

HahaHaHa… I had merely written an infinite loop, what a nθθb…


massung
2020-5-7 17:57:40

https://racket.slack.com/archives/C8FS3SS22/p1588599284104900 — I’ve gotten this 3 more times today. No rhyme/reason that I can see. Just click “run” (on a simple GUI program), close the resulting window and the error pops up. Click “run” again, doesn’t happen. Doesn’t happen again for 30 minutes then it happens again.


massung
2020-5-7 17:58:07

If anyone here has something they’d like me to inject somewhere to try and zero in on this, I’m happy to.


gfb
2020-5-7 18:24:36

You asked about byte vs utf–8 positions recently, so I was wondering if the current problem involves characters where those would differ. The posted script is very simple, yet (sometimes) permanently messed up indentation, or tokenization, or something like that (again, unfortunately I don’t recall precisely which/how). I may even have tried a version that inserted ascii characters and the problem went away, but don’t have a record/memory of that debugging — it was a one-off to convert a few files so it was soon quicker to just do it manually. In short, I’m suggesting that if you’re trying to narrow down the problem, and there are non-ascii characters involved, try separating out that aspect.


laurent.orseau
2020-5-7 19:12:00

Thanks for the idea, I’m keep our in mind!


spdegabrielle
2020-5-7 23:50:48

@massung This is odd. I’ve been doing simple gui stuff all afternoon (frame%, canvas% , timer%) Can you log this as an issue against DrRacket on github? https://github.com/racket/drracket/issues/new Please @ mention me @spdegabrielle in the issue


massung
2020-5-8 01:52:08

Done.