mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
NullPointerException on chained module import and glob import #71
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @othompson2 on GitHub (Feb 16, 2024).
Run into an issue when I chain an
@moduleimport which in turn contains an import with a glob pattern. If I replace either the@moduleor glob pattern with a direct import the problem doesn't occur, so both seem to work independently just not when combined.error:
occurs when:
when
section.pklincludes:@bioball commented on GitHub (Feb 21, 2024):
@othompson2 curious why you closed this. Did this get fixed somehow?
@othompson2 commented on GitHub (Feb 21, 2024):
Apologies I should've left a comment. I revisited the issue today after working round it and didn't seem to be able to recreate it. However looking at it now its actually because I've switched the direction of the imports and am using modules throughout, so I am no longer using an inline
importswhich appears to have resolved the issue.The following works:
when the files in that folder have the following:
So I do believe its still an issue my bad.