-
Notifications
You must be signed in to change notification settings - Fork 41
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
ERROR: TypeError: in <:, expected Type, got Vararg{Pair{String, String}} #114
Comments
The Vararg change on 1.7 hasn't propagated to many packages that reach into Julia's internals. A PR would be great, but if you're not up for that you can either twiddle your thumbs until someone fixes it or use |
I am not sure I understand: where does this need to be fixed? In Cthulhu or in CxxWrap? |
Cthulhu. Basically, 1.7 broke Cthulhu. It works on 1.6. |
For future reference, this is about the effects of JuliaLang/julia#38136 I'd like to help, and am now looking at the code, but it's (for me) not exactly self-explaining; in particular, the intent of various functions is unclear, making it hard to guess what the right way to adjust things is. So for the immediate error here, If Beyond that, it baffles me is So perhaps the deeper problem then is that
|
I hope it is not inappropriate for me to tag @Keno here, but since he made those Vararg changes to Julia, he might be in the best position to answer the above? |
That would be great, but I'm sure we can figure it out. I am swamped by yet new SnoopCompile-related analyses (really excited about a new idea I want to try...) and the fact that I can continue to work on 1.6 is a disincentive for me to fix this... |
Isn't that almost precisely the title of JuliaLang/julia#38136? |
If that's what it says, great; I must admit that the role of But then I still think the manual is wrong for stating "The type Vararg{T,N} ..." ? |
If it says that in the 1.7 manual, yes, that should perhaps be changed. I don't know which spot you're referring to so I can't easily check. |
On 1.6 (I don't have 1.7 locally): julia> subtypes(Type)
4-element Vector{Any}:
Core.TypeofBottom
DataType
Union
UnionAll and then there's the confusing fact that |
Indeed that's confusing:
Thanks for teaching me about |
As for the documentation, I filed JuliaLang/julia#39239 |
😄. Everything gets easier when you start thinking of types in terms of sets. |
I as trying to use SnoopCompile on CxxWrap (see JuliaInterop/CxxWrap.jl#278 for my tiny progress so far; any feedback there from experts is of course welcome ;-) ) and run into the following issue. I am reporting it here since it seems to be in Cthulhu.jl code only, but perhaps that wrong, sorry in that case.
Here is what I did and the error:
The text was updated successfully, but these errors were encountered: