Skip to content
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 Running runtests.jl #37

Closed
amirmm11 opened this issue Jan 10, 2020 · 3 comments
Closed

Error Running runtests.jl #37

amirmm11 opened this issue Jan 10, 2020 · 3 comments

Comments

@amirmm11
Copy link

I am running julia Version 1.3.1 and I get this error when I run runtests.jl, any help is appreciated.

C:\PiecewiseLinearOpt.jl-master\test>julia runtests.jl
ERROR: LoadError: LoadError: LoadError: TypeVar in Vararg length must have bounds Union{} and Any
Stacktrace:
[1] top-level scope at C:\PiecewiseLinearOpt.jl-master\test\types.jl:8
[2] include at .\boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1105
[4] include at .\Base.jl:31 [inlined]
[5] include(::String) at C:\PiecewiseLinearOpt.jl-master\test\PiecewiseLinearOpt.jl:3
[6] top-level scope at C:\PiecewiseLinearOpt.jl-master\test\PiecewiseLinearOpt.jl:13
[7] include at .\boot.jl:328 [inlined]
[8] include_relative(::Module, ::String) at .\loading.jl:1105
[9] include(::Module, ::String) at .\Base.jl:31
[10] include(::String) at .\client.jl:424
[11] top-level scope at C:\PiecewiseLinearOpt.jl-master\test\runtests.jl:1
[12] include at .\boot.jl:328 [inlined]
[13] include_relative(::Module, ::String) at .\loading.jl:1105
[14] include(::Module, ::String) at .\Base.jl:31
[15] exec_options(::Base.JLOptions) at .\client.jl:287
[16] _start() at .\client.jl:460
in expression starting at C:\PiecewiseLinearOpt.jl-master\test\types.jl:8
in expression starting at C:\PiecewiseLinearOpt.jl-master\test\PiecewiseLinearOpt.jl:13
in expression starting at C:\PiecewiseLinearOpt.jl-master\test\runtests.jl:1

joehuchette added a commit that referenced this issue Jan 16, 2020
@joehuchette
Copy link
Contributor

Should be fixed by 2a00e51. Let me know if it resolves your issue, and I can tag a new release.

@amirmm11
Copy link
Author

Thanks

Here are my changes to get the code run

types.jl:
function PWLFunction{D}(x::Vector{NTuple{D, <: Integer}}, z::Vector, T::Vector{Vector}, meta::Dict) where {D}

runtests.jl:
include("../src/PiecewiseLinearOpt.jl")
using .PiecewiseLinearOpt.

BTW, you can use a Dictionary in all recursive functions to avoid identical calculation.

@odow
Copy link
Member

odow commented Sep 11, 2024

Closing because this is now fixed.

@odow odow closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants