Michiel Borkent
da31e9c61c
fix #1144 : cannot create multidimensional arrays ( #1145 )
2022-01-16 12:42:10 +01:00
Michiel Borkent
061bc528ae
this test wasn't supposed to be in master!
2022-01-05 20:21:19 +01:00
Michiel Borkent
d050e7d58d
deps.clj: update to clojure CLI 1.10.3.1058
2022-01-05 20:11:23 +01:00
Michiel Borkent
34f9997df4
[ #1123 , #1124 ] Do not require java for bb tasks without deps
2021-12-30 16:32:15 +01:00
Michiel Borkent
ddf03c50ae
[ #1116 ] Missing error message when exception happens in REPL print
2021-12-29 16:10:30 +01:00
Michiel Borkent
1912b921df
Fixes for issue reported by @thiagokokada
2021-12-27 21:31:13 +01:00
Michiel Borkent
fb7f984389
[ #1110 ] Load tasks and deps from other bb.edn file ( #1117 )
...
Co-authored-by: Bob <highpressurecarsalesman@gmail.com>
2021-12-26 17:26:35 +01:00
Michiel Borkent
93fb4379ff
[ #584 , #1037 ] Uberscript in bb ( #1115 )
2021-12-23 21:23:11 +01:00
Michiel Borkent
86c67af49c
[ #1105 ] Include native elements in printed stacktrace ( #1113 )
2021-12-22 13:04:29 +01:00
Michiel Borkent
73d466e7d6
Fix SCI#649 aget reflection ( #1100 )
...
Fix issue with aget reported in babashka/sci#649 by @MrEbbinghaus
2021-12-09 22:38:38 +01:00
Michiel Borkent
2079f0a554
Add print-deps test
2021-11-29 23:42:36 +01:00
Michiel Borkent
4566905a5c
Add compatibility with hato and clj-http-lite insecure feature ( #1080 )
...
Added classes:
- java.net.CookiePolicy
- java.net.http.HttpTimeoutException
- javax.net.ssl.HostnameVerifier
- javax.net.ssl.HttpsURLConnection
- javax.net.ssl.KeyManagerFactory
- javax.net.ssl.SSLSession
- javax.net.ssl.TrustManagerFactory
- java.security.KeyStore
- java.util.zip.Inflater
- java.util.zip.ZipException
2021-11-27 15:58:24 +01:00
Michiel Borkent
e419c569a8
Support satisfies? on protocol values ( #1076 )
2021-11-24 17:38:38 +01:00
Michiel Borkent
a95c51998f
limit space of InetAddress4/6
2021-11-23 11:34:30 +01:00
Michael Glaesemann
5940b95cd2
Add javax.crypto classes necessary for calculating hmac shas. ( #1066 )
...
* Add javax.crypto classes necessary for calculating hmac shas.
* Add hmac-256-sha test for javax.crypto.
2021-11-18 08:49:59 +01:00
Michiel Borkent
948c38c035
Add support for BasicFileAttributes
2021-11-13 11:05:21 +01:00
Michiel Borkent
321c47297d
[ #1061 ] Calling close on DirectoryStream fails
2021-11-13 10:38:21 +01:00
Michiel Borkent
2bb7499fd5
[ #1055 ] Segfault when reifying FileVisitor with visitFileFailed
2021-11-07 12:05:16 +01:00
Michiel Borkent
19415f6363
Fix remaining args when invoking -m
2021-11-02 13:46:51 +01:00
Michiel Borkent
11379deca1
[ #999 ] Support Object.toString override on defrecords ( #1050 )
2021-11-02 10:29:52 +01:00
Bob
5a80e1603e
- correct --init to be a global option ( #1036 )
...
- test --init before subcommands and task names
2021-10-18 15:39:08 +02:00
Bob
bf3b6d2dca
add support for --init as a file to be loaded before evaluation actions ( #1033 )
2021-10-17 10:44:31 +02:00
Michiel Borkent
ce6d4aaf34
Fix test
2021-10-08 14:43:57 +02:00
Bob
d4ac7365e0
[ #1015 ] print locals only when debug option is enabled ( #1021 )
2021-09-29 09:24:51 +02:00
Bob
7df81f1273
make core.async and rewrite-clj integral ( #1014 )
...
* make core.async integral (not a feature)
tasks (in particular, parallel tasks) require core.async
* make rewrite_clj integral (not a feature)
* cleanup mistakes
2021-09-23 18:15:01 +02:00
Bob
407bd74a00
[ #1004 ] XML edn reading and populating *data-readers* for feature deps ( #1012 )
...
* add XML edn reading and make *data-readers* closer to Clojure
- initial value of *data-readers*: empty map
- add XML readers to feature-flagged edn-readers for parsing *input*
- add edn-readers to *data-readers* to emulate data_readers.clj handling
* add YAML round-trip testing
* set root val of *data-readers* at top level
2021-09-20 18:31:57 +02:00
Michiel Borkent
0f723a1e7c
Fix aarch64 test ( #1007 )
2021-09-11 18:13:12 +02:00
Michiel Borkent
a43e75ffd6
Add PipedInput/OutputStream ( #1001 )
2021-09-07 11:30:52 +02:00
Michiel Borkent
e915e14612
Upgrade deps.clj, fix flaky test
2021-09-01 17:34:19 +02:00
Michiel Borkent
c832819a76
Fix test
2021-09-01 13:45:23 +02:00
Michiel Borkent
cddd4ce581
[ #995 ] Add clojure.data.xml/alias-uri
2021-09-01 13:34:47 +02:00
Michiel Borkent
23ba52a813
[ #979 ] More java net http tests and tweaks ( #996 )
2021-09-01 11:36:24 +02:00
Michael Glaesemann
125e227976
Java http insecure context ( #994 )
...
* Add support for creating insecure context.
* Add BABASHKA_FEATURE_JAVA_NET_HTTP flag.
* Clean up java.net.http tests
2021-08-31 17:37:11 +02:00
Michiel Borkent
b71278cc68
[ #979 ] JDK 11 Http Client
...
Co-authored-by: Michael Glaesemann <grzm@seespotcode.net>
2021-08-31 11:13:11 +02:00
Michiel Borkent
cebdd19c00
Upgrade to GraalVM 21.2.0
2021-08-30 20:16:18 +02:00
Bob
242c3d442f
Logging feature flag and tools.logging.readable ( #981 ) ( #987 )
...
* put tools.logging behind a feature flag
* add tools.logging.readable
- move logging namespace to feature folder
- add logging.readable namespace
- add tests for logging.readable
* cleanup logging changes
- add logging env var to compile script
- remove unconditional require of logging namespace
* move old-config capture to before alter
* remove feature check from logging tests
2021-08-29 23:43:53 +02:00
Bob
4ee84947c9
use tagged-literal for unknown EDN tags when creating *input* ( #975 ) ( #976 )
...
* use tagged-literal as default for unknown tags when using -I (or --stream without -i)
* use tagged-literal as default for unknown tags
2021-08-25 17:57:17 +02:00
Bob
a85d593767
make the REPL requires available to command-line scripts ( #972 )
2021-08-22 23:20:41 +02:00
Michiel Borkent
d4f5e57866
[ #959 ] Add *print-readably* and *flush-on-newline*
2021-08-16 22:57:59 +02:00
Bob
bb57d220d0
test that var metadata matches containing ns ( #967 )
...
* - change namespace on 'quick-check' to match clojure version
- add test for var meta->namespace alignment
* - add ns to with-transaction macro
2021-08-08 21:23:58 +02:00
Bob
116d73f0b0
- add :ns meta to more vars ( #966 )
...
- add a couple more tests for Coercions
2021-08-08 15:38:56 +02:00
Bob
ffd66d514a
add META-INF resource to windows compilation (to mirror linux compilation) ( fixes #963 ) ( #964 )
2021-08-04 14:20:59 +02:00
Michiel Borkent
bda2017d0d
Skip print-deps-test on Windows for now
2021-08-03 10:36:56 +02:00
Michiel Borkent
be29d791a8
[ #733 ] print-deps tests
2021-08-02 23:34:38 +02:00
Michiel Borkent
3f72507f77
[ #957 ] Repair ns meta
2021-07-31 14:44:26 +02:00
Michiel Borkent
f5125a6f37
nREPL server: get rid of SCI internals
2021-07-27 13:46:53 +02:00
Michiel Borkent
8387109166
Fix flaky test on Windows
2021-07-23 11:51:39 +02:00
Michiel Borkent
294cfe403c
Fix flaky bb-edn test
2021-07-23 11:15:03 +02:00
Bob
2863dce99c
add windows-specific clojure test ( #950 )
2021-07-22 12:34:07 +02:00
Michiel Borkent
7b76eaf956
Disable task test for Windows
2021-07-15 13:16:38 +02:00
Michiel Borkent
3ec7ced8cd
Fix Windows test
2021-07-14 16:03:15 +02:00
Michiel Borkent
a8eea0dfd7
Fix Windows test
2021-07-14 14:59:49 +02:00
Michiel Borkent
36ab5ab299
[ #935 ] Fix logging test for windows
2021-07-14 14:25:32 +02:00
Michiel Borkent
3d45f62dd2
[ #935 ] Add logging tests
2021-07-14 12:43:12 +02:00
Michiel Borkent
51b1fb58d2
Fix tests
2021-07-13 12:52:21 +02:00
Michiel Borkent
5b459da10a
Fix tests
2021-07-13 11:47:35 +02:00
Michiel Borkent
588cda9eac
[ #934 ] Environment variables not picked up by tools.deps
2021-07-13 11:31:36 +02:00
Bob
b6e65c08a8
add cl-format tests for nil and Writer args ( #931 )
2021-07-10 21:39:23 +02:00
Michiel Borkent
02237c47ce
Fix windows tests
2021-07-10 14:00:14 +02:00
Michiel Borkent
d47290e996
[#922,#927] pprint/formatter-out + cl-format with-out-str support ( #930 )
2021-07-10 11:32:21 +02:00
Michiel Borkent
277029caae
[ #914 ] Fix failing test
2021-07-05 18:26:29 +02:00
Michiel Borkent
2dd18e7cc6
Failing test, fix later
2021-07-05 00:05:48 +02:00
Michiel Borkent
432680b2f3
[ #914 ] Fix cache dir
2021-07-04 22:18:16 +02:00
Bob
16911a54f0
add more windows testing ( #902 )
...
- add default test selector to skip "windows only" tests
- in cases where the differences between *nix shell and windows shell
make the test very messy, add a separate "windows only" test
- make more tests work on Windows
2021-06-24 22:34:57 +02:00
Michiel Borkent
e143eb1cb1
[ #899 ] Fix JVM test
2021-06-20 14:26:40 +02:00
Michiel Borkent
af754d013f
[ #899 ] (read-line) is buggy in REPL
2021-06-20 13:32:33 +02:00
Bob
35e2cd9d05
make tests run on windows as the default ( #235 ) ( #898 )
...
* make tests run on windows as the default
- change from selecting tests to run to selecting tests to skip (remove all :windows tags, add
:skip-windows tag to tests that don't currently work on windows)
- handfuls of calls to `normalize` and `escape-file-paths` to handle platform differences
- split `task-test` to make most of the tests run on windows, and exclude just a couple of Unix-y tests
* make a binding name clearer
* skip nrepl-server-test on Windows
- test fails on CI, so disabling it for now
* unset bb environment vars after running tests
* unset bb environment var after running release-artifact
BABASHKA_EDN being set can interfere with some tests, so unset it before running the
native tests
* skip uberjar test on Windows
uberjar-test's 'throw on empty classpath' test failing on Windows native
(but passes on JVM) - skip it for now
2021-06-20 09:23:58 +02:00
Bob
ce4702318a
add more windows testing ( #894 )
...
- just handling line endings and escaping backslashes in file paths
2021-06-18 23:51:46 +02:00
Bob
e056cb96aa
add more windows testing ( #891 )
...
- add `normalize` call to `bb-native` output
- add `escape-file-paths` function to double up backslashes for Windows paths
passed as strings
- add :windows selector to about 10 more tests, along with various small changes
for Windows testing
- update test.bat to more closely mirror the Linux/Mac test script
2021-06-17 19:43:43 +02:00
Bob
63619fd66b
add windows selector to a couple of tests ( #235 ) ( #888 )
2021-06-16 16:40:02 +02:00
Michiel Borkent
90ac55d588
Start porting Windows tests ( #235 ) ( #887 )
2021-06-16 11:01:17 +02:00
Michiel Borkent
35103f40ef
Upgrade to graal 21.1, fixes #884 ( #885 )
2021-06-13 21:53:07 +02:00
Michiel Borkent
3764b52f3a
Implement custom deref outside of sci
2021-06-03 00:25:57 +02:00
Michiel Borkent
42bf790068
[ #872 ] Add java.lang.ProcessHandle$Info ( #873 )
...
And java.util.Optional
2021-05-31 00:06:21 +02:00
Michiel Borkent
ac576bd6e7
[ #865 ] Stable namespace
2021-05-30 11:36:30 +02:00
Michiel Borkent
94fc8298e6
[ #865 ] Use print-meta when emitting tasks
2021-05-30 11:27:11 +02:00
rng-dynamics
512a6f2220
feat: print data of uncaught ExceptionInfo to output ( #854 )
...
* feat: print data of uncaught ExceptionInfo to output
* println -> prn, add tests
2021-05-20 22:49:58 +02:00
Michiel Borkent
a942befc65
Add more agent vars ( #857 )
2021-05-19 14:00:48 +02:00
Michiel Borkent
9f48048472
[ #847 ] Better error handling for parallel tasks (2)
2021-05-18 13:19:09 +02:00
Michiel Borkent
e18f4302a8
[ #847 ] Better error handling for parallel tasks
2021-05-18 12:39:21 +02:00
Michiel Borkent
6aca41a48a
[ #829 ] Allow thread-first in combination with shell
2021-05-13 13:10:56 +02:00
Michiel Borkent
7462d86afd
[ #837 ] Add babashka.task System property
2021-05-13 11:53:28 +02:00
Michiel Borkent
5014012bd6
[ #836 ] Add :error-fn option to shell
2021-05-13 11:45:27 +02:00
Michiel Borkent
9a8bf7d0c3
[ #825 ] Handle uneval-ed expressions in bb tasks
2021-05-08 11:02:05 +02:00
Michiel Borkent
e0e3aa422e
[ #770 ] Add test
2021-05-03 11:06:32 +02:00
Michiel Borkent
d0d18f9837
Tasks: integrate in doc subcommand
2021-05-02 20:48:40 +02:00
Michiel Borkent
12c29eb308
Tasks: detect cycles
2021-05-02 14:51:51 +02:00
Michiel Borkent
fb3d24b23c
Tasks: better error msg for unresolved task
2021-05-02 14:31:57 +02:00
Michiel Borkent
87b9d93911
[ #622 ] with-precision
2021-05-02 11:41:57 +02:00
Michiel Borkent
6d540e2f06
Rename --verbose to --debug
2021-05-02 11:16:00 +02:00
Michiel Borkent
d1bbf844de
Add --verbose to global opts
2021-05-02 11:00:44 +02:00
Michiel Borkent
3bcc392760
Tasks: add explicit run function
2021-04-30 11:55:24 +02:00
Michiel Borkent
06be620d71
[ #805 ] Support :enter and :leave hooks + current-task fn ( #813 )
2021-04-30 11:11:12 +02:00
Michiel Borkent
e26f26c1ba
[ #811 ] Fix --classpath when no additional args are passed
2021-04-28 20:14:39 +02:00
Michiel Borkent
66867e1ddb
[ #807 ] Ignore local and global deps.edn
2021-04-28 12:09:05 +02:00
Michiel Borkent
f2ec857c66
Add min-version tests
2021-04-28 11:26:49 +02:00
Michiel Borkent
514fc84cde
[ #810 ] Support :extra-paths and :extra-deps in tasks
2021-04-27 23:32:37 +02:00
Michiel Borkent
d7075ffad0
Tasks: fix listing of tasks
2021-04-26 10:59:05 +02:00
Michiel Borkent
6a4dd5cd26
Fix test
2021-04-25 23:31:39 +02:00
Michiel Borkent
c8c49f42fe
Fix tests
2021-04-25 23:28:53 +02:00
Michiel Borkent
6da8fc99b8
Tasks: sort by occurence
2021-04-25 23:10:48 +02:00
Michiel Borkent
c5d61996d4
Tasks: support :continue in shell fn
2021-04-25 13:34:26 +02:00
Michiel Borkent
21bb768e9f
Tasks: fix execution of fully qualified symbol
2021-04-25 11:42:11 +02:00
Michiel Borkent
647ef40250
Tasks: accept alias in fully qualified namespace
2021-04-25 11:27:34 +02:00
Michiel Borkent
f7e881479b
Tasks: support :continue in shell
2021-04-25 00:24:33 +02:00
Michiel Borkent
12cb5d637c
[ #802 ] Support resolving docstring from function
2021-04-24 23:19:37 +02:00
Michiel Borkent
5ff9d8328a
[ #796 ] Support map literal in task
2021-04-24 13:05:27 +02:00
Michiel Borkent
3e9ddc55bb
[ #663 ] :min-bb-version
2021-04-24 12:54:41 +02:00
Michiel Borkent
3c6cf3f37e
Fix test
2021-04-24 12:05:15 +02:00
Michiel Borkent
6806398722
[ #800 ] Fix task priority
2021-04-24 11:51:03 +02:00
Michiel Borkent
657a88c348
[ #780 ] Ignore empty classpath entries
2021-04-22 12:33:17 +02:00
Michiel Borkent
15e71b0807
[ #780 ] Fix uberjar CLI parsing and throw when no classpath is provided
2021-04-22 11:56:13 +02:00
Michiel Borkent
f3630d2fb3
[ #790 ] Add java.security.SecureRandom
2021-04-15 00:04:19 +02:00
Michiel Borkent
e0b1c1b01e
[ #784 ] Support binf.cljc library by adding ByteBuffer and Charset-related classes ( #789 )
2021-04-14 23:27:31 +02:00
Michiel Borkent
0ecee5bf94
[ #785 ] :requires option
2021-04-12 22:55:10 +02:00
Michiel Borkent
00b33dab4d
CHANGELOG
2021-04-12 09:47:28 +02:00
Michiel Borkent
bd0495f88b
tasks output test
2021-04-11 12:49:42 +02:00
Michiel Borkent
45109685e1
Get rid of :when for now
2021-04-10 16:50:20 +02:00
Michiel Borkent
6087b94d32
Clojure test
2021-04-10 16:12:30 +02:00
Michiel Borkent
36abd4152a
List tasks test
2021-04-10 16:07:06 +02:00
Michiel Borkent
0ae56e7098
Fix bug in topological sorting
2021-04-10 15:57:03 +02:00
Michiel Borkent
cf55681114
Task tests
2021-04-10 15:16:12 +02:00
Michiel Borkent
1020a8c335
[ #788 ] First cut of bb tasks
2021-04-10 14:42:58 +02:00
Andrea Richiardi
a0ace650f1
[ #776 ] Use get-classpath when build an uberjar
...
It was previously using the classpath coming from the parameters/env. We need to use
cp/get-classpath for taking into consideration the classpath coming from bb.edn.
2021-04-07 10:21:09 +02:00
Michiel Borkent
1870e2729e
[ #769 ] rewrite-clj support
2021-04-04 16:22:45 +02:00
Michiel Borkent
6a7baf2a90
v0.3.1
2021-03-30 18:06:56 +02:00
Michiel Borkent
4e667679a5
CHANGELOG [skip ci]
2021-03-29 23:57:13 +02:00
Michiel Borkent
d71c3622ec
bb.edn: first iteration
2021-03-28 17:30:44 +02:00
Michiel Borkent
0b332431d3
Fix proxy instance check
2021-03-13 18:08:36 +01:00
Michiel Borkent
a426cddd4a
proxy + protocols
2021-03-13 17:25:24 +01:00
Michiel Borkent
c0e512e304
proxy
2021-03-13 17:04:35 +01:00
Michiel Borkent
8551817724
Narrow scope of reify
2021-03-13 12:44:12 +01:00
Michiel Borkent
5555ea4ede
APersistentMap test
2021-03-12 20:31:58 +01:00
Michiel Borkent
04cd32b84b
[ #754 ] Fix interop with System/out
2021-03-12 10:57:43 +01:00
Michiel Borkent
38c7bc1c17
[ #667 ] Add test
2021-03-12 10:52:11 +01:00
Michiel Borkent
0d59c0f43b
Reify improvements
2021-03-07 13:56:12 +01:00
Michiel Borkent
e64dbc7691
Support reifying clojure.lang.IFn and clojure.lang.ILookup ( #740 )
2021-02-28 18:23:45 +01:00
Michiel Borkent
3d27677186
[ #707 ] Add pp from clojure.pprint
2021-01-10 15:40:13 +01:00
Michiel Borkent
ee22efdb40
Carve
2021-01-02 15:03:06 +01:00
Michiel Borkent
e3ee4d2119
sci
2021-01-01 11:33:39 +01:00
Michiel Borkent
e309b49e1b
Rename
2021-01-01 11:26:31 +01:00
Michiel Borkent
728e935973
fix test
2020-12-21 15:00:08 +01:00
Michiel Borkent
7b8745806f
[ #677 , #678 ] babashka.deps add-deps + clojure + clojure subcommand
2020-12-13 11:41:20 +01:00
Michiel Borkent
1489e003f2
[ #670 ] Add split-classpath
2020-12-06 11:41:05 +01:00
Michiel Borkent
a04a09c018
[ #670 ] Expose get-classpath
2020-12-06 11:01:37 +01:00
Kevin W. van Rooijen
b269b37ecf
Add babashka.classpath/classpath ( #669 )
2020-12-06 10:57:24 +01:00
Michiel Borkent
f9f2147156
Use public interface for print-method of vars
2020-12-03 11:49:19 +01:00
Michiel Borkent
42e3f44fcb
0.2.4 - tests
2020-11-27 09:48:31 +01:00
Michiel Borkent
fc11d6d0cb
0.2.4
2020-11-27 09:37:39 +01:00
Michiel Borkent
67c33b2270
[ #664 ] Prepl
2020-11-26 12:06:49 +01:00