luismbo / cl-travis

Travis-CI scripts for testing Common Lisp software
MIT License
85 stars 18 forks source link

cl-nlp, sbcl, SET-DISPATCH-MACRO-CHARACTER issue #5

Closed dmsurti closed 9 years ago

dmsurti commented 9 years ago

I tried to do a travis-ci setup for cl-nlp using cl-travis. However I run into the error which seems to be: SET-DISPATCH-MACRO-CHARACTER would modify the standard readtable. How do I fix this in the travis sbcl lisp env?

Relevant links: https://travis-ci.org/dmsurti/cl-nlp/builds/40704448#L286 https://travis-ci.org/dmsurti/cl-nlp/builds/40704448#L358 https://travis-ci.org/dmsurti/cl-nlp/builds/40704448#L394

https://github.com/dmsurti/cl-nlp/tree/travis-sbcl

luismbo commented 9 years ago

cl-launch can be fairly pedantic at times, so that's my first guess... Two alternatives occur to me:

  1. Wrap your testing code with a (let ((*readtable* (copy-readtable *readtable*))) ...)
  2. Try executing SBCL directly rather than via cl-launch.

Let me know if that helped!

dmsurti commented 9 years ago

@luismbo As I am using only SBCL for now, I tried option 2 to launch directly with SBCL. It works!

https://travis-ci.org/dmsurti/cl-nlp/builds/40819332

Thank you. Closing for now.

luismbo commented 9 years ago

@dmsurti FWIW, I've changed cl-travis to use CIM rather than cl-launch. CIM has a nice wrapper called cl that's much less draconian than cl-launch. Give it a try and let me know if it works for you!

dmsurti commented 9 years ago

@luismbo Thanks for the update. I will try it this week and let you know how it goes.