Comment 5 for bug 300946

Revision history for this message
ecce berlin (ecce-berlin) wrote :

Hello,

Thanks for your reply!

M-x nxhtmltest-run-Q seems to successfully run some tests, but all it gives back is the following message in the minibuffer:
Wrong type argument: stringp, nil

*Messages* says:
Test message
Ran 30 tests, 30 results were as expected
Wrote /home/ecce/tmp/lisp/nxhtml/tests/temp-test.el
nxhtmltest-bin-Q=/home/ecce/tmp/lisp/nxhtml/tests/
nxhtml-auto-start=/home/ecce/tmp/lisp/nxhtml/autostart.el
After set nxhtmltest-run-Q=run
let*: Wrong type argument: stringp, nil

And the debugger:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  call-process(nil nil 0 nil "-Q" "-l" "/home/ecce/tmp/lisp/nxhtml/tests/temp-test.el" "-l" "/home/ecce/tmp/lisp/nxhtml/autostart.el" "-l" "/home/ecce/tmp/lisp/nxhtml/tests/nxhtmltest-suites.el")
  (let* ((test-el ...) (nxhtml-auto-start ...) (temp-eval-file ...) (temp-eval-buf ...) (load-path load-path)) (add-to-list (quote load-path) nxhtmltest-bin-Q) (require (quote nxhtmltest-helpers)) (nxhtmltest-get-fontification-method) (with-current-buffer temp-eval-buf (erase-buffer) (insert "(setq debug-on-error t)\n" "(eval-when-compile (require 'cl))\n" "(delete-other-windows)\n" "(eval-after-load 'nxhtml '(setq nxhtml-skip-welcome t))\n" ...)) (when (featurep ...) (with-current-buffer temp-eval-buf ...)) (with-current-buffer temp-eval-buf (save-buffer)) (unless (file-exists-p nxhtmltest-bin-Q) (error "Can't find directory %s" nxhtmltest-bin-Q)) (unless (file-exists-p test-el) (error "Can't find file %s" test-el)) (unless (file-exists-p nxhtml-auto-start) (error "Can't find file %s" nxhtml-auto-start)) (message "nxhtmltest-bin-Q=%s" nxhtmltest-bin-Q) (message "nxhtml-auto-start=%s" nxhtml-auto-start) (setenv "nxhtmltest-run-Q" "run") (message "After set nxhtmltest-run-Q=%s" (getenv "nxhtmltest-run-Q")) (call-process (ourcomments-find-emacs) nil 0 nil "-Q" "-l" temp-eval-file "-l" nxhtml-auto-start "-l" test-el) (message "After call-process") (setenv "nxhtmltest-run-Q") (message "Starting new Emacs instance for test - it will be ready soon ..."))
  nxhtmltest-run-Q()
  call-interactively(nxhtmltest-run-Q t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

At that time, there's a buffer "temp-test.el" with the following contents:
(setq debug-on-error t)
(eval-when-compile (require 'cl))
(delete-other-windows)
(eval-after-load 'nxhtml '(setq nxhtml-skip-welcome t))
(setq nxhtmltest-default-fontification-method 'fontify-w-timer-handlers)

One last thing I noticed: If I run the command a second time, I additionally get this error:
ad-Orig-syntax-ppss-flush-cache: Lisp nesting exceeds `max-lisp-eval-depth'

Hope this helps...