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
I have seen issue #218 and from that ticket, it looks like the problem is already solved, but in my opinion, it's not, or at least not in all cases.
Please consider the following directory structure:
service-script-a.kts includes common-script-a.kts. But common-script-a.kts includes internally common-script-b.kts.
Now when I execute service-script-a.kts I get error:
[kscript] [ERROR] Failed to resolve //INCLUDE 'common-script-b.kts' [[kscript] [ERROR] /home/vagrant/workspace/Kod/GitRepos/TestCase/service-a/common-script-b.kts (No such file or directory)]
Fixing it shouldn't be difficult - it is enough to include files always relatively to the file which does the include. Without that, it is not possible to correctly structure scripts and encapsulate pieces of code.
I am attaching the above very simple test-case as a zip file.
I have seen issue #218 and from that ticket, it looks like the problem is already solved, but in my opinion, it's not, or at least not in all cases.
Please consider the following directory structure:
service-script-a.kts includes common-script-a.kts. But common-script-a.kts includes internally common-script-b.kts.
Now when I execute service-script-a.kts I get error:
[kscript] [ERROR] Failed to resolve //INCLUDE 'common-script-b.kts' [[kscript] [ERROR] /home/vagrant/workspace/Kod/GitRepos/TestCase/service-a/common-script-b.kts (No such file or directory)]
Fixing it shouldn't be difficult - it is enough to include files always relatively to the file which does the include. Without that, it is not possible to correctly structure scripts and encapsulate pieces of code.
I am attaching the above very simple test-case as a zip file.
TestCase.zip
The text was updated successfully, but these errors were encountered: