drracket icon indicating copy to clipboard operation
drracket copied to clipboard

Find and replace doesn't work in a comment box

Open toddobryan opened this issue 11 months ago • 5 comments

The Next and Prev buttons don't seem to work correctly and after you replace something, the find ovals don't end up in the right place.

toddobryan avatar Feb 19 '25 17:02 toddobryan

But this in a comment box and try replacing posn-fun.

;; posn-fun -> ?
;; consumes:
;; produces:
(define (posn-fun a-posn)
  (posn-x a-posn)
  (posn-y a-posn))

(check-expect (posn-fun ...) ...)
(check-expect (posn-fun ...) ...)
(check-expect (posn-fun ...) ...)

toddobryan avatar Feb 20 '25 18:02 toddobryan

This issue has been mentioned on Racket Discourse. There might be relevant details there:

https://racket.discourse.group/t/a-few-annoying-bugs/3582/1

I'm seeing a weird lag when I try to do follow your instructions, but I'm not seeing any other bad behavior. Do you think you could record a video? Maybe then I'd be able to get it. Or maybe just a fuller explanation would also work.

rfindler avatar Feb 23 '25 20:02 rfindler

Trying to find-and-replace pattern with xyz in this code blows the contents of the comment box away:

The file is created by inserting a comment box at line 5,

#lang htdp/bsl

;; this is a pattern

and then put the following text into the comment box,

this is some pattern
that is another pattern
there are many patterns

(Unfortunately I can't upload Racket source code here.)

shhyou avatar Feb 26 '25 21:02 shhyou

Thanks! I'm able to reproduce it with those instructions @shhyou

rfindler avatar Feb 26 '25 22:02 rfindler