Are there still any releases online for PLT Scheme v2xx?
hello all, I am using emacs racket mode in windows. Is there anything special I need to do in order for images to show in the REPL? It only seems to print out the generated image file name.
Thanks!
@pezi_pink 1. If you M-x
eval
and enter racket-images-inline
, what is the value? If it’s nil
, the feature is disabled. In that case do M-x
eval
(setq racket-images-inline t)
to enable. If that works? Put that (setq racket-images-inline t)
in your Emacs init file, or use M-x customize to change it. 2. If that didn’t work, try M-x
eval
, (display-images-p)
. If that returns nil
, your build of Emacs doesn’t support images and you would need to use another, if you want images inline. 3. If still not working please M-x
racket-bug-report
.
Or I guess try step 2 before 1 if that’s easier for you. ¯_(ツ)_/¯
@mflatt Thanks!
@greg thanks for the tips. It seems the feature is switched on and my emacs does support images, but it is not working for some reason.
@pezi_pink Alas I haven’t had time to use racket-mode on Windows, hardly at all, in recent years. I know at least a couple who do; but not sure if they exercise this particular feature.
@greg I can at least use (plot-new-window? #f)
if all else fails. I am trying to have my assembler output fancy looking memory maps and diagnostics
Unfortunately I don’t know enough about emacs to go about trying to debug it - the emacs rabbit hole is something I stay away from unless strictly planned!
Hmm what if you set racket-inline-images
to nil
(disable it), and, make sure racket-images-system-viewer
is a pathname that can display images on your Windows box (it defaults to "display"
). Then, the buffer will say [image] ; use M-x racket-view-last-image to view
. i.e. you need to do it manually and external to Emacs.
@pezi_pink Oops racket-images-system-viewer
. I’ll edit the previous.
I see - well since I control the output file I can also have my program launch it externally if I were to go that route
Ah of course.
it works in DrRacket which is annoying :wink:
Yep. If you want to open an issue, I definitely want to figure it out. I just can’t commit to “by when”.
Or if you don’t have a GitHub account, I can just copy/paste this Slack thread into an issue, for now.
sure, I will add an issue later. thanks for the help and the emacs major mode! also examining rackjure helped me understand how to properly #lang my own work :+1:
@pezi_pink You’re welcome; happy to hear that!
Yeah, @greg, I’ve thanked you before but I thank you again. These days I’m able to do far more Racket things in Emacs than before, and switching between files it seems to do the intelligent thing, as in, I don’t have to change REPL buffers, I just have to press F5 in the new .rkt file, whereas in the past I had to kill my Emacs REPL and start from scratch a lot. Lately I’ve been coding in DrRacket on half my screen and writing and doing Racket tests in Emacs on the other half, which speeds up development.
You’re welcome. In turn I need to thank @robby for showing the way on most of the hard stuff. And thank everyone who worked on all the other Racket things that racket-mode uses directly or indirectly. :racket-flat: :heart: :100:
I love racket-mode!
And the Academy. I thank the Academy.
@greg I’m one of those who uses racket-mode heavily. I still use DrRacket occasionally, mostly if I need additional information from the binding arrows to help figure out the Racket codebase.
I also am a Windows Emacs user and I went ahead and did test with a simple bitmap% object, it shows up in my Emacs REPL as inlined images
so that support does seem to still work sometimes for Windows Emacs
another heartfelt thank from for making racket-mode possible!
Oh and thanks to Neil van Dyke for quack which helped me learn a lot early on, and thanks to the person who contributed inline images to Geiser which I adapted for racket-mode.
I sincerely appreciate all the thank-yous. But also, I’m starting to feel like you all are about to give me a gold watch and a set of golf clubs so please stop now. :smile:
@greg enjoy your little Academy Awards moment :slightly_smiling_face:
I just discovered racket/trace and trace-define. Now I can enjoy my lunch.
@abmclin that’s interesting, can you show the exact code so I can try it like-for-like ?
basically I followed the first example https://docs.racket-lang.org/draw/overview.html#%28part._.Lines_and_.Simple_.Shapes%29 as my test case.
Here’s the program you can try in your Emacs. C-c C-c
to evaluate your buffer should produce an image in the Racket inferior process REPL buffer.
@pezi_pink
@abmclin thanks, can confirm it is still the same problem. it prints "#<Image: C:\ path\pic.png> "
@gknauth Fun trick with trace and racket-logger-mode https://twitter.com/greghendershott/status/902945140205072386
@paul481 has joined the channel