Michael Camilleri
ee46315e1d
Improve messages on errors when loading the bundle script
2025-11-21 22:45:36 +09:00
Michael Camilleri
8241d9cbb4
Revert support for bundles without an info file
2025-10-27 09:32:38 +09:00
Michael Camilleri
6bd02bb5b6
Confirm necessary files during bundle installation
2025-10-26 06:53:27 +09:00
Ian Henry
f1ec0cc48b
fix try macro hygiene
...
Allow re-using the same symbol for the fiber and error. This allows you to
write code like (try (print "hi") ([_ _] (print "oh no"))), fixing a regression
introduced in #1605 .
2025-10-24 21:33:15 -07:00
sogaiu
1018cb9cca
Support :has-exe as well
...
This is a companion change to spork's issue
As implemented, :has-been-script didn't quite
mean what was intended. :has-exe should
be an improvement.
To prevent breakage, both :has-bin-script and
:has-exe should be supported for a while in
both spork and janet. Eventually
:has-bin-script can be retired.
2025-10-17 22:36:45 +09:00
jpaquim
511c1f4b0a
Refactor with image-only variable
2025-10-11 16:32:24 +01:00
jpaquim
c29195596e
Adapt generated file comments to build type
2025-10-11 16:29:14 +01:00
Calvin Rose
db7f741dad
Extend environment variable behavior to NO_COLOR and JANET_PROFILE
...
Env vars set to empty strings should behave the same as unset variables.
2025-10-04 13:12:29 -05:00
Calvin Rose
c901edbfb9
Interpret an empty JANET_PATH as unset
...
This is a common idiom with environment variables, where
a variable set to the empty string should behave the same as
an unset variable.
2025-10-04 10:43:55 -05:00
sogaiu
9b99fc44b9
Revert some bundle/install changes
2025-09-29 23:45:53 +09:00
Michael Camilleri
f393531335
Add bundle/add-manpage
2025-09-28 19:27:53 -05:00
Michael Camilleri
6b8e5249ca
Change :dependencies hook to :postdeps
2025-09-28 19:27:53 -05:00
Michael Camilleri
6a96b615f0
Tidy up bundle/ docstrings
2025-09-28 19:27:53 -05:00
Joshua Krusell
aaf8ac2217
Tweak kvs docstring
2025-09-23 11:28:06 +02:00
sogaiu
dd59d84b51
Tweak some flycheck-related docstrings
2025-09-21 14:09:35 +09:00
Calvin Rose
06873fbf0b
Update CHANGELOG.md
2025-09-20 14:30:10 -05:00
Calvin Rose
1ff26d702a
Refactor flycheck to allow customization. Address #1638
...
Bindings can define their own flycheckers in a simple fashion.
2025-09-20 10:32:16 -05:00
Joshua Krusell
c5ba3c0513
Small spelling fixes
2025-08-31 12:14:51 +02:00
Isaac Freund
f974c0667b
net/server: improve error for truthy handler and type :datagram
...
Since it is invalid to call accept on a datagram socket, net/server
always errors if handler is truthy and type is :datagram.
Add an assert to give a better error message in this case and clarify
the documentation.
References: https://github.com/janet-lang/janet/issues/1614
2025-07-18 09:57:17 +02:00
sarna
2af3f21d69
Validate optional args to import
2025-07-13 16:31:12 +02:00
sarna
c4e3fa03fa
Clarify :fresh usage in import
2025-07-12 14:38:22 +02:00
Michael Camilleri
8d2a9c1148
Allow :dependencies value in info.jdn to contain dictionaries for complex dependency coordinates
2025-07-06 05:45:41 +09:00
Michael Camilleri
f1d47bd05a
Use :dependencies argument in bundle/install for dependency checking
2025-07-02 23:38:36 +09:00
iacore
e815c91e85
Patch try to accept (try body ([] catch-body))
2025-06-24 06:18:34 +00:00
sogaiu
877967966a
Remove some underline bits from doc-format
2025-05-21 18:38:09 +09:00
Calvin Rose
56c5a0ca09
Address #1591 - remove _ behavior of docstring format
2025-05-20 19:17:32 -05:00
sogaiu
4b6d5e5671
Tweak docstrings for better handling
2025-05-02 18:54:18 +09:00
sogaiu
d493eaf485
Fix mapcat and keep docstrings
2025-04-06 20:48:52 +09:00
Calvin Rose
a9ff8b388f
Add os/getpid
2025-04-05 16:20:17 -05:00
sogaiu
e2cc8f2965
Tweak doc for mapcat, count, keep, all, some
2025-04-05 10:42:04 +09:00
Calvin Rose
363e32d455
Adopt docstring from #1574
2025-04-03 20:52:40 -05:00
Calvin Rose
cf714ed591
Notify user when script is installed during a bundle installation.
...
Lets user know what to add to PATH.
2025-04-01 18:52:23 -05:00
Calvin Rose
88984f7ffb
Add bundle/replace
...
Slight generalization of bundle/reinstall to allow inplace upgrades
of a bundle without reinstalling all dependent bundles as well.
2025-03-17 17:58:40 -05:00
Calvin Rose
182170b3be
Make installed manifests nicer to work with.
2025-03-16 20:39:16 -05:00
Calvin Rose
3583d4c92f
Fix defdyn in flychecking.
2025-03-08 20:03:02 -06:00
Calvin Rose
aa9efee868
Expose bundle operations in the CLI.
...
Bundle installation is a fairly natural command on the command line.
2025-03-03 08:14:09 -06:00
Calvin Rose
2e6001316a
Work on bug #1556
2025-02-16 09:09:33 -06:00
Calvin Rose
9a892363a3
Address issue #1558
...
Don't attempt SO_REUSEPORT on unix domain sockets since it doesn't make
sense and may cause a failure to bind without extra effort by the
programmer.
2025-02-07 21:05:07 -06:00
sogaiu
1b6cc023a5
Tweak apply and short-fn docstrings
2025-02-06 22:35:59 +09:00
Calvin Rose
1b278fc657
Update reduce2 documentation to fix issue #1545
2025-02-01 17:31:55 -06:00
sogaiu
753911fe2d
Tweak *exit-value* doc - address #1537
2024-12-27 16:02:45 +09:00
Calvin Rose
746ced5501
Revert behavior of deep= on mutable keys.
...
Mutable keys are a minefield for comparisons, as resolving
equality require re-implementing a lot of the internal structures, as
well as dealing with multiple mutable keys that are in the same
equivalency class by deep=.
Simplifying the implementation to not resole mutable keys is much
simpler, faster, and has the benefit that deep= and deep-not= do not
need to allocate.
2024-12-21 09:03:01 -06:00
Calvin Rose
1b49934e4f
Allow table/to-struct to take a prototype.
...
Use this prototype struct in freeze.
2024-12-19 19:41:19 -06:00
Calvin Rose
682f0f584f
freeze with mutable keys should be determinsic help address #1535
2024-12-19 19:31:01 -06:00
Calvin Rose
7f745a34c3
Allow for mutable keys correctly in deep=
2024-12-19 18:20:05 -06:00
sogaiu
a7d424bc81
Remove unused var pstatus
2024-11-25 12:39:53 +09:00
Calvin Rose
2bceba4a7a
Assertf with no arguments does not make sense.
2024-11-24 19:14:18 -06:00
sogaiu
abad9d7db9
Add assertf and use in boot.janet. Address #1516
2024-10-30 17:43:00 +09:00
Calvin Rose
99f0af92bd
Fix bundle/install with :check true installation failure.
2024-10-05 12:34:10 -05:00
Calvin Rose
71d81b14a2
Setting a profile will mess with imports.
2024-10-05 12:13:44 -05:00