

I can’t resolve net/rfc6455
, and raco pkg install -i net
merely promotes net
to “explicitly installed”. I am not using Minimal Racket. Tried installing net/rfc6455
for grins, but no luck. How am I meant to install a missing module for a built-in collection like this?

It’s in the rfc6455
package which is not built-in

Ah, it looks like it’s just raco pkg install rfc6455
. I got confused

I’m still not used to packages populating existing collections. Assumed that I’d have to interact with net
.

@mflatt Quick question: do you happen to know if the wxme format has changed between version 7.0 and 7.5 of DrR?

Yes, it changed in v7.5

thanks

good to know!

(it broke my handin server, unfortunately; I need to update)

@brentgordon146 has joined the channel

hello

Whenever I make changes to my code I don’t see the changes reflected anyone have any idea what might be causing this and how I can fix it

How do you run your code?

racket myfile.rkt

Do you use display
to print your result values?

yes

If you place a (display "foo")
at the top of the file, say, right after the #lang
line, do you see any output?

yes

Without seeing the code - this is a bit like shooting blind. Does a (display "bar")
as the last line print anything? If so, my guess is that you have defined functions, that aren’t called.
Or perhaps by accident have set (current-output-port)
to something?
Try putting (display "functionname")
as the first line of each function body to see whether the expected functions is called.

no a display at the end of the file doesn’t print anything

the function is being called but it’s throwing an error where the function was working fine just days before

i changed none of the code before it suddenly stopped working

Try running it in DrRacket in “debugging” mode. Hopefully it will show you were the error is.

@brentgordon146 It would be helpful if you can show your code

Or a minimal code that shows the problem


Ah! call-with-output-file
redirects the output port. What’s in the resulting output file?

an image from safebooru

what error do you see when you run the program? are your environment variables all set?

yes i set all my environment variables the error i see is http-sendrecv contract violation expected bytes? string? given #f in #:data

what are you hoping to send as the #:data
argument?

an image

ok, then try to send that image instead of #false

thats what im doing

that’s a strange error though, because the docs for http-sendrecv
say that it accepts #f
data https://docs.racket-lang.org/net/http-client.html#(def._((lib._net%2Fhttp-client..rkt)._http-sendrecv))

Have you tried (displayln (download-image))
to see what download-image
returns?

displays other than at the top of file dont work

it returns an empty string tho

How do I ship so/dylib/dll files in a Racket package, and how do I specify the paths for ffi-lib
? Using define-runtime-path
? Is there a project that does something like this so that I can see it as an example?

Are you looking for something like this? https://github.com/soegaard/poppler-libs

Yes and no. I want to see that, but also https://github.com/soegaard/racket-poppler

Thanks for the examples!


Ah, the last ingredient is copy-foreign-libs
in info.rkt

So that ffi-lib
can see the shared library

Can someone help me w/ a raco issue? My R-cade package (https://pkgd.racket-lang.org/pkgn/package/r-cade) is failing to build. And the build log shows this:
raco setup: /home/racket/build-pkgs/user/.racket/7.5/pkgs/r-cade/examples/twinkle.rkt:7:14: make-tune: unbound identifier
Yet github, with the latest commit SHA (which matches the package) doesn’t use that function any more:
https://github.com/massung/r-cade/blob/master/examples/twinkle.rkt#L7
Likewise, info.rkt has (define compile-omit-paths '("examples"))
in it, so I would expect it to skip attempting to compile that file anyway?

It’s like the package system needs a “clean” or something, but unsure how to do that

Is it failing at the build server or your own computer?

build server. my machine is fine (and the example program compiles and runs just fine)

Login to the package server and try “rescan my packages”.

Nice project btw!

ty. did the rescan. not sure how long that takes (still showing failure and not showing any changes that will be updated in a few minutes)

I am not sure how fast the build server is - could be longer.

pushing a whitespace change to generate a new sha so i can tell if it worked :slightly_smiling_face:

it updated, got the new SHA, same build error, that file isn’t getting updated

gonna try adding the examples back to the project

im guessing because the examples are in the exclude, it’s not updating the sources for them. but, it isn’t cleaning them out either :disappointed:

If you don’t get any suggestions here - try sending Jay a mail.

@soegaard2 any other ideas on how to fix my issue?

@brentgordon146 Try uploading an image from disk rather than a newly downloaded one.

:data only accepts bytes/strings not images

We probably should have made more of an issue of this in the release notes, since it’s caused several people (including me) surprising handin server problems

> If you don’t get any suggestions here - try sending Jay a mail. Unsure who “Jay” is @soegaard2 :wink:

But, nothing I do seems to fix the package, sadly.

@massung the pkg build server runs once a day

There’s an about link on the front page of it

ok, ill go read, ty

So I should just expect it to say “fails” until sometime within the next 24 hrs?

@massung yes.

@soegaard2 ok so i found the file->bytes function after some more googling but even with that http-sendrecv still tells me im passing #f to it

Can you post an updated version of your code?


I tracked down the #f coming from the server variable

I figured it out the problem server wasn’t capitalized

Is there a way to make (send f show #t)
blocks the main thread (but not the interaction in the frame itself) until the frame is closed? I guess it’s related to eventspace and thread but I don’t know how to make that work

Yes, until around 5 am

@sorawee not exactly what you asked for, you can call sync
on the event space like so: (let ([new-es (make-eventspace)])
(parameterize ([current-eventspace new-es])
(define f (new frame% [label "Example"]))
(send f show #t)
(sync new-es)
))

you could also consider using a dialog%