Error formatting macro: pagetree: java.lang.NullPointerException

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First, build the latest Clojure:

Code Block
$ ant jar

...


# If no compilation errors, 'ant jar' creates clojure.jar in

...

 Clojure

...

If you prefer Maven, you can use the following command, but it will also re-run all Clojure tests.  If your goal is to get an updated jar as quickly as possible, the command above is better.

Code Block
$ mvn package

...

 tree root dir

# Or, if you prefer Maven
$ mvn -Dmaven.test.skip=true package
# If no compilation errors, mvn command above creates target/clojure-1.6.0-master-SNAPSHOT.jar

The commands above build a Clojure jar file, but neither compile nor run the tests.

Start a repl and run individual tests from it:

Code Block
# Replace clojure.jar with target/clojure-1.6.0-master-SNAPSHOT.jar if you ran mvn command
$ java -cp test:clojure.jar clojure.main
Clojure 1.6.0-master-SNAPSHOT
;; We're testing with clojure.test 
=> (require 'clojure.test)
nil
;; Load a test file 
user=> (require 'clojure.test-clojure.data)
nil
;; Run it 
user=> (clojure.test/run-tests 'clojure.test-clojure.data)
 
Testing clojure.test-clojure.data
Ran 1 tests containing 17 assertions.
0 failures, 0 errors.
{:type :summary, :pass 17, :test 1, :error 0, :fail 0}