racket-rash
racket-rash copied to clipboard
contract violation on 8.2[cs]?
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
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
No worries, and no rush. I look in on Rash from time to time and noticed this.
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?
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
.
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
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