Commit Graph
60 Commits
Author SHA1 Message Date
Islon Scherer bfac0d66ed Reject relative package URIs (#1683) 2026-06-17 15:39:03 +02:00
Islon Scherer bfda4cc8c8 Fix forcing of VmValue during error rendering (#1629) 2026-06-01 18:25:33 +02:00
Islon Scherer dbf04f6598 Resolve variables at parse time (#1429)
This replaces `ResolveVariableNode` and `ResolveMethodNode` with their resolution.
When we build the truffle node tree, we determine whether names resolve to:

* lexical scope
* base module
* implicit this

Then, we use this information to directly construct the underlying nodes (`ReadPropertyNode`, `ReadLocalPropertyNode`, etc).

Additionally, `AstBuilder` determines whether the property access must be const or not.

This introduces a `BaseModuleMembers` registry, which gets generated as part of Java compilation.
2026-05-26 14:08:20 -07:00
Islon Scherer d6f35dd49e Fix formatter bugs (#1619) 2026-05-26 19:38:35 +02:00
Islon Scherer 3fbcd463e0 Introduce "minimal" test reporter (#1563) 2026-05-19 17:20:26 +02:00
Islon Scherer 03a641354e Add nullability check to pkl-formatter (#1526) 2026-04-16 08:37:56 -07:00
Islon Scherer 2e0b4a3a97 Fix gradle build issue during spotlessCheck (#1521) 2026-04-15 16:06:14 +02:00
Islon Scherer 1d74e2a869 Move pkl-formatter to Java (#1514) 2026-04-14 16:29:42 +02:00
Islon Scherer bc503d4d60 Make the build work on jdk 25 (#1483)
The old version of googleJavaFormat we were using called some deprecated
function.
2026-03-31 09:38:36 +02:00
Islon Scherer dc5504749a Disable gradle cache for release builds (#1474) 2026-03-26 16:54:10 +01:00
Islon Scherer cac3e483b5 Start next dev iteration 2026-02-26 09:51:27 -08:00
Islon Scherer 4d35f18309 Prepare 0.31.0 release 2026-02-26 09:51:27 -08:00
Islon Scherer 60f628eb36 Fix possible race condition during module and resource reading (#1426) 2026-02-11 11:18:11 +01:00
Islon Scherer 08d8c8ec7a Improve import formatting (#1424) 2026-02-06 17:57:50 +01:00
Islon Scherer f0449c8330 Add flag to turn power assertions on/off (#1419) 2026-02-03 09:35:16 +01:00
Islon Scherer 41cf485ffb Fix bug in parsing of super expression (#1364) 2025-12-12 18:02:48 +01:00
Islon Scherer 6c3683c55e Fix snapshot publishing (#1330) 2025-11-26 09:17:14 +01:00
Islon Scherer ecf2d8ba33 Fix Map formatting (#1312) 2025-11-11 09:37:09 +01:00
Islon Scherer 5030061412 Fix ordering issue in formatter (#1289) 2025-11-03 18:52:38 +01:00
Islon Scherer 4226c21a42 Fix multiline string stability (#1287) 2025-11-03 17:41:43 +01:00
Islon Scherer 50541d9cda Make formatter stable (#1273) 2025-10-31 18:58:22 +01:00
Islon Scherer db800d4521 Fix trailing lambda ending wrap (#1274) 2025-10-30 17:06:09 +01:00
Islon Scherer 9469dd885d Handle trailing commas in types (#1272) 2025-10-30 13:36:56 +01:00
Islon Scherer 7df447924e Coalesce pkl format subcommands into the parent command. (#1263) 2025-10-30 10:08:25 +01:00
Islon Scherer 72874ec34a Get style guide in line with formatter (#1265) 2025-10-29 16:00:05 +01:00
Islon Scherer 28c20a8652 Don't break lines in module name (#1266) 2025-10-29 15:24:08 +01:00
Islon Scherer be0142d46b Add grammar compatibility option to the formatter (#1249) 2025-10-28 13:29:08 +01:00
Islon Scherer f6d3fb1228 Fix let formatting (#1246) 2025-10-21 09:45:27 +02:00
Islon Scherer 618c6243c5 Fix bug in format apply (#1211) 2025-09-19 11:28:40 +02:00
Islon Scherer 222741dccd Fix broken test (#1208) 2025-09-17 13:53:15 -07:00
Islon Scherer fdc501a35c Implement canonical formatter (#1107)
CLI commands also added: `pkl format check` and `pkl format apply`.
2025-09-17 11:12:04 +02:00
Islon Scherer a3cc2f0ea6 Start next dev iteration 2025-07-24 20:06:01 +02:00
Islon Scherer e12c655f5c Prepare 0.29.0 release 2025-07-24 20:06:01 +02:00
Islon Scherer ba82c5c6d6 Only allow shebangs in the beginning of a module (#1126) 2025-07-18 11:18:45 +02:00
Islon Scherer 3a35be6311 Remove ANTLR from the repo (#1114) 2025-07-08 09:43:35 +02:00
Islon Scherer a19e6bf684 Fix doc dependency link (#1078) 2025-05-28 18:08:38 +02:00
Islon Scherer fe2e4aa1a4 Simplify precedence and associativity parsing (#1066) 2025-05-12 14:59:26 +02:00
Islon Scherer aad530b9a8 move parser out of pkl-core (#1024) 2025-03-18 20:23:53 +01:00
Islon Scherer 1cd0549bd6 remove stacking of block comments (#1022) 2025-03-12 18:24:38 +01:00
Islon Scherer d3ba0f9e47 Start next dev iteration 2025-02-26 09:48:20 -08:00
Islon Scherer cc9827f032 remove folders from build executable dir 2025-02-26 09:48:20 -08:00
Islon Scherer d1f7b639a7 change version to 0.28.0 2025-02-26 09:48:20 -08:00
Islon Scherer 2ffd201172 move handling of strings to parser (#962) 2025-02-19 17:19:48 +01:00
Islon Scherer d270829ed3 fix calculation of spans in parser (#957) 2025-02-15 12:11:55 +01:00
b526902bf0 Replace ANTLR with hand-rolled parser (#917)
Co-authored-by: Kushal Pisavadia <kushi.p@gmail.com>
Co-authored-by: Daniel Chao <daniel.h.chao@gmail.com>
2025-02-12 18:11:00 +01:00
Islon SchererandPhilip K.F. Hölzenspies 70aaa6322e Add release notes for 0.27.1 (#840)
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com>
2024-12-06 16:24:49 +01:00
Islon Scherer 1abd174d77 Fix possible stack overflow in Listing/Mapping type checking (#826) 2024-11-22 09:39:52 +01:00
Islon Scherer 8b0118fec5 Store PklProject annotations in the project metadata (#708)
Write annotations to project metadata, and provide them to pkl-doc\

The following annotations have meaning for pkl-doc:
* `@Unlisted`: hide package from documentation site
* `@Deprecated`: add deprecated information
2024-10-24 17:21:58 -07:00
Islon Scherer 93cc3253eb Report error on circular local dependencies (#731)
If a stack overflow is found during project evaluation, present any
circular imports found in the dependency graph.
2024-10-24 16:45:18 -07:00
Islon Scherer e3133f604b Fix property parsing bug in the cli (#596) 2024-07-25 09:27:38 +02:00
Islon Scherer 24cc95abcc Support _ in String[toInt|toIntOrNull|toFloat|toFloatOrNull] (#580)
The logic is the same as the Pkl parser
2024-07-16 19:24:59 +02:00
Islon Scherer 27d8a030b1 Remove hidden modifier from many reflect properties for better equality/rendering (#470) 2024-05-03 11:04:15 +02:00
Islon Scherer 2aa60eaf1f change security file to markdown (#347) 2024-03-20 14:39:51 +01:00
Islon Scherer 8dc258ef7d fix bug with for generator variables in mixin (#297) 2024-03-07 20:47:21 +01:00
Islon Scherer 9c3a761cfa add test for checking out of sync snippets (#240) 2024-03-01 16:44:36 +01:00
Islon Scherer 90dedb7837 remove file with \ on the name as windows does not support it (#251) 2024-02-26 15:03:46 +01:00
Islon Scherer c652bbe5cd fix typo in doc for Listing default (#224) 2024-02-21 18:56:11 +01:00
Islon Scherer 611ab3b55c make reflected values renderable (#170) 2024-02-21 09:57:08 +01:00
Islon Scherer 8e6ddfb9b7 remove duplicate publishing of pkl-cli-java (#98) 2024-02-08 18:56:27 +01:00
Islon Scherer 3f8fae4873 fix wrong stdlib doc links (#74) 2024-02-06 13:01:45 +01:00