From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Corneli Subject: Re: org-table debugging formula - error Date: Fri, 12 Oct 2018 14:21:26 +0100 Message-ID: References: <878t349zu8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000af3c26057807f79e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAxNt-0006pn-CA for emacs-orgmode@gnu.org; Fri, 12 Oct 2018 09:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAxNs-0002YW-EB for emacs-orgmode@gnu.org; Fri, 12 Oct 2018 09:21:41 -0400 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:37351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAxNs-0002XN-7R for emacs-orgmode@gnu.org; Fri, 12 Oct 2018 09:21:40 -0400 Received: by mail-oi1-x22a.google.com with SMTP id e17-v6so9839617oib.4 for ; Fri, 12 Oct 2018 06:21:40 -0700 (PDT) In-Reply-To: <878t349zu8.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode mailing list --000000000000af3c26057807f79e Content-Type: text/plain; charset="UTF-8" Hi, I couldn't reproduce it with emacs -Q and a freshly built version of org source code. At some point (make-string (car ev) ?\-) on line 2956 of org-table.el was being called with an argument that was a non-integer-formatted value, namely 570.0. But since I can't reproduce it at all now this is presumably an entirely transient issue! On Thu, Oct 11, 2018 at 6:07 PM Nicolas Goaziou wrote: > Hello, > > Joe Corneli writes: > > > Hello, > > > > I got an error when debugging the behaviour of a formula. > > > > You'll need: > > > > (setq org-table-formula-debug t) > > > > Then with any luck this should allow you to reproduce the error: C-c C-c > to run formula. > > > > | Task | Estimated Effort | > > |-----------------------+------------------| > > | INTRODUCTION | 9:30 | > > |-----------------------+------------------| > > | BACKGROUND | | > > |-----------------------+------------------| > > | FOO WORKFLOW | | > > |-----------------------+------------------| > > | BAR WORKFLOW | | > > |-----------------------+------------------| > > | BAZ WORKFLOW | | > > |-----------------------+------------------| > > | ADDITIONAL WORKFLOWS | 1d 4h 0min | > > |-----------------------+------------------| > > | FINDINGS | | > > |-----------------------+------------------| > > | ADDITIONAL ANALYSIS | 24:00 | > > |-----------------------+------------------| > > | DISCUSSION | | > > |-----------------------+------------------| > > | BIBLIOGRAPHY | | > > |-----------------------+------------------| > > | Appendix: Status | | > > | TOTAL WORKDAYS NEEDED | 5d 5h 30min | > > > > #+TBLFM: @>$2='(org-duration-from-minutes (apply '+ (map 'list > 'org-duration-to-minutes (list @I+1$2 @II+1$2 @III+1$2 @IIII+1$2 @IIIII+1$2 > @IIIIII+1$2 @IIIIIII+1$2 @IIIIIIII+1$2)))) > > > > I've attached a patch that fixes the problem for me. > > I cannot reproduce the problem. Could you explain why you do need this > patch? > > Regards, > > -- > Nicolas Goaziou > --000000000000af3c26057807f79e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I couldn't reproduce it with emac= s -Q and a freshly built version of org source code.=C2=A0=C2=A0=C2=A0 At s= ome point (make-string (car ev) ?\-) on line 2956 of org-table.el was being= called with an argument that was a non-integer-formatted value, namely 570= .0.

But since I can't reproduce it= at all now this is presumably an entirely transient issue!
=
On Thu, Oct 11, 2018 at 6:0= 7 PM Nicolas Goaziou <mail@nic= olasgoaziou.fr> wrote:
Hello= ,

Joe Corneli <holtzermann17@gmail.com> writes:

> Hello,
>
> I got an error when debugging the behaviour of a formula.
>
> You'll need:
>
> (setq org-table-formula-debug t)
>
> Then with any luck this should allow you to reproduce the error: C-c C= -c to run formula.
>
> | Task=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |= Estimated Effort |
> |-----------------------+------------------|
> | INTRODUCTION=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 9:30=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
> |-----------------------+------------------|
> | BACKGROUND=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | FOO WORKFLOW=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | BAR WORKFLOW=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | BAZ WORKFLOW=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | ADDITIONAL WORKFLOWS=C2=A0 | 1d 4h 0min=C2=A0 =C2=A0 =C2=A0 =C2=A0|<= br> > |-----------------------+------------------|
> | FINDINGS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | ADDITIONAL ANALYSIS=C2=A0 =C2=A0| 24:00=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | DISCUSSION=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | BIBLIOGRAPHY=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> |-----------------------+------------------|
> | Appendix: Status=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
> | TOTAL WORKDAYS NEEDED | 5d 5h 30min=C2=A0 =C2=A0 =C2=A0 |
>
> #+TBLFM: @>$2=3D'(org-duration-from-minutes (apply '+ (map = 'list 'org-duration-to-minutes (list @I+1$2 @II+1$2 @III+1$2 @IIII+= 1$2 @IIIII+1$2 @IIIIII+1$2 @IIIIIII+1$2 @IIIIIIII+1$2))))
>
> I've attached a patch that fixes the problem for me.

I cannot reproduce the problem. Could you explain why you do need this patc= h?

Regards,

--
Nicolas Goaziou
--000000000000af3c26057807f79e--