pocmatos
2018-10-25 12:02:30

Are there still any releases online for PLT Scheme v2xx?


pezi_pink
2018-10-25 12:09:46

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.


ryanc
2018-10-25 12:27:08

pocmatos
2018-10-25 12:30:07

Thanks!


greg
2018-10-25 12:36:14

@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.


greg
2018-10-25 12:37:23

Or I guess try step 2 before 1 if that’s easier for you. ¯_(ツ)_/¯


paul
2018-10-25 12:40:54

@mflatt Thanks!


pezi_pink
2018-10-25 12:49:35

@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.


greg
2018-10-25 12:52:27

@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.


pezi_pink
2018-10-25 12:53:51

@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


pezi_pink
2018-10-25 12:55:05

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!


greg
2018-10-25 12:56:37

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.


greg
2018-10-25 12:56:48

@pezi_pink Oops racket-images-system-viewer. I’ll edit the previous.


pezi_pink
2018-10-25 12:57:38

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


greg
2018-10-25 12:57:57

Ah of course.


pezi_pink
2018-10-25 12:58:09

it works in DrRacket which is annoying :wink:


greg
2018-10-25 12:59:08

Yep. If you want to open an issue, I definitely want to figure it out. I just can’t commit to “by when”.


greg
2018-10-25 13:00:04

Or if you don’t have a GitHub account, I can just copy/paste this Slack thread into an issue, for now.


pezi_pink
2018-10-25 13:00:52

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:


greg
2018-10-25 13:06:51

@pezi_pink You’re welcome; happy to hear that!


gknauth
2018-10-25 14:31:12

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.


greg
2018-10-25 14:39:10

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:


robby
2018-10-25 14:39:33

I love racket-mode!


greg
2018-10-25 14:39:51

And the Academy. I thank the Academy.


abmclin
2018-10-25 14:40:55

@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.


abmclin
2018-10-25 14:41:35

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


abmclin
2018-10-25 14:41:59

so that support does seem to still work sometimes for Windows Emacs


abmclin
2018-10-25 14:42:31

another heartfelt thank from for making racket-mode possible!


greg
2018-10-25 14:43:48

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.


greg
2018-10-25 14:44:47

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:


githree
2018-10-25 14:45:56

@greg enjoy your little Academy Awards moment :slightly_smiling_face:


gknauth
2018-10-25 16:20:33

I just discovered racket/trace and trace-define. Now I can enjoy my lunch.


pezi_pink
2018-10-25 17:50:38

@abmclin that’s interesting, can you show the exact code so I can try it like-for-like ?


abmclin
2018-10-25 18:23:43

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.


abmclin
2018-10-25 18:23:52

abmclin
2018-10-25 18:23:59

@pezi_pink


pezi_pink
2018-10-25 18:37:06

@abmclin thanks, can confirm it is still the same problem. it prints "#<Image: C:\ path\pic.png> "


greg
2018-10-25 18:37:27

@gknauth Fun trick with trace and racket-logger-mode https://twitter.com/greghendershott/status/902945140205072386


paul481
2018-10-26 05:49:05

@paul481 has joined the channel