karlll / kjell Goto Github PK
View Code? Open in Web Editor NEWErlang Shell
Erlang Shell
Right now, unless patched, kjell causes a sandbox violation on Homebrew since it tries to write outside of its prefix during make install-extensions
. Current workaround is
inreplace "Makefile", "CFG_DIR=~${USER}/.kjell", "CFG_DIR=#{pkgshare}"
It would help to be able to specify CFG_DIR, just as PREFIX can be specified, to prevent the sandbox violation.
Here's how the sandbox violation looks:
==> make install-extensions
mkdir: /Users/joe/.kjell: Operation not permitted
make: *** [install-extensions] Error 1
==> Sandbox log
May 5 07:08:35 sandboxd[137]: mkdir(7975) deny file-write-create /Users/joe/.kjell
In order to upgrade the homebrew erlang otp version (Homebrew/legacy-homebrew#41035), we need to get kjell working in 18.0.
Are you able to make the changes?
Thanks!
Running CT fails in Travis CI.
This is not reproducible when running locally on Mac OS X.
- - - - - - - - - - - - - - - - - - - - - - - - - -
kjell_extension_SUITE:get_command_ext failed on line 290
Reason: {badmatch,{{test_extension2,cmd},"Test command 2 (test_cmd c...}
- - - - - - - - - - - - - - - - - - - - - - - - - -
...
- - - - - - - - - - - - - - - - - - - - - - - - - -
kjell_extension_SUITE:get_all_command_exts failed on line 308
Reason: {badmatch,[{{test_extension2,cmd},"Test command 2 (test_cmd ...}
- - - - - - - - - - - - - - - - - - - - - - - - - -
https://s3.amazonaws.com/archive.travis-ci.org/jobs/37148876/log.txt
Kjell crashes in some instances when an exception is generated.
To reproduce, run for instance:
> ets:lookup(none,none).
we're so hungry, and those colors look so delicious
I am on OSX 10.9.5 and
erlang @19.1_0+hipe+ssl (active) installed via Macports.
crash_dump file
erl_crash.dump.txt
Any help will be greatly appreciated. Thank you.
attached.
Kjell doesn't really work when using zsh:
DEBUG : Adding code path = "/Users/a2l/.kjell/extensions"
Erlang R15B02 (erts-5.9.2) [source] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
^[[1;37mKjell v.0.1
^[[0m^[[32m1> ^[[0m
It would be cool if the README / docs showed how (if possible at all) to use kjell as the default shell for rebar3 shell
. Has anyone tried this yet?
My ext/ dir is empty so the 'make install-extensions' doesn't work.
Apart from that, cool with a replacement of the Erlang shell, first time
I've seen it in my 22 years of Erlang hacking :-)
Cheers, Tobbe
The powerline glyphs used in the kjell_prompt.erl are not properly displayed on all installations. Could be an issue with the version of the patched powerline font and which code points are used for the powerline glyphs. Needs further investigation.
I'm on Linux Mint 15, and when I run kjell it gives me this error. I get the same error whether I run it from zsh or bash.
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:8:8] [async-threads:0] [kernel-poll:false]
^[[1;37mKjell v.0.2.2
^[[0m*** ERROR: Shell process terminated! (^G to start new job) ***
=ERROR REPORT==== 24-Jun-2014::23:24:16 ===
Error in process <0.36.0> with exit value: {undef,[{io_lib,format_prompt,[[27,91,51,50,109,27,91,49,75,27,91,48,68,49,62,32,27,91,48,109],unicode],[]},{k_group,prompt_bytes,2,[{file,"src/k_group.erl"},{line,856}]},{k_group,get_chars,7,[{file,"src/k_group.erl"},{line,467}]},{k_group,io_request,5,[{file,"src/k_g...
The line that the error is referencing is:
prompt_bytes(Prompt, Encoding) ->
lists:flatten(io_lib:format_prompt(Prompt, Encoding)).
Is there any way to have kjell run a command or series of commands non-interactively, in order to test functionality? I'm trying to update the Homebrew formula and I can't figure out a test that the CI bots can run post-installation.
At least on platforms that support XDG.
$ brew install kjell
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/cask).
Error: No available formula with the name "kjell"
==> Searching for a previously deleted formula...
kjell was deleted from homebrew/core in commit a072463e3:
kjell: migrate to boneyard (https://github.com/Homebrew/homebrew-core/issues/3884)
To show the formula before removal run:
git -C "$(brew --repo homebrew/core)" show a072463e3^:Formula/kjell.rb
If you still use this formula consider creating your own tap:
http://docs.brew.sh/How-to-Create-and-Maintain-a-Tap.html
Currently, messages from sasl get jumbled up.
Building works fine but when I want to install kjell I get the following sed error.
make install
Installing in /usr/local/opt/kjell
sed: -e expression #1, char 1: unknown command: `.'
make: *** [install] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.