You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, if it try to import and initialize with import "@base/bar/baz/bar.pkl" in derive/tmp.pkl
where base/bar/baz/bar.pkl imports base/foo.pkl with triple dot syntax (extends ".../foo.pkl")
it gives following error
–– Pkl Error ––
I/O error loading module `projectpackage://github.com/pkl@0.1.0#/bar/foo.pkl`.
NoSuchFileException: /home/jwyang/test_pkl/derive/../base/bar/foo.pkl
3 | foo = new bar{}
^^^
at tmp#foo (file:///home/jwyang/test_pkl/derive/tmp.pkl, line 3)
106 | text = renderer.renderDocument(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at pkl.base#Module.output.text (https://github.com/apple/pkl/blob/0.25.2/stdlib/base.pkl#L106)
Not sure if I am doing something wrong, but here it goes.
Here is the file structure
Summary
Basically, if it try to import and initialize with
import "@base/bar/baz/bar.pkl"
inderive/tmp.pkl
where
base/bar/baz/bar.pkl
importsbase/foo.pkl
with triple dot syntax (extends ".../foo.pkl"
)it gives following error
Files
base/PklProject
base/foo.pkl
base/bar/baz/bar.pkl
derive/PklProject
derive/tmp.pkl
Commands
Resulting
PklProject.deps.json
If I replace triple dot syntax in
base/bar/baz/bar.pkl
withextends "../../foo.pkl"
error doesn't show anymore
The text was updated successfully, but these errors were encountered: