Closed TheCodedOne closed 3 years ago
You are right. Includes are currently always relative to the main-file, which causes issues with nested includes accross multiple directories. Making all includes relative to the current file would probably be the best solution.
Published as part of v0.1.10
Describe the bug When using include and directories, if you include a file that includes another, it attempts to include the sub-include based on the directory of the original script rather than of the script actually trying to include.
To Reproduce Create 3 scripts
have
b
includea
, andc
includeb
. seec
error that it cannot finda
Code
/a.nolol
/b.nolol
/c/c.nolol
Expected behaviour Nolol compilation should include based on the local directory of the file including, or have a way of defining a root directory to base all includes from
Platform: