racket-rash icon indicating copy to clipboard operation
racket-rash copied to clipboard

contract violation on 8.2[cs]?

Open emacsomancer opened this issue 3 years ago • 6 comments

On v8.2 [cs], I seem to get an error when I try to launch rash (via racket -l rash/repl --):

> context-request-ch: contract violation
  expected: context?
  given: #f
  context...:
   /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:168:9
   /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:343:18
   /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:148:15

emacsomancer avatar Jul 31 '21 20:07 emacsomancer

Ooo, I don't always stay up to date on my Racket installation. Thanks for letting me know. I'll probably look at this on Monday.

On Sat, Jul 31, 2021 at 01:00:29PM -0700, Benjamin Slade wrote:

On v8.2 [cs], I seem to get an error when I try to launch rash (via racket -l rash/repl --):

> context-request-ch: contract violation
 expected: context?
 given: #f
 context...:
  /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:168:9
  /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:343:18
  /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:148:15

-- 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/90

willghatch avatar Aug 01 '21 03:08 willghatch

No worries, and no rush. I look in on Rash from time to time and noticed this.

emacsomancer avatar Aug 01 '21 13:08 emacsomancer

Now that I'm really looking at this, the context for the error is in the readline-lib package. (Along with about half of my other issues...) What OS are you using? I just fired up a fresh 8.2cs install and starting the rash repl doesn't raise any exceptions. That said, I also got an email recently about readline/libedit issues on Windows.

If you add --readline false does the problem go away?

I just need to write my new line editor... but when will I have the time?

willghatch avatar Aug 04 '21 16:08 willghatch

The error is on an Arch Linux machine. (On a Void Linux machine running 8.0[cs], rash runs without issue.) The error indeed goes away on the Arch box if I run with --readline false.

emacsomancer avatar Aug 04 '21 16:08 emacsomancer

And you don't get any error when you just run the Racket repl (which has readline enabled by default)?

On Wed, Aug 04, 2021 at 09:32:03AM -0700, Benjamin Slade wrote:

The error is on an Arch Linux machine. (On a Void Linux machine running 8.0[cs], rash runs without issue.) The error indeed goes away on the Arch box if I run with --readline false.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/willghatch/racket-rash/issues/90#issuecomment-892801910

willghatch avatar Aug 04 '21 18:08 willghatch

The Racket repl itself seems to behave fine:

$ racket
Welcome to Racket v8.2 [cs].
> (print "hello world")
"hello world"
> (exit)

$ racket -l rash/repl --

You can use the `help` line macro to get help about topics.
(To turn these hints off, run (current-repl-display-startup-hints? #f) in a rashrc file.)
12:51 [master D] 
> context-request-ch: contract violation
  expected: context?
  given: #f
  context...:
   /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:168:9
   /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:343:18
   /usr/share/racket/pkgs/readline-lib/readline/rktrl.rkt:148:15

emacsomancer avatar Aug 04 '21 18:08 emacsomancer