Bogdanp / racket-gui-easy

Declarative GUIs in Racket.
https://docs.racket-lang.org/gui-easy/index.html
134 stars 18 forks source link

text errors on #:color keyword #6

Closed DarrenN closed 2 years ago

DarrenN commented 3 years ago

Noticed this when trying to set #:color on a text component.

This is from the examples folder:

% racket text-color.rkt                                                                                     
send: no such method
  method name: set-color
  class name: message%
  context...:
   /Applications/Racket v8.2/collects/racket/private/class-internal.rkt:4680:0: obj-error
   /Users/kyushu/Library/Racket/8.2/pkgs/gui-easy-lib/gui/easy/private/view/text.rkt:20:4: create method in text%
   /Users/kyushu/Library/Racket/8.2/pkgs/gui-easy-lib/gui/easy/private/view/window.rkt:38:4: create method in window-like%
   .../private/arrow-higher-order.rkt:379:33
   /Users/kyushu/Library/Racket/8.2/pkgs/gui-easy-lib/gui/easy/private/renderer.rkt:34:4: render method in renderer%
   /Users/kyushu/Library/Racket/8.2/pkgs/gui-easy-lib/gui/easy/private/renderer.rkt:55:0: render
   /Applications/Racket v8.2/collects/racket/contract/private/arrow-val-first.rkt:489:18
   body of "/Users/kyushu/github/racket-gui-easy/examples/text-color.rkt"
DarrenN commented 3 years ago

Looks like message% doesn't have a set-color method

Bogdanp commented 3 years ago

That functionality depends on https://github.com/racket/gui/pull/238 so if you upgrade gui-lib, it should work.

Bogdanp commented 2 years ago

I'm going to close this now that Racket 8.3 has been released, but let me know if you run into any other problems!