You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Pkg.test("NIDAQ") is failing on the first lines of test code.
On the 4th line of runtest.jl the call to
d =devices()[1]
the error is
ERROR: LoadError: MethodError:`convert` has no method matching convert(::Type{P
tr{UInt8}}, ::Array{UInt8,1})
This may have arisen from a call to the constructor Ptr{UInt8}(...),
since type constructors fall back to convert methods.
Closest candidates are:call{T}(::Type{T}, ::Any)
convert{T<:Union{Int8,UInt8}}(::Type{Ptr{T<:Union{Int8,UInt8}}}, ::Cstring)
convert{T}(::Type{Ptr{T}}, ::UInt64)
...in devices at c:\Users\phlavenk\JuliaData\v0.4\NIDAQ\src\properties.jl:5in include at boot.jl:261in include_from_node1 at loading.jl:304in process_options at client.jl:308in _start at client.jl:411while loading c:\Users\phlavenk\JuliaData\v0.4\NIDAQ\test\runtests.jl, in expres
sion starting on line 4================================[ ERROR: NIDAQ ]================================
The devices() function is defined in properties.jl code as:
The problem is in the convert(Ptr{UInt8}, data) part to obtain the UInt8 pointer to array to pass to a function GetSysDevNames generated by Clang.jl
interestingly, if I execute this function line-by-line on the REPL the conversion runs just fine.
Could you please help me to fix this pointer conversion on 0.4.0?
Thanks a lot.
Petr
The text was updated successfully, but these errors were encountered:
The Pkg.test("NIDAQ") is failing on the first lines of test code.
On the 4th line of runtest.jl the call to
the error is
The devices() function is defined in properties.jl code as:
The problem is in the
convert(Ptr{UInt8}, data)
part to obtain the UInt8 pointer to array to pass to a functionGetSysDevNames
generated by Clang.jlinterestingly, if I execute this function line-by-line on the REPL the conversion runs just fine.
Could you please help me to fix this pointer conversion on 0.4.0?
Thanks a lot.
Petr
The text was updated successfully, but these errors were encountered: