Daniel Chao and GitHub
6746040362
Fix: add missing "const" and "fixed" modifiers to reflect API ( #265 )
...
This fixes an issue where the reflect API does not show fixed or const modifiers on a property.
2024-02-29 07:02:09 -08:00
Daniel Chao and GitHub
ddfab2a280
Add CI check to test patch file ( #253 )
...
This tests that the patch file can apply in CI.
2024-02-28 08:10:54 -08:00
Daniel Chao and GitHub
b0161a4777
Add specification for language binding API ( #257 )
...
This adds documentation for how the language bindings works, for those that wish to create their own bindings.
2024-02-28 08:10:16 -08:00
Daniel Chao and GitHub
2499e2c493
Fix patch file ( #252 )
...
This fixes an issue that is perventing our patch from from being
applied.
2024-02-27 07:50:00 -08:00
translatenix and GitHub
813572f0d2
Add Pkl logo to README ( #242 )
2024-02-26 18:28:29 +01:00
Islon Scherer and GitHub
90dedb7837
remove file with \ on the name as windows does not support it ( #251 )
2024-02-26 15:03:46 +01:00
translatenix and GitHub
b7b0e65cc6
Delete unused image ( #243 )
...
This image is not used anywhere.
2024-02-23 14:50:48 -08:00
Daniel Chao and GitHub
96c0e5fb03
Add com.oracle.truffle to shaded libs ( #238 )
...
This allows two libraries that use Truffle to coexist
in a host application.
2024-02-23 09:07:18 -08:00
translatenix and GitHub
32bc75bf50
Add targets for org.pkl.core.util.Nullable ( #235 )
...
Also, change `java.time.@Nullable Duration` to `@Nullable java.time.Duration` to reduce the chance
of false positive errors in IDEs.
2024-02-23 07:07:08 -08:00
Sam Gammon and GitHub
7f404fff49
Add setting for Kotlin package to codegen ( #194 )
2024-02-23 11:54:05 +01:00
translatenix and GitHub
48a000aa1a
Fix Gradle test tasks in pkl-server ( #176 )
...
Before: "test" runs no tests, "unitTests" runs all tests
After : "test" runs all tests
2024-02-22 19:58:06 -08:00
translatenix and GitHub
2c54643037
Breaking: rename some CLI classes for consistency ( #169 )
...
CliDownloadPackageCommand -> CliPackageDownloader (consistent with CliProjectPackager/CliProjectResolver)
CliAbstractProjectCommand -> CliProjectCommand (consistent with CliCommand)
2024-02-22 19:53:01 -08:00
translatenix and GitHub
a85ffd3cab
Order entries alphabetically (as stated) ( #236 )
...
Also remove an obsolete comment.
2024-02-22 17:04:20 -08:00
translatenix and GitHub
115e775d1b
Fix Gradle build warning ( #232 )
...
The warning was introduced by 1e502009 .
2024-02-22 15:06:17 -08:00
translatenix and Philip K.F. Hölzenspies
d756dff0e7
Delete stale files in LanguageSnippetTests/output
...
When I delete pkl-core/src/test/files/LanguageSnippetTests/output and
run "gw test", most output files are regenerated, but 46 of them aren't.
I assume these are stale files that should be deleted.
2024-02-22 15:05:14 +00:00
Mitch Capper and Philip K.F. Hölzenspies
9cc1796429
Minor development/contributing/ci doc links / additions
2024-02-22 15:04:12 +00:00
Sam Gammon and Philip K.F. Hölzenspies
eb170017f6
Fix dropped implementSerializable flag
...
Fixes and closes apple/pkl#191
Signed-off-by: Sam Gammon <sam@elide.ventures >
2024-02-22 13:23:09 +00:00
Zack McCauley and Islon Scherer
8f130d8d49
Fix multiple output example code ( #205 )
2024-02-22 10:28:23 +01:00
Islon Scherer and GitHub
c652bbe5cd
fix typo in doc for Listing default ( #224 )
2024-02-21 18:56:11 +01:00
Sam Gammon and Philip K.F. Hölzenspies
ca31185302
Move tool versions to Version Catalog
...
- fix: make version catalog accessible from `buildSrc` plugins
- chore: declare `googleFormatVersion` in version catalog
- chore: declare `ktfmt` in version catalog
Relates-To: apple/pkl#204
Signed-off-by: Sam Gammon <sam@elide.ventures >
2024-02-21 12:01:49 +00:00
translatenix and Philip K.F. Hölzenspies
21e0e149ac
Tweak User-Agent header
...
It is customary to separate elements with a semicolon.
2024-02-21 11:40:46 +00:00
Sam Gammon and Philip K.F. Hölzenspies
1e50200969
Use Gradle typed project accessors
...
This change activates the `TYPESAFE_PROJECT_ACCESSORS` feature
preview in Gradle, and switches to such accessors instead of
string-based project references, where possible
Relates-To: apple/pkl#204
Signed-off-by: Sam Gammon <sam@elide.ventures >
2024-02-21 11:36:02 +00:00
Sam Gammon and Philip K.F. Hölzenspies
cb33a7cdb0
Skip POM validation for unpublished projects
...
This small change fixes a bug introduced by the `validatePom` task
within the `pklPublishLibrary` plugin. When running project-wide
tasks like `./gradle tasks`, projects which don't provide a POM
fail the build, because the `generatePomFileForLibraryPublication`
cannot be found, but it is expected to be present.
Fixes and closes apple/pkl#215
Signed-off-by: Sam Gammon <sam@elide.ventures >
2024-02-21 11:32:47 +00:00
Sam Gammon and Philip K.F. Hölzenspies
fc0f6f1ef0
Add IDEA project icon
...
Adds an icon for the Pkl project which is used in IDEA's "New UI"
when opening Pkl
2024-02-21 11:31:22 +00:00
Islon Scherer and GitHub
611ab3b55c
make reflected values renderable ( #170 )
2024-02-21 09:57:08 +01:00
1cfcc5ec38
Fix incorrect filename in tutorial
...
The referenced filename should be `ispklTutorialPart3.pkl`, not `pklTutorial.pkl`.
Also, changes dates from 2023 to 2024
Co-authored-by: grant-abbott <gaabbott@apple.com >
2024-02-20 21:09:08 -08:00
Manuel Blanco and GitHub
dd49236e00
Breaking: add private final modifier to InvalidMappingException fields. ( #218 )
...
This makes the class more closely follow Java conventions.
2024-02-20 21:04:25 -08:00
translatenix and GitHub
6175d16d6a
Update Gradle syntax in docs ( #210 )
...
Replace the legacy "compile" scope with "implementation".
This matches Maven Central's recommended syntax:
https://central.sonatype.com/artifact/org.pkl-lang/pkl-core
2024-02-20 21:02:45 -08:00
translatenix and GitHub
91367ed065
Fix unnecessary temp path resolution in PackageResolvers ( #219 )
...
The only call site already resolved the path against tmpDir.
2024-02-20 20:47:28 -08:00
translatenix and GitHub
ffc629f28f
Fix concurrency bug in PackageResolvers ( #220 )
...
Access to field "isClosed" must be guarded.
2024-02-20 16:46:09 -08:00
translatenix and Philip K.F. Hölzenspies
277f1e0cdb
Mark generated/truffle as generated source dir in IntelliJ
...
This fixes many "unknown symbol" errors in Java source files.
2024-02-20 15:18:39 +00:00
translatenix and GitHub
50a006b1b5
Simplify code in ResourceReaders ( #175 )
2024-02-19 13:48:56 +01:00
Lily Ballard and GitHub
bbb4d828a0
Update Reserved keywords list in the Language Reference ( #171 )
...
`const` is not reserved, it has a meaning already. And `match` is not a keyword at all.
2024-02-19 13:37:47 +01:00
translatenix and GitHub
3b2feb45cf
Replace some if-statements with if-expressions ( #168 )
2024-02-16 14:41:41 +01:00
Josh B and GitHub
0405db8d80
[pkl-doc] Sort stdlib first on the main page ( #165 )
2024-02-16 14:25:49 +01:00
Kushal Pisavadia and GitHub
3d1db25864
Fix name resolution in typealias with constraint ( #144 )
...
The body of a typealias gets inlined into wherever the typealias
is used. This fixes a bug where the references in the typealias body can
resolve to the wrong value.
2024-02-15 13:28:10 -08:00
translatenix and GitHub
1c29287344
Fix usage of wrong lock object ( #163 )
...
This changes the lock object to `lock`, which every other method is locking on.
2024-02-15 13:25:43 -08:00
Kushal Pisavadia and GitHub
699cdc623e
Update GraalVM to 22.3.3 (from 22.3.1) ( #156 )
...
This bumps GraalVM's version.
References:
- https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-22.3.3
- https://github.com/oracle/graal/compare/vm-22.3.1...vm-22.3.3
- https://www.graalvm.org/release-notes/22_3/
2024-02-15 09:48:15 -08:00
translatenix and GitHub
810a755702
Fix typo in constructor parameter name ( #162 )
...
Breaking change: changes param name `noTranstive` to `noTransitive`.
2024-02-15 09:35:21 -08:00
translatenix and Philip K.F. Hölzenspies
c3473cc626
Add Gradle task "testNative"
...
Support running native tests with "gw testNative" for consistency with "gw test".
2024-02-14 19:53:40 +00:00
Philip K.F. Hölzenspies
a49526649d
Update docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc
2024-02-13 21:30:18 +00:00
GrantA and Philip K.F. Hölzenspies
1b208f852c
Update docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc
...
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com >
2024-02-13 21:30:18 +00:00
GrantA and Philip K.F. Hölzenspies
1a1d2f9908
Update docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc
...
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com >
2024-02-13 21:30:18 +00:00
grant-abbott and Philip K.F. Hölzenspies
0b680be32b
Addressing documentation discrepancies from pkl examples.
2024-02-13 21:30:18 +00:00
Hoxell and Philip K.F. Hölzenspies
f2470f3e85
Apply suggested update to note on amending types
2024-02-13 21:16:06 +00:00
Freddy and Philip K.F. Hölzenspies
7d9603afd7
Update docs/modules/language-tutorial/pages/02_filling_out_a_template.adoc
...
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com >
2024-02-13 21:16:06 +00:00
Hoxell and Philip K.F. Hölzenspies
8c254a9976
Introduce Typed objects before referring to them
...
Currently, typed objects are only briefly mentioned in the sentence
stating that (typed) objects cannot be amended with new properties, only
existing ones. This is unnecessarily confusing since all examples up
until that point have been concerned with dynamic objects. Since the
tutorial goes on to amend a dynamic object with a new property in the
next section, a reader who isn't yet aware there are two types of
objects might be confused by what seems to be a contradiction.
2024-02-13 21:16:06 +00:00
Les Hill and Philip K.F. Hölzenspies
14dec716cf
Add details to show amending working when using modules
...
Running through the tutorial, the amending was stated in the tutorial text but not visible in the tutorial output since `parrot.pkl` was replacing all the members of `pigeon.pkl`.
2024-02-13 20:56:17 +00:00
Philip K.F. Hölzenspies
aa98123c93
Update pkl-core/src/test/kotlin/org/pkl/core/LanguageSnippetTestsEngine.kt
2024-02-13 20:53:29 +00:00
translatenix and Philip K.F. Hölzenspies
da597d838d
Don't run JUnit tests for non-existing native executables
...
This allows to "Run all Tests" in IntelliJ without getting lots of test errors because "pkl-alpine-linux-amd64" etc. doesn't exist.
2024-02-13 20:53:29 +00:00