Arc Forumnew | comments | leaders | submitlogin
Plot complex functions using arc/rainbow (fnargs.com)
4 points by conanite 5640 days ago | 4 comments


2 points by tc-rucho 5640 days ago | link

I've been willing to give rainbow a try for a couple of days now, but I keep getting the same build error no matter what I tried.

  └──> ant -lib "lib" jar
  Buildfile: build.xml

  compile-parser:

  BUILD FAILED
  /home/tc-rucho/Sources/Extern/Java/rainbow/build.xml:23: Problem: failed to create task or type javacc
  Cause: the class org.apache.tools.ant.taskdefs.optional.javacc.JavaCC was not found.
          This looks like one of Ant's optional components.
  Action: Check that the appropriate optional JAR exists in
          -/usr/share/ant-core/lib
          -/home/tc-rucho/.ant/lib
          -a directory added on the command line with the -lib argument

  Do not panic, this is a common problem.
  The commonest cause is a missing JAR.

  This is not a bug; it is a configuration problem


  Total time: 0 seconds

I'm helpless when it comes to java... Any hint?

By the way, what color theme are you using?

-----

2 points by conanite 5640 days ago | link

If you're on ubuntu or similar,

  sudo apt-get install ant-optional
should fix the ant config issue. On a mac, I think ant-optional comes with the Developer Tools. I should add this to the readme, thanks for pointing it out.

what color theme are you using?

On the spiral app? "theme" is too dignified a term for my crude CSS :) ... I found white dots on a dark background were easier to look at, so I set up the rest of the page in a similar way - dark bg, bright text. Did I understand your question correctly?

-----

2 points by tc-rucho 5640 days ago | link

Yay, I've solved the ant problem emerging some stuff related to the ant package, thanks for pointing that out :D

I'm excited about having java libs available in arc, although it would be nice to have an obvious way to disable tests on startup (now that I know it's fully functional I would like to speed the initialization up).

About the color theme: I meant the color theme used in the arc code. I bet you took those colors from an editor. Anyway, it doesn't matter at all..

-----

1 point by conanite 5640 days ago | link

Oh, the syntax highlighting, yes, welder (arc editor that comes with rainbow) can htmlify arc code so that it's easy to paste into a blog or other web page; then it's just a matter of a little CSS to decide what colour you want for different kinds of tokens.

You can just comment out the (run-all-tests) line in rainbow-libs.arc, but you're right, it should be optional somehow.

Let me know how you get on with accessing java libs, I've tried to make it as simple and concise as possible, so that your code still looks like arc code and not some outrageous contaminated half-blood hybrid monstrosity ...

-----