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

[BUG] Tutorial 6 code issue #476

Closed
4 tasks done
razetime opened this issue Apr 8, 2022 · 0 comments · Fixed by #477
Closed
4 tasks done

[BUG] Tutorial 6 code issue #476

razetime opened this issue Apr 8, 2022 · 0 comments · Fixed by #477
Labels
bug Something isn't working

Comments

@razetime
Copy link
Contributor

razetime commented Apr 8, 2022

Before Filing a Report

  • Did I read the Documentation and/or docstrings?
  • Did I search the Javis GitHub to see if this bug has already been reported?
  • Am I familiar with the Javis philosophy?
  • Do I have the latest version of Javis installed?

Describe the bug

Running the code present in the Full Code section of Tutorial 6 throws a MethodError.

To Reproduce

  1. Julia Version (i.e. output of julia -v): 1.7.2

  2. Operating system (Mac, Linux, Windows): Ubuntu Linux

  3. Javis version (i.e output of ] status Javis in the REPL) v0.8.0

  4. Expected result:

The tutorial code given (Link) must run correctly and produce the result shown in tutorial 6. Instead, an error is thrown.

Stacktrace (If Applicable)

> Executing task: julia --color=yes --project=/home/razetime/.julia/environments/v1.7 /home/razetime/Documents/Code/learning/julia/tut6-from.jl <

ERROR: LoadError: MethodError: no method matching info_box(; element=Element(Hydrogen))
Closest candidates are:
  info_box(::Any) at ~/Documents/Code/learning/julia/tut6-from.jl:16 got unsupported keyword argument "element"
Stacktrace:
  [1] (::var"#5#7")(::Video, ::Vararg{Any}; elem::Int64)
    @ Main ~/Documents/Code/learning/julia/tut6-from.jl:46
  [2] (::var"#5#7")(::Video, ::Vararg{Any})
    @ Main ~/Documents/Code/learning/julia/tut6-from.jl:46
  [3] draw_object(object::Object, video::Video, frame::Int64, origin_matrix::Matrix{Float64}, layer_frames::Nothing)
    @ Javis ~/Documents/Code/general/Javis.jl/src/Javis.jl:658
  [4] macro expansion
    @ ~/Documents/Code/general/Javis.jl/src/Javis.jl:408 [inlined]
  [5] macro expansion
    @ ~/.julia/packages/Luxor/Oftfe/src/basics.jl:526 [inlined]
  [6] render_objects(objects::Vector{Javis.AbstractObject}, video::Video, frame::Int64; layer_frames::Nothing)
    @ Javis ~/Documents/Code/general/Javis.jl/src/Javis.jl:407
  [7] render_objects
    @ ~/Documents/Code/general/Javis.jl/src/Javis.jl:380 [inlined]
  [8] get_javis_frame(video::Video, objects::Vector{Javis.AbstractObject}, frame::Int64; layers::Vector{Javis.AbstractObject})
    @ Javis ~/Documents/Code/general/Javis.jl/src/Javis.jl:601
  [9] render(video::Video; framerate::Int64, pathname::String, liveview::Bool, streamconfig::Nothing, tempdirectory::String, ffmpeg_loglevel::String, rescale_factor::Float64, postprocess_frames_flow::typeof(identity), postprocess_frame::typeof(Javis.default_postprocess))
    @ Javis ~/Documents/Code/general/Javis.jl/src/Javis.jl:288
 [10] top-level scope
    @ ~/Documents/Code/learning/julia/tut6-from.jl:64
in expression starting at /home/razetime/Documents/Code/learning/julia/tut6-from.jl:64
The terminal process "julia '--color=yes', '--project=/home/razetime/.julia/environments/v1.7', '/home/razetime/Documents/Code/learning/julia/tut6-from.jl'" terminated with exit code: 1.
@razetime razetime added the bug Something isn't working label Apr 8, 2022
@razetime razetime mentioned this issue Apr 11, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant