charting initialization problem when using emacs SLIME.

3 views
Skip to first unread message

Sergey Kharagorgiev

unread,
Oct 25, 2009, 6:06:52 PM10/25/09
to Incanter
Hi.

I'm using Incanter via SLIME in emacs in Windows, with all required
dependancies in classpath.
So, evaluating in REPL:

(use '(incanter core stats))

works fine.

but when i evaluate:

(use 'incanter.charts)

SLIME REPL just freezes and this expression dosen't return.
it returns only when I interrupt it, for example by pressing C-c C-c
in *inferior lisp* buffer.,
Then, after interrupt, charting is working, but having to do such
interrupting is still annoying.

I guess it has to do with JFreeChart initialization, but can you
please suggest how I could troubleshoot it?

When I launch Incanter REPL with provided clj.bat script, all works
fine, no freezing for charting initialization.

I have following SLIME configuraton:
(swank-clojure-config
(setq swank-clojure-jar-path "~/clojure/clojure.jar")
(setq swank-clojure-extra-classpaths
(cons
"~/incanter/incanter.jar"
(directory-files "~/incanter/lib" t ".jar$")))))

classpath:
user> (.. System (getProperties) (get "java.class.path"))
"c:/home/clojure/clojure.jar;c:/home/clojure-tools/swank-clojure/;c:/
home/incanter/incanter.jar;c:/home/incanter/lib/arpack-
combo-0.1.jar;c:/home/incanter/lib/clojure-contrib.jar;c:/home/
incanter/lib/colt.jar;c:/home/incanter/lib/gnujaxp.jar;c:/home/
incanter/lib/jcommon-1.0.16.jar;c:/home/incanter/lib/
jfreechart-1.0.13.jar;c:/home/incanter/lib/jline-0.9.94.jar;c:/home/
incanter/lib/netlib-java-0.9.1.jar;c:/home/incanter/lib/
opencsv-1.8.jar;c:/home/incanter/lib/parallelcolt-0.7.2.jar"

liebke

unread,
Oct 25, 2009, 8:04:02 PM10/25/09
to Incanter
I'm hoping somebody with emacs/slime experience will respond, since
I'm a vim user. My only suggestion is to try the slime script (and
incanter.el configuration), provided by Technomancy, that is included
in Incanter's bin/ directory, and see if the problem persist. Let me
know if this helps or not.

If it doesn't work, ask on either the #clojure irc channel, or Google
group. Emacs/Slime questions/problems are common, and there's a good
chance somebody can help.

David


Kosta Sokolov

unread,
Oct 25, 2009, 8:30:58 PM10/25/09
to inca...@googlegroups.com
I observed the same behavior with clojure-maven-plugin when I start
the test suite bundled with Incanter with "mvn clojure:test".
Sometimes the tests were ok, but sometimes they just hung, so I had to
interrupt with Ctrl+C to let maven finish. My guess is that there are
issues with visualization stuff, but I just left it out entirely since
I only needed algebraic functions in my current project and everything
else was fine.

Regards,
Kosta

2009/10/26 liebke <lie...@gmail.com>:

Sergey Kharagorgiev

unread,
Oct 26, 2009, 6:40:11 AM10/26/09
to Incanter
Thanks for the advise, this problem dissapeared when I reinstalled
clojure-mode and swank-clojure from ELPA, and loaded my project with
swank-clojure-project. So I'll just stick to it, then.
Reply all
Reply to author
Forward
0 new messages