Closed chtenb closed 5 months ago
I just pushed an initial fix for this (commit f58c61ff) (although we need to think a bit more about this in context of packages.). When loading a file that is either not relative to the include path roots, or has invalid directory names up-to the include path, in such case we only keep the declared module name in the source.
(However, that also means the compiler cannot find such modules unless referred to relatively since the connection to the file path is broken -- however, I think this is not a problem in practice since loading such files can only be done explicitly by the user anyways. )
Discussed in https://github.com/koka-lang/koka/discussions/439