[PR #84] [MERGED] update 'Loading Modules' example to match config contents #403

Closed
opened 2025-12-30 01:24:18 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/apple/pkl/pull/84
Author: @igmrrf
Created: 2/7/2024
Status: Merged
Merged: 2/8/2024
Merged by: @bioball

Base: mainHead: main


📝 Commits (2)

  • c27ce34 update 'Loading Modules' example to match config contents
  • 425348b Update index.adoc

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 docs/modules/pkl-cli/pages/index.adoc (+4 -4)

📄 Description

The example config content:
bird {
species = "Pigeon"
diet = "Seeds"
}
parrot {
species = "Parrot"
diet = "Berries"
}

But in the 'Loading Modules' example, 'bird.name' was used which in most cases will return an error for those following;
–– Pkl Error ––
Cannot find property name in object of type Dynamic.

1 | bird.name
^^^^^^^^^
at (repl:pkl1)

Available properties:
default
diet
species


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/apple/pkl/pull/84 **Author:** [@igmrrf](https://github.com/igmrrf) **Created:** 2/7/2024 **Status:** ✅ Merged **Merged:** 2/8/2024 **Merged by:** [@bioball](https://github.com/bioball) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`c27ce34`](https://github.com/apple/pkl/commit/c27ce3419cead5294c26383791c172a9e390e612) update 'Loading Modules' example to match config contents - [`425348b`](https://github.com/apple/pkl/commit/425348b4220ab7fe3325f13a5fe95b42449c86bd) Update index.adoc ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/pkl-cli/pages/index.adoc` (+4 -4) </details> ### 📄 Description The example config content: bird { species = "Pigeon" diet = "Seeds" } parrot { species = "Parrot" diet = "Berries" } But in the 'Loading Modules' example, 'bird.name' was used which in most cases will return an error for those following; –– Pkl Error –– Cannot find property name in object of type Dynamic. 1 | bird.name ^^^^^^^^^ at (repl:pkl1) Available properties: default diet species --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 01:24:18 +01:00
adam closed this issue 2025-12-30 01:24:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#403