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 on valid Literate file #885

Closed
mauro3 opened this issue Sep 17, 2021 · 2 comments · Fixed by #886
Closed

Error on valid Literate file #885

mauro3 opened this issue Sep 17, 2021 · 2 comments · Fixed by #886
Labels
bug Something isn't working literate

Comments

@mauro3
Copy link

mauro3 commented Sep 17, 2021

This file:

# A test

##

errors when included with \literate{}. The error is

┌ Franklin Warning: in <lecture1.md>                                                                                                                                                            
│ Encountered an issue processing 'lecture1.md' in -101-0250-00/website.                                                                                                                        
│ Verify, then re-start the Franklin server.                                                                                                                                                    
│ The error is displayed below:                                                                                                                                                                 
│ BoundsError(Any[], (0,))                                                                                                                                                                      
└                                                                                                                                                                                               
ERROR: BoundsError: attempt to access 0-element Vector{Any} at index [0]                                                                                                                        
Stacktrace:                                                                                                                                                                                     
  [1] getindex                                                                                                                                                                                  
    @ ./array.jl:801 [inlined]                                                                                                                                                                  
  [2] run_code(mod::Module, code::SubString{String}, out_path::String; warn_err::Bool, strip_code::Bool)
...
@tlienart tlienart added bug Something isn't working literate labels Sep 18, 2021
@tlienart
Copy link
Owner

Thanks for the report!

luraess referenced this issue in eth-vaw-glaciology/course-101-0250-00 Sep 18, 2021
Add let...end block prepended with #md to only include them for markdown deploy (in Franklin) but filter them for notebook output. Fix typos, add hyperlinks to links.
@tlienart tlienart mentioned this issue Sep 19, 2021
@luraess
Copy link
Contributor

luraess commented Sep 19, 2021

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working literate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants