- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
emacs and sbt shell
Sun, 2009-08-30, 19:51
I have emacs setup according to the instructions here:
http://scala.sygneca.com/tools/emacs
After some fiddling it seems to work, except that the colors that sbt uses for its shell are coming across as gibberish text, and as a result links back to where compile errors occurred don't work because the gibberish is treated as part of the file name.
Is there a way to either make emacs handle the colors or turn them off in sbt?
Here's a sample:^[[0m[^[[31merror^[[0m] ^[[0m foo^[[0m^[[0m[^[[31merror^[[0m] ^[[0m ^^[[0m ^[[0m[^[[31merror^[[0m] ^[[0mone error found^[[0m^[[0m[^[[0minfo^[[0m] ^[[34m== compile ==^[[0m^[[0m[^[[31merror^[[0m] ^[[0mError running compile: Compilation unsuccessful.^[[0m^[[0m[^[[0minfo^[[0m] ^[[0m^[[0m ^[[0m[^[[0minfo^[[0m] ^[[0mTotal time: 2 s^[[0m
This happens in both Emacs 22.1.1 on the terminal and AquaMacs 1.8.
Thanks,Erik
After some fiddling it seems to work, except that the colors that sbt uses for its shell are coming across as gibberish text, and as a result links back to where compile errors occurred don't work because the gibberish is treated as part of the file name.
Is there a way to either make emacs handle the colors or turn them off in sbt?
Here's a sample:^[[0m[^[[31merror^[[0m] ^[[0m foo^[[0m^[[0m[^[[31merror^[[0m] ^[[0m ^^[[0m ^[[0m[^[[31merror^[[0m] ^[[0mone error found^[[0m^[[0m[^[[0minfo^[[0m] ^[[34m== compile ==^[[0m^[[0m[^[[31merror^[[0m] ^[[0mError running compile: Compilation unsuccessful.^[[0m^[[0m[^[[0minfo^[[0m] ^[[0m^[[0m ^[[0m[^[[0minfo^[[0m] ^[[0mTotal time: 2 s^[[0m
This happens in both Emacs 22.1.1 on the terminal and AquaMacs 1.8.
Thanks,Erik
Tue, 2009-09-01, 15:27
#2
Re: emacs and sbt shell
Thanks, I got that from Mark on IRC and Ray Racine off-list.
(ansi-color-for-comint-mode-on) did not work for me. I wish it did. It could be the versions of Emacs that I tired.
Turning off formatting in sbt did work.
On Tue, Sep 1, 2009 at 2:41 AM, Florian Hars <hars@bik-gmbh.de> wrote:
--
http://erikengbrecht.blogspot.com/
(ansi-color-for-comint-mode-on) did not work for me. I wish it did. It could be the versions of Emacs that I tired.
Turning off formatting in sbt did work.
On Tue, Sep 1, 2009 at 2:41 AM, Florian Hars <hars@bik-gmbh.de> wrote:
Erik Engbrecht schrieb:
> Is there a way to either make emacs handle the colors
(ansi-color-for-comint-mode-on)
> or turn them off in sbt?
java -Dsbt.log.noformat=true -Xmx256M -jar `dirname $0`/sbt-launcher-0.5.2.jar "$@"
HTH, Florian.
--
http://erikengbrecht.blogspot.com/
Erik Engbrecht schrieb:
> Is there a way to either make emacs handle the colors
(ansi-color-for-comint-mode-on)
> or turn them off in sbt?
java -Dsbt.log.noformat=true -Xmx256M -jar `dirname $0`/sbt-launcher-0.5.2.jar "$@"
HTH, Florian.