Literate icon indicating copy to clipboard operation
Literate copied to clipboard

Infinite Loop with multiple includes

Open justinmeiners opened this issue 6 years ago • 4 comments

I am having trouble including multiple files. Whenever I have multiple includes it gets into a loop of including the same file over and over, and complaining about redefinition. Each include works independently but not together. I have made the included files super simple to avoid error.

@title My title
  
@s Theory
@include theory.lit
 
@s Code
@include code.lit

justinmeiners avatar Jan 27 '18 02:01 justinmeiners

I think I am running into this too.

andreabedini avatar Apr 30 '21 09:04 andreabedini

still a true story...

nikonakoneko avatar Jul 10 '22 13:07 nikonakoneko

@soratobukuroneko partially due to this problem (and others with making books), I made an inspired project https://github.com/justinmeiners/srcweave, which supports a very similar file format, but handles multiple files in a much simpler way.

justinmeiners avatar Jul 10 '22 16:07 justinmeiners

thanks @justinmeiners, i'll give it a try!

nikonakoneko avatar Jul 11 '22 08:07 nikonakoneko