Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contract violation on 8.2[cs]? #90

Open
emacsomancer opened this issue Jul 31, 2021 · 6 comments
Open

contract violation on 8.2[cs]? #90

emacsomancer opened this issue Jul 31, 2021 · 6 comments

Comments

@emacsomancer
Copy link

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
@willghatch
Copy link
Owner

willghatch commented Aug 1, 2021 via email

@emacsomancer
Copy link
Author

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

@willghatch
Copy link
Owner

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?

@emacsomancer
Copy link
Author

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.

@willghatch
Copy link
Owner

willghatch commented Aug 4, 2021 via email

@emacsomancer
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants