JuliaSpace / SatelliteToolbox.jl

A toolbox for satellite analysis written in julia language.
MIT License
249 stars 33 forks source link

@pack!_SGP4_DeepSpace not defined #13

Closed jacobmogic closed 5 years ago

jacobmogic commented 5 years ago

Precompiling SatelliteToolbox v0.3.1 gives the following error.

julia> using SatelliteToolbox
[ Info: Precompiling SatelliteToolbox [6ac157d9-b43d-51bb-8fab-48bf53814f4a]
┌ Warning: The macro `@pack` is deprecated, use `@pack!`
│   caller = #macroexpand#32 at expr.jl:92 [inlined]
└ @ Core .\expr.jl:92
ERROR: LoadError: LoadError: LoadError: LoadError: UndefVarError: @pack!_SGP4_DeepSpace not defined
Stacktrace:
 [1] top-level scope
 [2] #macroexpand#32 at .\expr.jl:92 [inlined]
 [3] macroexpand at .\expr.jl:91 [inlined]
 [4] docm(::LineNumberNode, ::Module, ::Any, ::Any, ::Bool) at .\docs\Docs.jl:509 (repeats 2 times)
 [5] @doc(::LineNumberNode, ::Module, ::String, ::Vararg{Any,N} where N) at .\boot.jl:451
 [6] include at .\boot.jl:317 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1038
 [8] include at .\sysimg.jl:29 [inlined]
 [9] include(::String) at C:\Users\user\.julia\packages\SatelliteToolbox\R79gy\src\SatelliteToolbox.jl:1
 [10] top-level scope at none:0
 [11] include at .\boot.jl:317 [inlined]
 [12] include_relative(::Module, ::String) at .\loading.jl:1038
 [13] include(::Module, ::String) at .\sysimg.jl:29
 [14] top-level scope at none:2
 [15] eval at .\boot.jl:319 [inlined]
 [16] eval(::Expr) at .\client.jl:399
 [17] top-level scope at .\none:3
in expression starting at C:\Users\user\.julia\packages\SatelliteToolbox\R79gy\src\orbit\propagators\sgp4.jl:998
in expression starting at C:\Users\user\.julia\packages\SatelliteToolbox\R79gy\src\orbit\propagators\sgp4.jl:611
in expression starting at C:\Users\user\.julia\packages\SatelliteToolbox\R79gy\src\orbit\propagators\sgp4.jl:611
in expression starting at C:\Users\user\.julia\packages\SatelliteToolbox\R79gy\src\SatelliteToolbox.jl:73
ERROR: Failed to precompile SatelliteToolbox [6ac157d9-b43d-51bb-8fab-48bf53814f4a] to C:\Users\user\.julia\compiled\v0.7\SatelliteToolbox\VRH6F.ji.
Stacktrace:
 [1] macro expansion at .\logging.jl:313 [inlined]
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1185
 [3] macro expansion at .\logging.jl:311 [inlined]
 [4] _require(::Base.PkgId) at .\loading.jl:941
 [5] require(::Base.PkgId) at .\loading.jl:852
 [6] macro expansion at .\logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at .\loading.jl:834
julia> versioninfo()
Julia Version 0.7.0
Commit a4cb80f3ed (2018-08-08 06:46 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = "C:\Users\user\AppData\Local\atom\app-1.30.0\atom.exe" -a
  JULIA_NUM_THREADS = 4
ronisbr commented 5 years ago

Hi @jacobist ,

Thanks for reporting it! The new version of Parameters changed the behavior of @pack!_* macros. I reported the issue https://github.com/mauro3/Parameters.jl/issues/82, but I think I can workaround this bug by using @pack.

ronisbr commented 5 years ago

Hi @jacobist,

It should be working now. You can use master or downgrade Parameters.jl to version v0.9.2. I will submit the v0.3.2 of SatelliteToolbox, which will fix this bug, as soon as the tests are completed.

Thanks!