Open samth opened 1 day ago
Probably you don't actually need to run the file since the error messages give away the problem.
Although I'm unable to reproduce this when the edit buffer is using racket-mode
, I can with racket-hash-lang-mode
. (This causes the REPL to use racket-hash-lang-mode
, as well, for purposes of syntax highlighting and navigating within portions of the REPL.)
Also:
htdp-json
Racket package.(define background (freeze (circle 1 "solid" "blue")) #;(bitmap/file "iub.png"))
.I'm not immediately sure why the backing hash-lang object would be getting bad positions, but I'll investigate...
I've spent well over an hour debugging this. It relates to how the "after-change" notifications I get from Emacs, are translated to a "text lines" data structure in the back end. Some of after-change notifications surprise me. Hopefully it will become clearer after I step away from the problem for awhile, then come back...
Run the following file (not the main submodule):
Then run
(parse 1)
.Then note that there's an error in the REPL, and doing anything results in similar errors. From
*Messages*
:Package
System values
Buffer values
Racket Mode values
Minor modes
Disabled minor modes