-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally read code from stdin #2
base: main
Are you sure you want to change the base?
Conversation
Thanks a lot for this! I’ve only taken a quick look, but it basically looks good. Please add test cases, though. I’ll look more closely tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, my system is a tire fire with respect to Graal's dependencies. It'll take me a while to sort this out, and I'm going to make it use Nix to build, which should make the build reproducible. (The old way should probably work still.)
So... later this week, I think.
Meanwhile:
- Add a
CHANGELOG.adoc
entry. - Document this feature in
rep.1.adoc
. - Add yourself to a contributors section in the README, if you like.
I pushed a bunch of commits that get it building for me again. It uses Nix for local builds and CI, which keeps things reproducible, and I updated the documentation on how to build and test it. Your "fix native-image build" commit was merged, but the feature isn't. Turns out, this feature is hanging the tests. I assume because there's a test that was doing something else and it is now being interpreted as wanting to read input, and that leads me to: It's possible to want to evaluate the code I think there's a problem here with the line numbers and |
Thanks, I'll have a look at the tests next week, and will change
Yes, the reason I implemented this feature is that I was generating some code with babashka, and trying to pipe it to rep. |
babashka looks nice! I just realized that it's possible to use |
When no args are given, read code from stdin instead.
Also adds a "contributors" section to the README.
Not sure if `-` worked in the first place.
e709adb
to
6568181
Compare
Hi @eraserhd, I've rebased, added a CHANGELOG entry, updated the manpage, added a contributors section to the README, and checked in the patch. It only reads from Thanks! |
If you add a test, I’ll merge it. If you can figure out how to make it preserve line numbers for code read from stdin, that would be really nice. |
When no arguments are given then read from stdin instead. This way you can pipe code into
rep
.Also prints a nicer warning when no port number is given and it can't find
.nrepl-port
.