-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use unsafe_string instead of bytestring #444
Conversation
reviewing with JuliaInterop/ZMQ.jl#109 |
it's planning for ZMQ.jl versions JuliaInterop/ZMQ.jl#110 |
025d2e7
to
b49dffa
Compare
@@ -1,6 +1,6 @@ | |||
julia 0.4 | |||
Nettle 0.2 | |||
JSON 0.5 | |||
ZMQ 0.3.1 | |||
ZMQ 0.3.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this fixing a deprecation warning or an error? if it's just fixing a deprecation warning, it's too tight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be ZMQ 0.3.4.
it's been changed with unsafe_string(::Message)
since ZMQ 0.3.3,
but ZMQ 0.3.3 has wrong(conditional deprecation).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, it just has a lot of warnings. I suspect versions earlier than 0.3.1 would work too without any errors, wouldn't they?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, for Julia 0.4, ZMQ 0.3.1 was defined for the type Message
with
bytestring(zmsg::Message) = bytestring(pointer(zmsg), length(zmsg))
and with this PR, calling unsafe_string(::Message)
doesn't work on Julia 0.4.
when running jupyter-notebook, there's hanging with timeout like this
[W 21:35:58.097 NotebookApp] Timeout waiting for kernel_info reply from e3f8da4c-ce1c-4604-965e-200479992642
thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that makes sense, there was no unsafe_string(::Message)
method before ZMQ.jl 0.3.3? So ZMQ.jl 0.3.3 is the actual minimum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's also bad, because there's the critical issue for on ZMQ 0.3.3.
JuliaInterop/ZMQ.jl#108 (comment)
incidentally causing lot's of deprecated warnings for every input on IJulia.
I prefer to use ZMQ 0.3.4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The requirements of ZMQ 0.3.3 and 0.3.4 are the same, so any time both are possible, Pkg will use the larger of them.
Bump. Needs a rebase and updated REQUIRE to ZMQ 0.3.3 |
ok. I'm going to rebase to ZMQ 0.3.3 |
b49dffa
to
0627584
Compare
Thanks. |
It was a closed issue but to fix the potential problem.
#443