deactivateduser60718
2020-1-31 17:22:59

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?


samth
2020-1-31 17:24:33

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


deactivateduser60718
2020-1-31 17:24:35

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


deactivateduser60718
2020-1-31 17:25:17

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


blerner
2020-1-31 17:41:44

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


mflatt
2020-1-31 17:42:23

Yes, it changed in v7.5


blerner
2020-1-31 17:42:32

thanks


blerner
2020-1-31 17:42:34

good to know!


blerner
2020-1-31 17:42:46

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


brentgordon146
2020-1-31 17:43:56

@brentgordon146 has joined the channel


brentgordon146
2020-1-31 17:47:03

hello


brentgordon146
2020-1-31 17:48:25

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


soegaard2
2020-1-31 18:00:09

How do you run your code?


brentgordon146
2020-1-31 18:05:19

racket myfile.rkt


soegaard2
2020-1-31 18:15:29

Do you use display to print your result values?


brentgordon146
2020-1-31 18:17:52

yes


soegaard2
2020-1-31 18:18:34

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


brentgordon146
2020-1-31 18:26:26

yes


soegaard2
2020-1-31 18:31:28

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.


brentgordon146
2020-1-31 18:33:14

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


brentgordon146
2020-1-31 18:34:47

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


brentgordon146
2020-1-31 18:35:18

i changed none of the code before it suddenly stopped working


soegaard2
2020-1-31 18:36:02

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


sorawee
2020-1-31 18:47:17

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


sorawee
2020-1-31 18:47:37

Or a minimal code that shows the problem


brentgordon146
2020-1-31 18:52:02

soegaard2
2020-1-31 18:54:53

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


brentgordon146
2020-1-31 18:55:45

an image from safebooru


ben
2020-1-31 19:01:32

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


brentgordon146
2020-1-31 19:03:53

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


ben
2020-1-31 19:06:59

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


brentgordon146
2020-1-31 19:08:39

an image


ben
2020-1-31 19:09:44

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


brentgordon146
2020-1-31 19:10:11

thats what im doing


ben
2020-1-31 19:11:28

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))


soegaard2
2020-1-31 19:12:21

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


brentgordon146
2020-1-31 19:18:12

displays other than at the top of file dont work


brentgordon146
2020-1-31 19:18:34

it returns an empty string tho


sorawee
2020-1-31 19:23:25

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?


soegaard2
2020-1-31 19:30:28

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


sorawee
2020-1-31 19:32:37

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


sorawee
2020-1-31 19:33:10

Thanks for the examples!



sorawee
2020-1-31 19:38:18

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


sorawee
2020-1-31 19:38:42

So that ffi-lib can see the shared library


massung
2020-1-31 19:45:34

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?


massung
2020-1-31 19:52:20

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


soegaard2
2020-1-31 19:53:15

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


massung
2020-1-31 19:53:34

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


soegaard2
2020-1-31 19:54:38

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


soegaard2
2020-1-31 19:55:03

Nice project btw!


massung
2020-1-31 19:55:46

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)


soegaard2
2020-1-31 19:56:16

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


massung
2020-1-31 19:58:14

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


massung
2020-1-31 20:02:30

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


massung
2020-1-31 20:03:04

gonna try adding the examples back to the project


massung
2020-1-31 20:04:01

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:


soegaard2
2020-1-31 20:06:07

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


brentgordon146
2020-1-31 20:10:21

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


soegaard2
2020-1-31 20:11:59

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


brentgordon146
2020-1-31 20:21:56

:data only accepts bytes/strings not images


samth
2020-1-31 20:21:58

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


massung
2020-1-31 20:22:43

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


massung
2020-1-31 20:22:54

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


samth
2020-1-31 20:22:56

@massung the pkg build server runs once a day


samth
2020-1-31 20:23:19

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


massung
2020-1-31 20:23:28

ok, ill go read, ty


massung
2020-1-31 20:24:17

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


soegaard2
2020-1-31 20:52:15

@massung yes.


brentgordon146
2020-1-31 21:54:25

@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


soegaard2
2020-1-31 21:59:42

Can you post an updated version of your code?


brentgordon146
2020-1-31 22:05:12

brentgordon146
2020-1-31 22:05:32

I tracked down the #f coming from the server variable


brentgordon146
2020-1-31 22:11:58

I figured it out the problem server wasn’t capitalized


sorawee
2020-1-31 23:59:43

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


samth
2020-2-1 00:18:14

Yes, until around 5 am


alexharsanyi
2020-2-1 01:21:41

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


alexharsanyi
2020-2-1 01:22:49

you could also consider using a dialog%