Arc Forumnew | comments | leaders | submitlogin
1 point by jazzdev 4355 days ago | link | parent

Can't seem to get it to run. Where is rainbow.arc?

  % ./rainbow.sh 
  Buildfile: build.xml
  
  compile-parser:
  
  compile:
  
  jar:
  
  BUILD SUCCESSFUL
  Total time: 0 seconds
  Unable to access jarfile /Users/jd/tmp/rainbow/build/dist/rainbow.jar
  % java -jar build/dist/rainbow/rainbow.jar --strict-arc
  Exception in thread "main" java.io.FileNotFoundException: Could not find rainbow/rainbow.arc under [.]
          at rainbow.Console.find(Console.java:125)
          at rainbow.Console.loadFile(Console.java:133)
          at rainbow.Console.main(Console.java:41)


1 point by jazzdev 4355 days ago | link

Okay, I found rainbow.arc. (I was doing find from the wrong place). And am following the README, but still no joy.

  % setenv ARC_PATH ~/tmp/arc:./src/arc
  % java -jar build/dist/rainbow/rainbow.jar
  Exception in thread "main" rainbow.ArcError: call* table not found in environment: if you are not using anarki please specify --strict-arc on the command-line
          at rainbow.vm.continuations.FunctionDispatcher.anarkiCompatibleTypeDispatch(FunctionDispatcher.java:68)
          at rainbow.vm.continuations.FunctionDispatcher.digestFunction(FunctionDispatcher.java:52)
          at rainbow.vm.continuations.FunctionDispatcher.onReceive(FunctionDispatcher.java:38)
          at rainbow.vm.continuations.ContinuationSupport.receive(ContinuationSupport.java:28)
          at rainbow.vm.Interpreter.interpret(Interpreter.java:30)
          at rainbow.vm.continuations.FunctionDispatcher.process(FunctionDispatcher.java:33)
          at rainbow.vm.ArcThread.run(ArcThread.java:28)
          at rainbow.Console.compileAndEval(Console.java:149)
          at rainbow.Console.load(Console.java:140)
          at rainbow.Console.loadFile(Console.java:133)
          at rainbow.Console.main(Console.java:39)

-----

1 point by conanite 4354 days ago | link

Rainbow assumes you are using anarki - it's at http://github.com/nex3/arc/tree/master

If you are using anarki and still getting this error, then it's a mystery. It might be necessary to expand "~/tmp/arc" into a full path - I know rainbow doesn't expand "~", and I don't know if the shell does. And "~/tmp/arc" should contain arc.arc and the usual arc files from the distribution.

Let me know if it still isn't working.

-----