willghatch / racket-rash

The Reckless Racket Shell
http://rash-lang.org
Other
546 stars 30 forks source link

Interaction with plot library #61

Open chutcheson opened 4 years ago

chutcheson commented 4 years ago

I noticed something that looks like a bug (might be known):

  1. I am using Racket 7.3 on Ubuntu 16.04 using Unity
  2. I open rash using racket -l 'rash/repl' on the cmd line
  3. I attempt to use the plot library using the following commands:

(require racket/math) (require plot) (plot-new-window? #t) (plot (function sin (- pi) pi #:label "y = sin(x)"))

I find that I cannot open a plot window successfully; instead I get a window that looks like it contains portions of my shell text and which I cannot close by clicking the "x" in the upper left hand corner of the window.

If I use the same commands using racket (without rash) on the cmd line then it works.

want to say rash is great btw!

willghatch commented 4 years ago

Thanks for this report!

I can confirm that the same thing happens on my machine.

Plotting seems to work fine if I put these in a script, or run it from interactions in DrRacket (still using #lang rash). So clearly something is going wrong in my repl module. So far I have no idea what that is, but I'll debug this eventually (can't say when -- life is crazy right now).

On Sun, Jul 14, 2019 at 01:23:52PM -0700, chutcheson wrote:

I noticed that it seems that if:

  1. I am using Racket 7.3 on Ubuntu 16.04 using Unity
  2. I open rash using racket -l 'rash/repl' on the cmd line
  3. I attempt to use the plot library using the following commands:

(require plot) (plot-new-window? #t) (plot (function sin (- pi) pi #:label "y = sin(x)"))

I find that I cannot open a plot window successfully; instead I get a window that looks like it contains portions of my shell text and which I cannot close by clicking the "x" in the upper left hand corner of the window.

If I use the same commands using racket on the cmd line then it works.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/willghatch/racket-rash/issues/61