Comments (5)
Other than the workaround in the READMe, I guess we could introduce a custom pprinter in this library:
user=> (defmethod pprint/simple-dispatch babashka.process.Process [out] (.write *out* "foo"))
from process.
This issue is documented here: https://github.com/babashka/process#clojurepprint
from process.
tried both but still same error with latest bb version
(prefer-method pprint/simple-dispatch clojure.lang.IPersistentMap clojure.lang.IDeref)
(defmethod pprint/simple-dispatch babashka.process.Process [out] (.write out "foo"))
any other suggestions if it works for someone else?
from process.
As far as the pprinter implementation in the lib, how do you feel about basically just pprinting it as a map? I feel like this would sort of align with most records and the print-method
impl.
from process.
Agreed.
from process.
Related Issues (20)
- `pb {:in "foo"}` hangs HOT 2
- Exceptions when AOT compiled with Java 9+ and run with Java 8 HOT 1
- Support `:pre-start-fn` in `babashka.process/exec` HOT 1
- Consider supporting redirecting stderr to stdout HOT 1
- chore: address GitHub Actions warnings HOT 1
- Explore Improving Windows Test Coverage HOT 1
- Explore adding test coverage for `exec` HOT 2
- dev chore: consider breaking up large deftest forms HOT 2
- `exec` does not convert `:env` and `:extra-env` keywords HOT 1
- Single map arg for easier programmatic interop
- Add new `:cmd` `opt` to `exec` HOT 3
- Consider `:dir` when resolving `program` on Windows HOT 5
- Chore: consider moving to deps.edn only HOT 2
- chore: no longer need to use bb snapshot version for tests
- Question: input and output streams reversed? HOT 1
- Output of `fs/list-dir` (i.e. `UnixPath`) cannot be passed as-is to `shell` HOT 1
- Continue doesn't work with (shell) HOT 5
- clojure.pprint/pprint throws an exception when printing babashka.process.Process HOT 5
- Tests: Bump to GraalVM current
- Tests: Bump graal-build-time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from process.