
That appears to work, thanks!

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?

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.

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

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

I see every label twice!

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

I have never seen anything like that.

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

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

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

I just downloaded bc again.

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.

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

almost there. cs this time

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.

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

$ 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

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

I’ve reset my preferences,

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.

wait you have to copies of the tool?

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

what do they both refer to?

it really sounds like you have an odd installation

did you follow all the instructions in that blog post?



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

Yes

yes weird

but unrelated



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

Yes

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

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

No!

it is normal if I just do gracket test.rkt

Maybe adding a port flush?


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?

prefs

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

I dont have OS extensions. Plain old catalina

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

Wait. Let me reboot first

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

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

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

raco setup -l quickscript-extra
;)

I always forget that!

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

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

Added both to https://github.com/racket/racket/wiki/How-to-get-started

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

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

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.

They are in gui framework

do you happen to know which classes off hand?


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

thanks for the link

awesome :slightly_smiling_face:

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

tyvm

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


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

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

No just the standard build

7.7cs macOS

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

Has anyone written the equivalent of tee
for ports?

There’s actually a languishing PR up about that.


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

I had forgotten completely, so thanks :slightly_smiling_face:

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


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

And not as comprehensive as combine-output-ports

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

@abhi18av483 has joined the channel