1ae55c2946
Fixes test 'Basic sketch › code pane closed at start'
...
Problem was, the getNodeFromPath call might not actually find a callExpressionKw,
it might find a callExpression. So the `giveSketchFnCallTag` thought
it was modifying a kwargs call, but it was actually modifying a positional
call.
This meant it tried to push a labeled argument in, rather than a normal
arg, and a lot of other problems. Fixed by doing runtime typechecking.
2025-01-28 17:49:52 -06:00
0400f33fc3
Merge branch 'main' into achalmers/kw-fn-sketches
2025-01-28 17:11:09 -06:00
734e590e09
Merge branch 'main' into achalmers/kw-fn-sketches
2025-01-28 16:37:09 -06:00
69fec37107
prepare change in fillet api ( #5168 )
...
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more snaps
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-01-28 22:22:19 +00:00
2a5433a2a7
Fix edge treatment tests
2025-01-28 15:19:03 -06:00
8ca8c49cc3
Fix to not error when using imported whole modules ( #5161 )
...
* Fix to not error when using imported whole modules
* Add TODO about adding a warning
2025-01-28 20:17:27 +00:00
b25fc302fd
Support using import statements for non-KCL files ( #5122 )
...
* Improve checking of import paths
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Import path kinds in AST
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Use import statement for foreign files
Signed-off-by: Nick Cameron <nrc@ncameron.org >
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-01-29 08:28:32 +13:00
648b37c1dd
Bump clap from 4.5.23 to 4.5.27 in /src/wasm-lib ( #5152 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.23 to 4.5.27.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.23...clap_complete-v4.5.27 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v0.38.0
nightly-v25.1.28
2025-01-27 21:29:09 +00:00
18e5da5ca4
bump modeling commands ( #5145 )
...
* add length unit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new images
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-01-27 11:36:00 -08:00
46524cda10
Bump vite from 5.4.11 to 5.4.14 in /packages/codemirror-lang-kcl ( #5128 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 5.4.11 to 5.4.14.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.14/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.4.14/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-27 17:22:19 +00:00
4585671a5d
Refactor getNodePathFromSourceRange ( #5139 )
...
* Refactor getNodePathFromSourceRange
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
* Trigger CI
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
* Trigger CI
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
* Trigger CI
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
* A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
* Trigger CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-27 08:24:28 -05:00
82d6446e5e
Empty commit to unstick CI
2025-01-27 17:00:33 +13:00
e34a4db077
A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
2025-01-27 17:00:33 +13:00
665ec8a6b5
simple test fixups
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-01-27 17:00:33 +13:00
ef8131f33d
Changing stdlib changed the order of autocompletes
...
There's no longer a `lineTo`, so there's only one item before `xLine`
not two like previously. So, the instructions for how to select the
autocompletion for xLine need to be updated (one fewer down arrow key
press is needed)
2025-01-27 08:58:47 +13:00
b7ec0eeb6e
Fix test expectation
2025-01-27 08:58:47 +13:00
43c12e523b
Fix: Update expected hover text for 'line' fn
2025-01-27 08:58:47 +13:00
b74216378d
Fix more missing tags from bad regex
2025-01-27 08:58:47 +13:00
7031b6f0a7
Update sweep test KCL
2025-01-27 08:58:47 +13:00
e1ce83a72e
Fix: Restore more tags which my bad regex mistakenly erased
...
Only 18 failing now
2025-01-27 08:58:47 +13:00
f6c335181e
Fix pathToNode for new extrude nodes
...
This means there's only 26 failing (locally on my Macbook)
2025-01-27 08:58:47 +13:00
25d9c19763
Migrate Extrude AST mod from XState action to actor
2025-01-27 08:57:36 +13:00
871890415c
Rectangle tool should use default unlabeled, fix broken regex find-replace
2025-01-27 08:57:36 +13:00
7f9526bb81
Fix revolve
2025-01-27 08:57:36 +13:00
aafa1a398d
Fix shell
2025-01-27 08:57:36 +13:00
fda7acf0ff
Fix many bad regex find-replaces
...
I wrote a regex find-and-replace which converted `line` calls from
positional to keyword calls. But it was accidentally applied to more
places than it should be, for example, angledLine, xLine and yLine calls.
Fixes this.
2025-01-27 08:57:36 +13:00
bf306e774d
34 failing
2025-01-27 08:57:36 +13:00
2abd516db4
Same as previous
2025-01-27 08:57:36 +13:00
e26d7e741f
Same as previous
2025-01-27 08:57:36 +13:00
91df6b9511
Style fix: skip % when creating new line calls
...
The unlabeled arg is automatically set to % anyway.
2025-01-27 08:57:36 +13:00
3cecb99aa1
Fix: mutateKwArg was appending not overwriting args
2025-01-27 08:57:36 +13:00
e8961d4190
Fix 'remove constraint' on kw arg calls
2025-01-27 08:57:36 +13:00
da3788afba
Fix: make Toolbar components support CallExpressionKw
2025-01-27 08:57:36 +13:00
12ed315244
A snapshot a day keeps the bugs away! 📷 🐛 (OS: namespace-profile-ubuntu-8-cores)
2025-01-27 08:57:33 +13:00
9c35c06e58
Rebasing fixups
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-01-27 08:56:37 +13:00
a69da088cd
Some line fixes
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-01-27 08:56:37 +13:00
38e59df85c
Fix some uses of close and lineTo
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-01-27 08:56:37 +13:00
8bac097743
Fix the 'constrain length' test
2025-01-27 08:56:37 +13:00
09df8a734a
Fix some uses of extrude
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-01-27 08:56:37 +13:00
da2072e005
Fix drafting lines
2025-01-27 08:56:37 +13:00
cb4a47705c
Fix point-and-click sketch mode to use kwargs
2025-01-27 08:56:37 +13:00
1227b38e12
Update e2e test code with new syntax
2025-01-27 08:56:37 +13:00
8e343a254f
Remove expect from application code
2025-01-27 08:56:37 +13:00
2559309f85
Update snapshots
2025-01-27 08:56:37 +13:00
26f01bce76
fmt
2025-01-27 08:56:37 +13:00
729a34efed
Fixed more e2e tests
2025-01-27 08:56:37 +13:00
5191013db2
Correct sourceRange expectations
2025-01-27 08:56:37 +13:00
d653b852dd
Add back a missing import
2025-01-27 08:56:37 +13:00
f3a2922ba0
Remove .only and fix resulting tests
2025-01-27 08:56:37 +13:00
ce8aeab508
Start fixing playwright tests
2025-01-27 08:56:37 +13:00