Re: [O] error while upgrading to 8.3.5

2016-07-27 Thread John Kitchin
With the most current master, I get these two failed tests:

2 unexpected results:
   FAILED  ob-shell/bash-uses-assoc-arrays
   FAILED  test-ob/indented-cached-org-bracket-link

This is with a Mac, and GNU Emacs 25.1.50.1 (x86_64-apple-darwin13.4.0, NS 
appkit-1265.21 Version 10.9.5 (Build 13F1808))
 of 2016-07-11


There seem to be two identically named tests (both fail for me).

(ert-deftest ob-shell/bash-uses-assoc-arrays ()
  "Bash associative arrays"
  (org-test-at-id "bec1a5b0-4619-4450-a8c0-2a746b44bf8d"
(org-babel-next-src-block 2)
(should (equal "two" (org-babel-execute-src-block)


(ert-deftest ob-shell/bash-uses-assoc-arrays ()
  "Bash associative arrays as strings for the row"
  (org-test-at-id "82320a48-3409-49d7-85c9-5de1c6d3ff87"
(org-babel-next-src-block 2)
(should (equal "20 cm" (org-babel-execute-src-block)


The code in the should macro in this test: 
test-ob/indented-cached-org-bracket-link
evaluates to true for me, but still fails in make test.

Nicolas Goaziou writes:

> Hello,
>
> Vikas Rawal  writes:
>
>> * Output of BTEST_RE=indented-cached-org-bracket-link make test
>>
>> Test test-ob/indented-cached-org-bracket-link condition:
>> (ert-test-failed
>>  ((should
>>(let
>> (...)
>>   (org-test-with-temp-text "\n* Test\n  #+BEGIN_SRC emacs-lisp 
>> :file test.txt :cache yes\n(message \"test\")\n  #+END_SRC" ... ...)))
>>   :form
>>   (let
>>((default-directory temporary-file-directory))
>>  (org-test-with-temp-text "\n* Test\n  #+BEGIN_SRC emacs-lisp 
>> :file test.txt :cache yes\n(message \"test\")\n  #+END_SRC"
>>(org-babel-execute-src-block)
>>(string= ... ...)))
>>   :value nil))
>>FAILED  1/1  test-ob/indented-cached-org-bracket-link
>
> This doesn't ring a bell. It would help to know what is hidden behind
> the ellipsis.
>
>> Ran 1 tests, 0 results as expected, 1 unexpected (2016-07-26 05:06:12+0530)
>>
>> 1 unexpected results:
>>FAILED  test-ob/indented-cached-org-bracket-link
>>
>> * (org-parse-time-string "<2014-03-04 Tue>”)
>> (apply #'encode-time (org-parse-time-string "<2014-03-04 Tue>"))
>>
>> Evaluating these in emacs does not seem to do anything. No message.
>
> The return value is displayed in the minibuffer. Use C-x C-e right after
> the closing parens of each form.
>
> Also, did you set some weird variable like `org-extend-today-until'?
>
> Regards,


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] error while upgrading to 8.3.5

2016-07-26 Thread Nicolas Goaziou
Hello,

Vikas Rawal  writes:

> * Output of BTEST_RE=indented-cached-org-bracket-link make test
>
> Test test-ob/indented-cached-org-bracket-link condition:
> (ert-test-failed
>  ((should
>(let
>  (...)
>(org-test-with-temp-text "\n* Test\n  #+BEGIN_SRC emacs-lisp 
> :file test.txt :cache yes\n(message \"test\")\n  #+END_SRC" ... ...)))
>   :form
>   (let
> ((default-directory temporary-file-directory))
>   (org-test-with-temp-text "\n* Test\n  #+BEGIN_SRC emacs-lisp 
> :file test.txt :cache yes\n(message \"test\")\n  #+END_SRC"
> (org-babel-execute-src-block)
> (string= ... ...)))
>   :value nil))
>FAILED  1/1  test-ob/indented-cached-org-bracket-link

This doesn't ring a bell. It would help to know what is hidden behind
the ellipsis.

> Ran 1 tests, 0 results as expected, 1 unexpected (2016-07-26 05:06:12+0530)
>
> 1 unexpected results:
>FAILED  test-ob/indented-cached-org-bracket-link
>
> * (org-parse-time-string "<2014-03-04 Tue>”)
> (apply #'encode-time (org-parse-time-string "<2014-03-04 Tue>"))
>
> Evaluating these in emacs does not seem to do anything. No message.

The return value is displayed in the minibuffer. Use C-x C-e right after
the closing parens of each form.

Also, did you set some weird variable like `org-extend-today-until'?

Regards,

-- 
Nicolas Goaziou



Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Vikas Rawal

* I cleaned up permissions to some directories and did a make install, which 
went fine.

* Now when I do a “make up2”, I get two errors.

   FAILED  test-ob/indented-cached-org-bracket-link
   FAILED  test-org-colview/columns-summary

* Output of BTEST_RE=columns-summary make test

Test test-org-colview/columns-summary condition:
(ert-test-failed
 ((should
   (equal "705d 01h 0m 0s"
  (cl-letf ... ...)))
  :form
  (equal "705d 01h 0m 0s" "705d 00h 0m 0s")
  :value nil :explanation
  (array-elt 6
 (different-atoms
  (49 "#x31" "?1")
  (48 "#x30" "?0")
   FAILED  1/1  test-org-colview/columns-summary

Ran 1 tests, 0 results as expected, 1 unexpected (2016-07-26 05:03:52+0530)

1 unexpected results:
   FAILED  test-org-colview/columns-summary

mk/targets.mk:103: recipe for target 'test' failed
make: *** [test] Error 1

* Output of BTEST_RE=indented-cached-org-bracket-link make test

Test test-ob/indented-cached-org-bracket-link condition:
(ert-test-failed
 ((should
   (let
   (...)
 (org-test-with-temp-text "\n* Test\n  #+BEGIN_SRC emacs-lisp 
:file test.txt :cache yes\n(message \"test\")\n  #+END_SRC" ... ...)))
  :form
  (let
  ((default-directory temporary-file-directory))
(org-test-with-temp-text "\n* Test\n  #+BEGIN_SRC emacs-lisp 
:file test.txt :cache yes\n(message \"test\")\n  #+END_SRC"
  (org-babel-execute-src-block)
  (string= ... ...)))
  :value nil))
   FAILED  1/1  test-ob/indented-cached-org-bracket-link

Ran 1 tests, 0 results as expected, 1 unexpected (2016-07-26 05:06:12+0530)

1 unexpected results:
   FAILED  test-ob/indented-cached-org-bracket-link

* (org-parse-time-string "<2014-03-04 Tue>”)
(apply #'encode-time (org-parse-time-string "<2014-03-04 Tue>"))

Evaluating these in emacs does not seem to do anything. No message.

> 
> What is the result of evaluating both
> 
>  (org-parse-time-string "<2014-03-04 Tue>")
> 
> and
> 
>  (apply #'encode-time (org-parse-time-string "<2014-03-04 Tue>"))
> 
> ?
> 
> Regards,




Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Nicolas Goaziou
Vikas Rawal  writes:

> This is what I get:
>
> Test test-org-colview/columns-summary backtrace:
>   (if (unwind-protect (setq value-2 (apply fn-0 args-1)) (
>   (let (form-description-4) (if (unwind-protect (setq value-2
>   (let ((value-2 (quote ert-form-evaluation-aborted-3))) (let
>   (let ((fn-0 (function equal)) (args-1 (list "705d 01h 0m 0s"
>   (closure (t) nil (let ((fn-44355 (function equal)) (args-44356 (list
>   #[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\317\320%DC
>   funcall(#[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\31
>   ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
>   #[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\316%DC\2
>   funcall(#[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\
>   ert-run-test([cl-struct-ert-test test-org-colview/columns-summary "T
>   ert-run-or-rerun-test([cl-struct-ert--stats "columns-summary" [[cl-s
>   ert-run-tests("columns-summary" #[385 "\306\307\"\203D\211\211G\31
>   ert-run-tests-batch("columns-summary")
>   ert-run-tests-batch-and-exit("columns-summary")
>   (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
>   org-test-run-batch-tests("columns-summary")
>   eval((org-test-run-batch-tests org-test-select-re))
>   command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
>   command-line()
>   normal-top-level()
> Test test-org-colview/columns-summary condition:
> (ert-test-failed
>  ((should
>(equal "705d 01h 0m 0s"
> (cl-letf ... ...)))
>   :form
>   (equal "705d 01h 0m 0s" "705d 00h 0m 0s")
>   :value nil :explanation
>   (array-elt 6
>(different-atoms
> (49 "#x31" "?1")
> (48 "#x30" "?0")
>FAILED  1/1  test-org-colview/columns-summary

What is the result of evaluating both

  (org-parse-time-string "<2014-03-04 Tue>")

and

  (apply #'encode-time (org-parse-time-string "<2014-03-04 Tue>"))

?

Regards,



Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Vikas Rawal
> 
>> I did the usual "make up2" in my git repository but got the following
>> error (just pasting the tail of the log):
> 
> Note that "make up2" doesn't upgrade to 8.3.5, as subject suggests, but
> moves to the head of the development version, i.e., something like
> 9.0-alpha.

hmm. Let me deal with that once I figure out what is wrong with “make up2”.

>> 
>> What do I do? Re-install?
> 
> Could you run the failing test again using, e.g.,
> 
>  BTEST_RE=columns-summary make test
> 
> and paste the exact failure?

This is what I get:

Test test-org-colview/columns-summary backtrace:
  (if (unwind-protect (setq value-2 (apply fn-0 args-1)) (
  (let (form-description-4) (if (unwind-protect (setq value-2
  (let ((value-2 (quote ert-form-evaluation-aborted-3))) (let
  (let ((fn-0 (function equal)) (args-1 (list "705d 01h 0m 0s"
  (closure (t) nil (let ((fn-44355 (function equal)) (args-44356 (list
  #[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\317\320%DC
  funcall(#[0 "\306\307!r\211q\210\310\311\312\313\314\315!\316\"\31
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  #[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\316%DC\2
  funcall(#[0 "r\304 q\210\305 )\306\307\310\311\312\313!\314\"\315\
  ert-run-test([cl-struct-ert-test test-org-colview/columns-summary "T
  ert-run-or-rerun-test([cl-struct-ert--stats "columns-summary" [[cl-s
  ert-run-tests("columns-summary" #[385 "\306\307\"\203D\211\211G\31
  ert-run-tests-batch("columns-summary")
  ert-run-tests-batch-and-exit("columns-summary")
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests("columns-summary")
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test test-org-colview/columns-summary condition:
(ert-test-failed
 ((should
   (equal "705d 01h 0m 0s"
  (cl-letf ... ...)))
  :form
  (equal "705d 01h 0m 0s" "705d 00h 0m 0s")
  :value nil :explanation
  (array-elt 6
 (different-atoms
  (49 "#x31" "?1")
  (48 "#x30" "?0")
   FAILED  1/1  test-org-colview/columns-summary

Ran 1 tests, 0 results as expected, 1 unexpected (2016-07-25 18:37:21+0530)


Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Nicolas Goaziou
Hello,

Vikas Rawal  writes:

> I did the usual "make up2" in my git repository but got the following
> error (just pasting the tail of the log):

Note that "make up2" doesn't upgrade to 8.3.5, as subject suggests, but
moves to the head of the development version, i.e., something like
9.0-alpha.

> Ran 634 tests, 633 results as expected, 1 unexpected (2016-07-25 
> 06:07:28+0530)
> 7 expected failures
>
> 1 unexpected results:
>FAILED  test-org-colview/columns-summary
>
> mk/targets.mk:103: recipe for target 'test-dirty' failed
> make[1]: *** [test-dirty] Error 1
> make[1]: Leaving directory '/Users/vikas/.emacs.d/src/org-mode'
> mk/targets.mk:115: recipe for target 'up2' failed
> make: *** [up2] Error 2
>
> —
>
> What do I do? Re-install?

Could you run the failing test again using, e.g.,

  BTEST_RE=columns-summary make test

and paste the exact failure?

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] error while upgrading to 8.3.5

2016-07-25 Thread Colin Baxter
On Mon, Jul 25 2016, Vikas Rawal wrote:

> I did the usual "make up2" in my git repository but got the following
> error (just pasting the tail of the log):
>
> —
>
> Ran 634 tests, 633 results as expected, 1 unexpected (2016-07-25 
> 06:07:28+0530)
> 7 expected failures
>
> 1 unexpected results:
>FAILED  test-org-colview/columns-summary
>
> mk/targets.mk:103: recipe for target 'test-dirty' failed
> make[1]: *** [test-dirty] Error 1
> make[1]: Leaving directory '/Users/vikas/.emacs.d/src/org-mode'
> mk/targets.mk:115: recipe for target 'up2' failed
> make: *** [up2] Error 2
>
> —
>
> What do I do? Re-install?
>
> Vikas


Using Org-mode version 8.3.5 (release_8.3.5-998-g9930c4), I ran "make
test RET" and got the output:

Ran 640 tests, 640 results as expected (2016-07-25 06:50:07+0100)
6 expected failures

There looks to be something wrong therefore with your setup.

Best wishes,

Colin.



[O] error while upgrading to 8.3.5

2016-07-24 Thread Vikas Rawal
I did the usual "make up2" in my git repository but got the following error 
(just pasting the tail of the log):

—

Ran 634 tests, 633 results as expected, 1 unexpected (2016-07-25 06:07:28+0530)
7 expected failures

1 unexpected results:
   FAILED  test-org-colview/columns-summary

mk/targets.mk:103: recipe for target 'test-dirty' failed
make[1]: *** [test-dirty] Error 1
make[1]: Leaving directory '/Users/vikas/.emacs.d/src/org-mode'
mk/targets.mk:115: recipe for target 'up2' failed
make: *** [up2] Error 2

—

What do I do? Re-install?

Vikas