* Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
@ 2015-06-30 8:15 Fabrice Niessen
2015-06-30 13:57 ` Nicolas Goaziou
0 siblings, 1 reply; 7+ messages in thread
From: Fabrice Niessen @ 2015-06-30 8:15 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hello Nicolas,
When trying to lint my "Org mode refcard" [1], I get this error:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
replace-regexp-in-string("[ \n]+\\'" "" nil)
(replace-regexp-in-string "\\`[ \n]+" "" (replace-regexp-in-string "[ \n]+\\'" "" s))
org-trim(nil)
(org-babel-parse-header-arguments (org-trim (cond ((eq type (quote src-block)) (let nil (mapconcat (function identity) (cons (org-element-property :parameters datum) (org-element-property :header datum)) " "))) ...
(list (org-babel-parse-header-arguments (org-trim (cond ((eq type (quote src-block)) (let nil (mapconcat (function identity) (cons ... ...) " "))) ((eq type (quote inline-src-block)) ...
(append (list (and (memq type (quote (babel-call inline-babel-call))) org-babel-default-lob-header-args)) (progn (goto-char (org-element-property :begin datum)) (org-babel-params-from-properties language)) ...
(apply (function org-babel-merge-params) org-babel-default-header-args (and language (let ((v (intern (concat "org-babel-default-header-args:" language)))) (and (boundp v) (symbol-value v)))) ...
(org-babel-process-params (apply (function org-babel-merge-params) org-babel-default-header-args (and language (let ((v (intern (concat "org-babel-default-header-args:" language)))) ...
(let* ((type (org-element-type datum)) (language (org-element-property :language datum)) (allowed-header-values (append (and language (let ((v ...)) (and (boundp v) (symbol-value v)))) org-babel-common-header-args-w-values)) ...
(closure ((reports) (ast org-data nil (section (:begin 1 :end 972 :contents-begin 1 :contents-end 971 :post-blank 1 :post-affiliated 1 :parent (org-data nil #3 (headline (:raw-value "Summary" :begin 972 :end 2026 ...
funcall((closure ((reports) (ast org-data nil (section (:begin 1 :end 972 :contents-begin 1 :contents-end 971 :post-blank 1 :post-affiliated 1 :parent (org-data nil #3 (headline (:raw-value "Summary" :begin 972 :end 2026 ...
(let ((result (funcall fun --data))) (cond ((not result)) (first-match (throw (quote --map-first-match) result)) (t (setq --acc (cons result --acc)))))
(progn (let ((result (funcall fun --data))) (cond ((not result)) (first-match (throw (quote --map-first-match) result)) (t (setq --acc (cons result --acc))))))
(if (memq --type types) (progn (let ((result (funcall fun --data))) (cond ((not result)) (first-match (throw (quote --map-first-match) result)) (t (setq --acc (cons result --acc)))))))
...
org-lint-wrong-header-value((org-data nil (section (:begin 1 :end 972 :contents-begin 1 :contents-end 971 :post-blank 1 :post-affiliated 1 :parent #0) (keyword (:key "TITLE" :value "Org mode syntax quick reference card" ...
funcall(org-lint-wrong-header-value (org-data nil (section (:begin 1 :end 972 :contents-begin 1 :contents-end 971 :post-blank 1 :post-affiliated 1 :parent #0) (keyword (:key "TITLE" :value "Org mode syntax quick reference card" ...
(save-excursion (funcall (intern (format "org-lint-%s" (progn (or (and (vectorp c) (>= ... 5) (memq ... cl-struct-org-lint-checker-tags)) (error "%s accessing a non-%s" (quote org-lint-checker-name) (quote org-lint-checker))) ...
(mapcar (function (lambda (report) (list (car report) trust (nth 1 report) c))) (save-excursion (funcall (intern (format "org-lint-%s" (progn (or (and ... ... ...) (error "%s accessing a non-%s" ... ...)) (aref c 1)))) ast)))
(let ((trust (symbol-name (progn (or (and (vectorp c) (>= ... 5) (memq ... cl-struct-org-lint-checker-tags)) (error "%s accessing a non-%s" (quote org-lint-checker-trust) (quote org-lint-checker))) (aref c 4))))) ...
(closure ((last-pos . 1) (last-line . 1) (id . 0) (ast org-data nil (section (:begin 1 :end 972 :contents-begin 1 :contents-end 971 :post-blank 1 :post-affiliated 1 :parent (org-data nil #3 (headline (:raw-value "Summary" :begin 972 :end 2026 ...
...
org-lint(nil)
--8<---------------cut here---------------end--------------->8---
(I suppressed a lot of the output as this is 8 MB big...)
[1] https://github.com/fniessen/refcard-org-mode (WiP)
Best regards,
Fabrice
--
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
2015-06-30 8:15 Org-lint -- Lisp error: (wrong-type-argument arrayp nil) Fabrice Niessen
@ 2015-06-30 13:57 ` Nicolas Goaziou
2015-07-02 11:59 ` Fabrice Niessen
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2015-06-30 13:57 UTC (permalink / raw)
To: Fabrice Niessen; +Cc: public-emacs-orgmode-mXXj517/zsQ
Hello,
Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
writes:
> When trying to lint my "Org mode refcard" [1], I get this error:
>
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
2015-06-30 13:57 ` Nicolas Goaziou
@ 2015-07-02 11:59 ` Fabrice Niessen
2015-07-02 22:49 ` Nicolas Goaziou
0 siblings, 1 reply; 7+ messages in thread
From: Fabrice Niessen @ 2015-07-02 11:59 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hello,
Nicolas Goaziou writes:
> Fabrice Niessen writes:
>
>> When trying to lint my "Org mode refcard" [1], I get this error:
>>
>> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>
> Fixed. Thank you.
Same error with file
https://github.com/fniessen/refcard-org-babel/blob/master/docs/eval.org.
Using Org-mode version 8.3beta (release_8.3beta-1265-g2c66e4), updated
this morning.
Best regards,
Fabrice
--
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
2015-07-02 11:59 ` Fabrice Niessen
@ 2015-07-02 22:49 ` Nicolas Goaziou
2015-07-03 9:53 ` Fabrice Niessen
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2015-07-02 22:49 UTC (permalink / raw)
To: Fabrice Niessen; +Cc: public-emacs-orgmode-mXXj517/zsQ
Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
writes:
> Same error with file
> https://github.com/fniessen/refcard-org-babel/blob/master/docs/eval.org.
I cannot reproduce it.
Could you pull again wip-lint and try one more time? Thank you.
Regards,
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
2015-07-02 22:49 ` Nicolas Goaziou
@ 2015-07-03 9:53 ` Fabrice Niessen
2015-07-03 10:25 ` Nicolas Goaziou
0 siblings, 1 reply; 7+ messages in thread
From: Fabrice Niessen @ 2015-07-03 9:53 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Nicolas Goaziou writes:
> Fabrice Niessen writes:
>
>> Same error with file
>> https://github.com/fniessen/refcard-org-babel/blob/master/docs/eval.org.
>
> I cannot reproduce it.
>
> Could you pull again wip-lint and try one more time? Thank you.
It works, indeed. Sorry.
Though, there is one error with which I don't agree:
--8<---------------cut here---------------start------------->8---
367 high Missing colon in header argument ")"
--8<---------------cut here---------------end--------------->8---
where line 367 is indicated by "<<<":
--8<---------------cut here---------------start------------->8---
#+name: add1
#+begin_src emacs-lisp :var x=1 :results silent
(+ x 1)
#+end_src
#+call: add1(x=4)
#+results: add1(x=4)
: 5
#+call: add1(6)
#+results: add1(6)
: 7
#+call: add1(add1(9)) <<<
#+results: add1(add1(9))
: 11
--8<---------------cut here---------------end--------------->8---
Best regards,
Fabrice
--
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
2015-07-03 9:53 ` Fabrice Niessen
@ 2015-07-03 10:25 ` Nicolas Goaziou
[not found] ` <87r3optu4u.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2015-07-03 10:25 UTC (permalink / raw)
To: Fabrice Niessen; +Cc: public-emacs-orgmode-mXXj517/zsQ
Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
writes:
> Though, there is one error with which I don't agree:
>
> 367 high Missing colon in header argument ")"
>
> where line 367 is indicated by "<<<":
Are you sure you are using the latest wip-lint? It should be fixed
already (commit 406cfbf2a148c4ea98278603ed5b096bbcdd5370, cherry-picked
from master).
Regards,
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org-lint -- Lisp error: (wrong-type-argument arrayp nil)
[not found] ` <87r3optu4u.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
@ 2015-07-03 12:56 ` Fabrice Niessen
0 siblings, 0 replies; 7+ messages in thread
From: Fabrice Niessen @ 2015-07-03 12:56 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg
Nicolas Goaziou writes:
> Fabrice Niessen writes:
>
>> Though, there is one error with which I don't agree:
>>
>> 367 high Missing colon in header argument ")"
>>
>> where line 367 is indicated by "<<<":
>
> Are you sure you are using the latest wip-lint? It should be fixed
> already (commit 406cfbf2a148c4ea98278603ed5b096bbcdd5370,
> cherry-picked from master).
It *is* fixed.
I guess I switched to the correct branch, but forgot the "git pull"...
Sorry for the noise. And thanks for org-lint which spotted a real
missing ":" in some PROPERTY drawer. Hard to see afterward...
Best regards,
Fabrice
--
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-07-03 12:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 8:15 Org-lint -- Lisp error: (wrong-type-argument arrayp nil) Fabrice Niessen
2015-06-30 13:57 ` Nicolas Goaziou
2015-07-02 11:59 ` Fabrice Niessen
2015-07-02 22:49 ` Nicolas Goaziou
2015-07-03 9:53 ` Fabrice Niessen
2015-07-03 10:25 ` Nicolas Goaziou
[not found] ` <87r3optu4u.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-07-03 12:56 ` Fabrice Niessen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).