nim-works / nimskull

An in development statically typed systems programming language; with sustainability at its core. We, the community of users, maintain it.
https://nim-works.github.io/nimskull/index.html
Other
275 stars 39 forks source link

multiple files import from relative parent folder won't compile #1430

Closed mrgaturus closed 1 month ago

mrgaturus commented 1 month ago

Example

there are a foo.nim and a bar.nim in the parent folder of current module

import ../[foo, bar]

Actual Output

Error: cannot open file: ../[foo,bar]

Expected Output

modules are imported properly

Possible Solution

importing one by one each line compiles

import ../foo
import ../bar

if modules are inside a folder from relative parent folder it compiles

import ../folder/[foo, bar]

References

works on nim