spdegabrielle
2020-5-4 09:33:36

Thanks @gfb

I’ve sent a PR to your branch that adds a simple url pattern: (regexp-match-positions* #px"https?\\://\\S+" str) so it picks up things that resemble urls. I’m afraid my git-fu is poor - do you mind if I copy/paste your changes? (I don’t quite know how to to apply your https://github.com/gfbee/gui/commit/c0ccf2984e93e3d75cd87371ecc319f0ced3b91d\|commit to the branch I am working on. )


spdegabrielle
2020-5-4 09:43:43

Anyone know why I have two pairs of font size menu items?


soegaard2
2020-5-4 09:44:37

Okay that’s odd. Hmm. Is the font sizes at the left and right the same?


soegaard2
2020-5-4 09:44:58

Maybe you get menu items to control both the left and right sides?


spdegabrielle
2020-5-4 09:51:27

its a bit weird..


spdegabrielle
2020-5-4 09:52:10

I went to https://docs.racket-lang.org/drracket/Menus.html#%28part._menu~3aview%29 to see what was documented only to find increase/decrease font size is not documented.


spdegabrielle
2020-5-4 09:54:58

the more I look the more I’m convince those menu items are not meant to be there. Font size is in the preferences and works fine.


soegaard2
2020-5-4 09:58:23

Well, I am sure one set is supposed to be there. Experimenting with DrRacket 7.6 using splits and and tabs I can’t get another entry to appear.


soegaard2
2020-5-4 09:58:58

The code that adds the font size adjusters to the menu, must run twice?


spdegabrielle
2020-5-4 09:59:01

i’m on a 7.7 nightly


spdegabrielle
2020-5-4 09:59:13

it must


spdegabrielle
2020-5-4 09:59:37

I’ve also lost split/unsplit


spdegabrielle
2020-5-4 09:59:55

I’m going to get a clean copy of 7.7 and see if I can reproduce…


rp
2020-5-4 11:02:45

@rp has joined the channel


pavpanchekha
2020-5-4 16:56:22

Can anyone help with some basic macrology? I’m getting this error: biginterval.rkt:6:3: λ: unbound identifier; also, no #%app syntax transformer is bound in the transformer phase for this code (define-match-expander ival-expander (λ (stx) (syntax-case stx () [(_ lo hi) #'(ival (endpoint lo _) (endpoint hi _) _ _)])) (λ (stx) (syntax-case stx () [(_ lo hi) #'(ival (endpoint lo #t) (endpoint hi #t) #f #f)]))) I’m not doing any other weird macro stuff, as far as I know.


soegaard2
2020-5-4 16:57:38

Since it says that #%app is not bound in the transformer phase, try (require (for-syntax racket/base)).


pavpanchekha
2020-5-4 16:58:22

That I’m in #lang racket/base doesn’t do that?


samth
2020-5-4 16:58:33

no


samth
2020-5-4 16:58:42

#lang racket does that


samth
2020-5-4 16:58:55

but #lang racket/base doesn’t bind anything at syntax time


samth
2020-5-4 16:59:04

well, basically nothing


pavpanchekha
2020-5-4 17:19:44

huh


laurent.orseau
2020-5-4 18:48:54

I have a console-based program that I would very much like to compile (raco exe) to a single binary. Currently it ends up being split in 2 files: the racket exe and the rest. Is there a way to make it a single executable file on Linux?


mflatt
2020-5-4 18:51:47

What is the rest in this case?


mflatt
2020-5-4 18:53:17

(I think it may be an executable plus the racket executable, but it’s been long enough that I forget how different configurations work.)


laurent.orseau
2020-5-4 18:56:44

Yes, there’s the myprog executable and the racket executable


mflatt
2020-5-4 18:58:57

Does supplying --orig-exe to raco exe work?


mflatt
2020-5-4 19:06:51

~No, --orig-exe is moving in the wrong direction…~


laurent.orseau
2020-5-4 19:13:58

Thanks I’ll try that tomorrow


mflatt
2020-5-4 19:14:04

I think --orig-exe may do what you want, although I think that wasn’t its original intent (which is why the name and documentation don’t seem encouraging).


pocmatos
2020-5-4 20:26:43

Racket News - Issue 30 is here everyone. Enjoy! https://racket-news.com/2020/05/racket-news-issue-30.html


aowens5189
2020-5-4 20:43:46

Nice! I always look forward to these.


deactivateduser60718
2020-5-4 21:05:50

Here’s two screenshots.

One of them shows @defmodulelang[@racketfont{u/a} #:module-paths (u/a/lang/reader)]

The other shows @racketmod[u/a ...] .

I’m guessing that I get the red underline due to a misuse of @defmodulelang. What’s the error?


deactivateduser60718
2020-5-4 21:06:59

After some trial and error, that use of @defmodulelang is the only one I did that actually builds.


samth
2020-5-4 21:07:11

I think you don’t want the use of racketfont


deactivateduser60718
2020-5-4 21:07:49

I get an undeclared identifier error if I don’t have it. The docs say that the underlying defmodule needs a content-expr if you use #:lang.



deactivateduser60718
2020-5-4 21:08:15

Sweet, thanks.



rodrigo.ribeiro
2020-5-4 23:03:14

@rodrigo.ribeiro has joined the channel


notjack
2020-5-5 00:40:36

@sanchom probably just the usual PID–1 problems, not something specific to Racket


jgaver
2020-5-5 03:12:42

@jgaver has joined the channel