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

include() not working in at-setup #1148

Closed
felipenoris opened this issue Oct 7, 2019 · 1 comment · Fixed by #1153
Closed

include() not working in at-setup #1148

felipenoris opened this issue Oct 7, 2019 · 1 comment · Fixed by #1153
Milestone

Comments

@felipenoris
Copy link

This used to work on Julia v0.6. This issue looks similar to #793.

include works on @example, but does not work on @setup.

┌ Warning: failed to run `@setup` block in src/core.md                                                                                          
│ ```@setup printtype                                                                                                                           
│ include("printtype.jl")                                                                                                                    
│ ```                                                                                                                                           
│   exception =                                                                                                                                 
│    LoadError: UndefVarError: include not defined                                                                                              
│    in expression starting at string:1                                                                                                         
└ @ Documenter.Expanders ~/.julia/packages/Documenter/3fOeD/src/Expanders.jl:655

My environment:

julia> versioninfo()                                                                                                                            
Julia Version 1.2.0                                                                                                                             
Commit c6da87ff4b (2019-08-20 00:03 UTC)                                                                                                        
Platform Info:                                                                                                                                  
  OS: Linux (x86_64-pc-linux-gnu)                                                                                                               
  CPU: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz                                                                                                
  WORD_SIZE: 64                                                                                                                                 
  LIBM: libopenlibm                                                                                                                             
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)

Using [e30172f5] Documenter v0.23.3.

mortenpi added a commit that referenced this issue Oct 9, 2019
Apply the fix from #794 to also SetupBlocks. Fix #1148.
@mortenpi mortenpi added this to the 0.23.4 milestone Oct 9, 2019
@felipenoris
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants