laurent.orseau
2020-5-6 12:23:11

That appears to work, thanks!


laurent.orseau
2020-5-6 12:39:37

It seems that read-syntax calculates positions in bytes, not in utf–8 characters. On the other hand get-start-position in text% calculates positions in utf–8 characters. How is this reconciled, say, in check-syntax and binding arrows?


mflatt
2020-5-6 12:49:06

Character and line counting for a port is enabled with port-count-lines! before using read-syntax, and tools like DrRacket turn on character counting when they open a port.


laurent.orseau
2020-5-6 12:53:39

That explains it, thanks for the quick and helpful answer!


samth
2020-5-6 18:23:58

That just sounds like a bug to me; the fasl->s-exp code is pretty simple


spdegabrielle
2020-5-6 18:40:41

I see every label twice!


spdegabrielle
2020-5-6 18:42:01

Is this just me? (I am on a nightly from a couple of days ago - maybe that is?)


mflatt
2020-5-6 18:48:50

I have never seen anything like that.


spdegabrielle
2020-5-6 18:50:10

Nice. It’s OK I’m downloading the 7.7 release now. I shoudn’t be using 7.7.0.4—2020–04–29(58371b9/a) [3m].


spdegabrielle
2020-5-6 18:50:36

(Im embarrased that was the bc version too :slightly_smiling_face:


spdegabrielle
2020-5-6 19:03:25

@mflatt is it time to make cs the default download on https://download.racket-lang.org ?


spdegabrielle
2020-5-6 19:04:14

I just downloaded bc again.


mflatt
2020-5-6 19:06:01

I would be surprised if v7.7 and v7.7.0.4 behave differently. Then again, I start out surprised by what you’re seeing.


samth
2020-5-6 19:08:21

We’ve thought about it, but it’s probably at least one more release cycle in the future.


spdegabrielle
2020-5-6 19:08:22

almost there. cs this time


mflatt
2020-5-6 19:08:37

CS v7.7 is definitely not ready. I think we should wait for a release cycle where no major CS problems (i.e., more major than a typical BC problem) are discovered since the previous release.


spdegabrielle
2020-5-6 19:22:22

Still double label.I’m wondering if it’s because I’ve cloned


spdegabrielle
2020-5-6 19:23:52

$ raco pkg update --no-setup --catalog <https://pkgs.racket-lang.org> drracket $ raco pkg update --clone drracket https://blog.racket-lang.org/2017/09/tutorial-contributing-to-racket.html


samth
2020-5-6 19:27:51

I’m confident that the double labels are not because of clone vs not-clone


spdegabrielle
2020-5-6 19:28:44

I’ve reset my preferences,


spdegabrielle
2020-5-6 19:29:24

the only thing odd is two instance of DeinProgramm in tools, but I think that is ok as they seem to refer to different things.


samth
2020-5-6 19:30:06

wait you have to copies of the tool?


spdegabrielle
2020-5-6 19:30:11

I’ve removed all my extra packages. (only has quickscript-extra, and it was jsut complaining about zo version)


samth
2020-5-6 19:30:15

what do they both refer to?


samth
2020-5-6 19:30:27

it really sounds like you have an odd installation


samth
2020-5-6 19:30:39

did you follow all the instructions in that blog post?


spdegabrielle
2020-5-6 19:30:51

spdegabrielle
2020-5-6 19:31:16

samth
2020-5-6 19:31:35

oh, those must be two different tools with the same name


spdegabrielle
2020-5-6 19:32:03

Yes


spdegabrielle
2020-5-6 19:32:46

yes weird


spdegabrielle
2020-5-6 19:33:52

but unrelated


spdegabrielle
2020-5-6 19:36:52

spdegabrielle
2020-5-6 19:43:13

mflatt
2020-5-6 19:45:17

@spdegabrielle If you run just #lang racket/gui (send (new frame% [label "Test"] [width 300] [height 300]) show #t) do you get two “Test” labels on the window?


spdegabrielle
2020-5-6 19:46:05

Yes


mflatt
2020-5-6 19:47:28

That is bizarre. I don’t know how to produce that result at the NSWindow level, much less in Racket.


mflatt
2020-5-6 19:47:51

Do you get the same result when running that program outside of DrRacket?


spdegabrielle
2020-5-6 19:49:05

No!


spdegabrielle
2020-5-6 19:49:24

it is normal if I just do gracket test.rkt


samdphillips
2020-5-6 19:49:52

Maybe adding a port flush?


spdegabrielle
2020-5-6 19:50:14

mflatt
2020-5-6 19:50:28

Have you ever seen windows with copies of their titlebars before, like in some OS extension that you used? Or is this the first time you’ve seen anything like that?


spdegabrielle
2020-5-6 19:50:43

prefs


spdegabrielle
2020-5-6 19:51:23

I dotn think so. It started when I was using a 7.7 nightly


spdegabrielle
2020-5-6 19:52:00

I dont have OS extensions. Plain old catalina


mflatt
2020-5-6 19:54:34

My only idea right now is to let my Catalina machine update and see if that makes DrRracket behave similarly. Seems unlikely.


spdegabrielle
2020-5-6 19:56:06

Wait. Let me reboot first


mflatt
2020-5-6 19:58:28

Seems like many things could go wrong. Is it possible to provide an example?


spdegabrielle
2020-5-6 20:01:17

Reboot didnt have an effect but maybe it is a catalina thing


spdegabrielle
2020-5-6 20:02:04

Interesting: Dragging by the lower toolbar turns the window into a thumbnail


laurent.orseau
2020-5-6 20:07:57

raco setup -l quickscript-extra ;)


spdegabrielle
2020-5-6 20:08:36

I always forget that!


laurent.orseau
2020-5-6 20:10:17

Also, often the docs become a mess after an upgrade of racket, this is fixed with raco setup --doc-index


mflatt
2020-5-6 20:10:59

Makes sense. As a starting point, I’d be happy look at something that you think should provoke the problem.


spdegabrielle
2020-5-6 20:13:07

spdegabrielle
2020-5-6 20:14:35

that page needs refactoring and I probably need to move some of it to the official documentation.


spdegabrielle
2020-5-6 20:24:11

I’m moving my investigations to https://github.com/racket/drracket/issues/377


massung
2020-5-6 20:39:30

While that screenshot is up… Q: the toolbar buttons (and the dropdowns for that matter), are those custom widgets in DrRacket or are there base classes in the gui package for them? I’d love to have their display + functionality in my project, but don’t want to duplicate work if something already exists I haven’t seen as of yet.


spdegabrielle
2020-5-6 20:40:12

They are in gui framework


massung
2020-5-6 20:40:46

do you happen to know which classes off hand?



massung
2020-5-6 20:43:18

if it’s just button% , I can’t see the options that show it


massung
2020-5-6 20:43:21

thanks for the link


massung
2020-5-6 20:43:31

awesome :slightly_smiling_face:


mflatt
2020-5-6 20:45:45

I think it’s switchable-button%, hidden away in mrlib instead of framework.


massung
2020-5-6 20:46:33

tyvm


spdegabrielle
2020-5-6 20:49:06

You will now be unable to run 32bit apps. Sorry.



mflatt
2020-5-6 20:57:01

Happily, I’m not upgrading my regular machine. This is my old, extra machine whose job is just to run Catalina.


soegaard2
2020-5-6 21:14:21

@spdegabrielle Did you install from a git repo? If so, does git diff —cached give anything useful?


spdegabrielle
2020-5-6 21:24:58

No just the standard build


spdegabrielle
2020-5-6 21:25:19

7.7cs macOS


spdegabrielle
2020-5-6 21:26:11

I was looking at the internals of DrRacket but I’ve removed everything.


samth
2020-5-7 02:29:22

Has anyone written the equivalent of tee for ports?


jaz
2020-5-7 02:30:17

There’s actually a languishing PR up about that.



jaz
2020-5-7 02:36:27

Oh, and I see that you commented on that a lot, so I guess you already know. :slightly_smiling_face:


samth
2020-5-7 02:37:17

I had forgotten completely, so thanks :slightly_smiling_face:


samdphillips
2020-5-7 02:51:21

I think I’ve written something like that a few times now.



samdphillips
2020-5-7 02:56:47

The basic idea. Looking at it now it probably explodes if one of the outputs gets closed.


samdphillips
2020-5-7 03:13:27

And not as comprehensive as combine-output-ports


samth
2020-5-7 03:15:31

Thank you! That was entirely sufficient for what I needed.


abhi18av483
2020-5-7 03:57:23

@abhi18av483 has joined the channel