emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dominik Schrempf <dominik.schrempf@gmail.com>
To: "Emacs Org Mode Mailing List" <emacs-orgmode@gnu.org>
Subject: Org lint and Haskell source code blocks
Date: Tue, 21 Sep 2021 08:47:14 +0200	[thread overview]
Message-ID: <87fsty7750.fsf@gmail.com> (raw)

Hi,

whenever I have a Haskell source code block in my Org mode file, and I execute
=org-lint=, I get the following error:

#+begin_quote
Debugger entered--Lisp error: (wrong-type-argument listp :any)
#+end_quote

(This was obtained with a minimal file just having:
#+BEGIN_SRC haskell
inc n = n+1
#+END_SRC
)

Do you have an idea about what could be the problem? =org-lint= works just fine
in other buffers without Haskell code blocks.

Please find the full error message below.

Thank you,
Dominik

--

Debugger entered--Lisp error: (wrong-type-argument listp :any)
  mapcar(car (compile . :any))
  #f(compiled-function (l) #<bytecode 0x2cbbb4d>)("haskell")
  mapcan(#f(compiled-function (l) #<bytecode 0x2cbbb4d>) ("haskell"))
  cl-mapcan(#f(compiled-function (l) #<bytecode 0x2cbbb4d>) ("haskell"))
  #f(compiled-function (datum language headers) #<bytecode 0x1f38aa1>)((src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent (org-data nil #31)) #1))) "haskell" nil)
  #f(compiled-function (datum) #<bytecode 0x1f38aad>)((src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent (org-data nil #31)) #1))))
  #f(compiled-function (--data) #<bytecode 0x1f38ab9>)((src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent (org-data nil #31)) #1))))
  mapc(#f(compiled-function (--data) #<bytecode 0x1f38ab9>) ((src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent (org-data nil #33)) . #2)))))
  #f(compiled-function (--data) #<bytecode 0x1f38ab9>)((section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent (org-data nil #1)) (src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent #1))))
  mapc(#f(compiled-function (--data) #<bytecode 0x1f38ab9>) ((section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent (org-data nil . #2)) (src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent #3)))))
  #f(compiled-function (--data) #<bytecode 0x1f38ab9>)((org-data nil (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent #1) (src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent #4)))))
  org-element-map((org-data nil (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent #1) (src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent #4)))) (babel-call inline-babel-call inline-src-block keyword node-property src-block) #f(compiled-function (datum) #<bytecode 0x1f38aad>))
  org-lint-wrong-header-argument((org-data nil (section (:begin 1 :end 43 :contents-begin 1 :contents-end 43 :post-blank 0 :post-affiliated 1 :parent #1) (src-block (:language "haskell" :switches nil :parameters nil :begin 1 :end 43 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "inc n = n+1\n" :post-blank 0 :post-affiliated 1 :parent #4)))))
  #f(compiled-function (c) #<bytecode 0x4001e11>)(#s(org-lint-checker :name wrong-header-argument :description "Report wrong babel headers" :categories (babel) :trust high))
  mapcan(#f(compiled-function (c) #<bytecode 0x4001e11>) (#s(org-lint-checker :name duplicate-custom-id :description "Report duplicates CUSTOM_ID prop..." :categories (link) :trust high) #s(org-lint-checker :name duplicate-name :description "Report duplicate NAME values" :categories (babel link) :trust high) #s(org-lint-checker :name duplicate-target :description "Report duplicate targets" :categories (link) :trust high) #s(org-lint-checker :name duplicate-footnote-definition :description "Report duplicate footnote defini..." :categories (footnote) :trust high) #s(org-lint-checker :name orphaned-affiliated-keywords :description "Report orphaned affiliated keywo..." :categories (default) :trust low) #s(org-lint-checker :name obsolete-affiliated-keywords :description "Report obsolete affiliated keywo..." :categories (obsolete) :trust high) #s(org-lint-checker :name deprecated-export-blocks :description "Report deprecated export block s..." :categories (obsolete export) :trust low) #s(org-lint-checker :name deprecated-header-syntax :description "Report deprecated Babel header s..." :categories (obsolete babel) :trust low) #s(org-lint-checker :name missing-language-in-src-block :description "Report missing language in sourc..." :categories (babel) :trust high) #s(org-lint-checker :name missing-backend-in-export-block :description "Report missing back-end in expor..." :categories (export) :trust high) #s(org-lint-checker :name invalid-babel-call-block :description "Report invalid Babel call blocks" :categories (babel) :trust high) #s(org-lint-checker :name colon-in-name :description "Report NAME values with a colon" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-argument :description "Report wrong babel headers" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-value :description "Report invalid value in babel he..." :categories (babel) :trust low) #s(org-lint-checker :name deprecated-category-setup :description "Report misuse of CATEGORY keywor..." :categories (obsolete) :trust high) #s(org-lint-checker :name invalid-coderef-link :description "Report \"coderef\" links with unkn..." :categories (link) :trust high) #s(org-lint-checker :name invalid-custom-id-link :description "Report \"custom-id\" links with un..." :categories (link) :trust high) #s(org-lint-checker :name invalid-fuzzy-link :description "Report \"fuzzy\" links with unknow..." :categories (link) :trust high) #s(org-lint-checker :name invalid-id-link :description "Report \"id\" links with unknown d..." :categories (link) :trust high) #s(org-lint-checker :name link-to-local-file :description "Report links to non-existent loc..." :categories (link) :trust low) #s(org-lint-checker :name non-existent-setupfile-parameter :description "Report SETUPFILE keywords with n..." :categories (default) :trust low) #s(org-lint-checker :name wrong-include-link-parameter :description "Report INCLUDE keywords with mis..." :categories (export) :trust low) #s(org-lint-checker :name obsolete-include-markup :description "Report obsolete markup in INCLUD..." :categories (obsolete export) :trust low) #s(org-lint-checker :name unknown-options-item :description "Report unknown items in OPTIONS ..." :categories (export) :trust low) #s(org-lint-checker :name invalid-macro-argument-and-template :description "Report spurious macro arguments ..." :categories (export) :trust low) #s(org-lint-checker :name special-property-in-properties-drawer :description "Report special properties in pro..." :categories (properties) :trust high) #s(org-lint-checker :name obsolete-properties-drawer :description "Report obsolete syntax for prope..." :categories (obsolete properties) :trust high) #s(org-lint-checker :name invalid-effort-property :description "Report invalid duration in EFFOR..." :categories (properties) :trust high) #s(org-lint-checker :name undefined-footnote-reference :description "Report missing definition for fo..." :categories (footnote) :trust high) #s(org-lint-checker :name unreferenced-footnote-definition :description "Report missing reference for foo..." :categories (footnote) :trust high) #s(org-lint-checker :name extraneous-element-in-footnote-section :description "Report non-footnote definitions ..." :categories (footnote) :trust high) #s(org-lint-checker :name invalid-keyword-syntax :description "Report probable invalid keywords" :categories (default) :trust low) ...))
  cl-mapcan(#f(compiled-function (c) #<bytecode 0x4001e11>) (#s(org-lint-checker :name duplicate-custom-id :description "Report duplicates CUSTOM_ID prop..." :categories (link) :trust high) #s(org-lint-checker :name duplicate-name :description "Report duplicate NAME values" :categories (babel link) :trust high) #s(org-lint-checker :name duplicate-target :description "Report duplicate targets" :categories (link) :trust high) #s(org-lint-checker :name duplicate-footnote-definition :description "Report duplicate footnote defini..." :categories (footnote) :trust high) #s(org-lint-checker :name orphaned-affiliated-keywords :description "Report orphaned affiliated keywo..." :categories (default) :trust low) #s(org-lint-checker :name obsolete-affiliated-keywords :description "Report obsolete affiliated keywo..." :categories (obsolete) :trust high) #s(org-lint-checker :name deprecated-export-blocks :description "Report deprecated export block s..." :categories (obsolete export) :trust low) #s(org-lint-checker :name deprecated-header-syntax :description "Report deprecated Babel header s..." :categories (obsolete babel) :trust low) #s(org-lint-checker :name missing-language-in-src-block :description "Report missing language in sourc..." :categories (babel) :trust high) #s(org-lint-checker :name missing-backend-in-export-block :description "Report missing back-end in expor..." :categories (export) :trust high) #s(org-lint-checker :name invalid-babel-call-block :description "Report invalid Babel call blocks" :categories (babel) :trust high) #s(org-lint-checker :name colon-in-name :description "Report NAME values with a colon" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-argument :description "Report wrong babel headers" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-value :description "Report invalid value in babel he..." :categories (babel) :trust low) #s(org-lint-checker :name deprecated-category-setup :description "Report misuse of CATEGORY keywor..." :categories (obsolete) :trust high) #s(org-lint-checker :name invalid-coderef-link :description "Report \"coderef\" links with unkn..." :categories (link) :trust high) #s(org-lint-checker :name invalid-custom-id-link :description "Report \"custom-id\" links with un..." :categories (link) :trust high) #s(org-lint-checker :name invalid-fuzzy-link :description "Report \"fuzzy\" links with unknow..." :categories (link) :trust high) #s(org-lint-checker :name invalid-id-link :description "Report \"id\" links with unknown d..." :categories (link) :trust high) #s(org-lint-checker :name link-to-local-file :description "Report links to non-existent loc..." :categories (link) :trust low) #s(org-lint-checker :name non-existent-setupfile-parameter :description "Report SETUPFILE keywords with n..." :categories (default) :trust low) #s(org-lint-checker :name wrong-include-link-parameter :description "Report INCLUDE keywords with mis..." :categories (export) :trust low) #s(org-lint-checker :name obsolete-include-markup :description "Report obsolete markup in INCLUD..." :categories (obsolete export) :trust low) #s(org-lint-checker :name unknown-options-item :description "Report unknown items in OPTIONS ..." :categories (export) :trust low) #s(org-lint-checker :name invalid-macro-argument-and-template :description "Report spurious macro arguments ..." :categories (export) :trust low) #s(org-lint-checker :name special-property-in-properties-drawer :description "Report special properties in pro..." :categories (properties) :trust high) #s(org-lint-checker :name obsolete-properties-drawer :description "Report obsolete syntax for prope..." :categories (obsolete properties) :trust high) #s(org-lint-checker :name invalid-effort-property :description "Report invalid duration in EFFOR..." :categories (properties) :trust high) #s(org-lint-checker :name undefined-footnote-reference :description "Report missing definition for fo..." :categories (footnote) :trust high) #s(org-lint-checker :name unreferenced-footnote-definition :description "Report missing reference for foo..." :categories (footnote) :trust high) #s(org-lint-checker :name extraneous-element-in-footnote-section :description "Report non-footnote definitions ..." :categories (footnote) :trust high) #s(org-lint-checker :name invalid-keyword-syntax :description "Report probable invalid keywords" :categories (default) :trust low) ...))
  org-lint--generate-reports(#<buffer test.org> (#s(org-lint-checker :name duplicate-custom-id :description "Report duplicates CUSTOM_ID prop..." :categories (link) :trust high) #s(org-lint-checker :name duplicate-name :description "Report duplicate NAME values" :categories (babel link) :trust high) #s(org-lint-checker :name duplicate-target :description "Report duplicate targets" :categories (link) :trust high) #s(org-lint-checker :name duplicate-footnote-definition :description "Report duplicate footnote defini..." :categories (footnote) :trust high) #s(org-lint-checker :name orphaned-affiliated-keywords :description "Report orphaned affiliated keywo..." :categories (default) :trust low) #s(org-lint-checker :name obsolete-affiliated-keywords :description "Report obsolete affiliated keywo..." :categories (obsolete) :trust high) #s(org-lint-checker :name deprecated-export-blocks :description "Report deprecated export block s..." :categories (obsolete export) :trust low) #s(org-lint-checker :name deprecated-header-syntax :description "Report deprecated Babel header s..." :categories (obsolete babel) :trust low) #s(org-lint-checker :name missing-language-in-src-block :description "Report missing language in sourc..." :categories (babel) :trust high) #s(org-lint-checker :name missing-backend-in-export-block :description "Report missing back-end in expor..." :categories (export) :trust high) #s(org-lint-checker :name invalid-babel-call-block :description "Report invalid Babel call blocks" :categories (babel) :trust high) #s(org-lint-checker :name colon-in-name :description "Report NAME values with a colon" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-argument :description "Report wrong babel headers" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-value :description "Report invalid value in babel he..." :categories (babel) :trust low) #s(org-lint-checker :name deprecated-category-setup :description "Report misuse of CATEGORY keywor..." :categories (obsolete) :trust high) #s(org-lint-checker :name invalid-coderef-link :description "Report \"coderef\" links with unkn..." :categories (link) :trust high) #s(org-lint-checker :name invalid-custom-id-link :description "Report \"custom-id\" links with un..." :categories (link) :trust high) #s(org-lint-checker :name invalid-fuzzy-link :description "Report \"fuzzy\" links with unknow..." :categories (link) :trust high) #s(org-lint-checker :name invalid-id-link :description "Report \"id\" links with unknown d..." :categories (link) :trust high) #s(org-lint-checker :name link-to-local-file :description "Report links to non-existent loc..." :categories (link) :trust low) #s(org-lint-checker :name non-existent-setupfile-parameter :description "Report SETUPFILE keywords with n..." :categories (default) :trust low) #s(org-lint-checker :name wrong-include-link-parameter :description "Report INCLUDE keywords with mis..." :categories (export) :trust low) #s(org-lint-checker :name obsolete-include-markup :description "Report obsolete markup in INCLUD..." :categories (obsolete export) :trust low) #s(org-lint-checker :name unknown-options-item :description "Report unknown items in OPTIONS ..." :categories (export) :trust low) #s(org-lint-checker :name invalid-macro-argument-and-template :description "Report spurious macro arguments ..." :categories (export) :trust low) #s(org-lint-checker :name special-property-in-properties-drawer :description "Report special properties in pro..." :categories (properties) :trust high) #s(org-lint-checker :name obsolete-properties-drawer :description "Report obsolete syntax for prope..." :categories (obsolete properties) :trust high) #s(org-lint-checker :name invalid-effort-property :description "Report invalid duration in EFFOR..." :categories (properties) :trust high) #s(org-lint-checker :name undefined-footnote-reference :description "Report missing definition for fo..." :categories (footnote) :trust high) #s(org-lint-checker :name unreferenced-footnote-definition :description "Report missing reference for foo..." :categories (footnote) :trust high) #s(org-lint-checker :name extraneous-element-in-footnote-section :description "Report non-footnote definitions ..." :categories (footnote) :trust high) #s(org-lint-checker :name invalid-keyword-syntax :description "Report probable invalid keywords" :categories (default) :trust low) ...))
  org-lint--refresh-reports()
  org-lint--display-reports(#<buffer test.org> (#s(org-lint-checker :name duplicate-custom-id :description "Report duplicates CUSTOM_ID prop..." :categories (link) :trust high) #s(org-lint-checker :name duplicate-name :description "Report duplicate NAME values" :categories (babel link) :trust high) #s(org-lint-checker :name duplicate-target :description "Report duplicate targets" :categories (link) :trust high) #s(org-lint-checker :name duplicate-footnote-definition :description "Report duplicate footnote defini..." :categories (footnote) :trust high) #s(org-lint-checker :name orphaned-affiliated-keywords :description "Report orphaned affiliated keywo..." :categories (default) :trust low) #s(org-lint-checker :name obsolete-affiliated-keywords :description "Report obsolete affiliated keywo..." :categories (obsolete) :trust high) #s(org-lint-checker :name deprecated-export-blocks :description "Report deprecated export block s..." :categories (obsolete export) :trust low) #s(org-lint-checker :name deprecated-header-syntax :description "Report deprecated Babel header s..." :categories (obsolete babel) :trust low) #s(org-lint-checker :name missing-language-in-src-block :description "Report missing language in sourc..." :categories (babel) :trust high) #s(org-lint-checker :name missing-backend-in-export-block :description "Report missing back-end in expor..." :categories (export) :trust high) #s(org-lint-checker :name invalid-babel-call-block :description "Report invalid Babel call blocks" :categories (babel) :trust high) #s(org-lint-checker :name colon-in-name :description "Report NAME values with a colon" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-argument :description "Report wrong babel headers" :categories (babel) :trust high) #s(org-lint-checker :name wrong-header-value :description "Report invalid value in babel he..." :categories (babel) :trust low) #s(org-lint-checker :name deprecated-category-setup :description "Report misuse of CATEGORY keywor..." :categories (obsolete) :trust high) #s(org-lint-checker :name invalid-coderef-link :description "Report \"coderef\" links with unkn..." :categories (link) :trust high) #s(org-lint-checker :name invalid-custom-id-link :description "Report \"custom-id\" links with un..." :categories (link) :trust high) #s(org-lint-checker :name invalid-fuzzy-link :description "Report \"fuzzy\" links with unknow..." :categories (link) :trust high) #s(org-lint-checker :name invalid-id-link :description "Report \"id\" links with unknown d..." :categories (link) :trust high) #s(org-lint-checker :name link-to-local-file :description "Report links to non-existent loc..." :categories (link) :trust low) #s(org-lint-checker :name non-existent-setupfile-parameter :description "Report SETUPFILE keywords with n..." :categories (default) :trust low) #s(org-lint-checker :name wrong-include-link-parameter :description "Report INCLUDE keywords with mis..." :categories (export) :trust low) #s(org-lint-checker :name obsolete-include-markup :description "Report obsolete markup in INCLUD..." :categories (obsolete export) :trust low) #s(org-lint-checker :name unknown-options-item :description "Report unknown items in OPTIONS ..." :categories (export) :trust low) #s(org-lint-checker :name invalid-macro-argument-and-template :description "Report spurious macro arguments ..." :categories (export) :trust low) #s(org-lint-checker :name special-property-in-properties-drawer :description "Report special properties in pro..." :categories (properties) :trust high) #s(org-lint-checker :name obsolete-properties-drawer :description "Report obsolete syntax for prope..." :categories (obsolete properties) :trust high) #s(org-lint-checker :name invalid-effort-property :description "Report invalid duration in EFFOR..." :categories (properties) :trust high) #s(org-lint-checker :name undefined-footnote-reference :description "Report missing definition for fo..." :categories (footnote) :trust high) #s(org-lint-checker :name unreferenced-footnote-definition :description "Report missing reference for foo..." :categories (footnote) :trust high) #s(org-lint-checker :name extraneous-element-in-footnote-section :description "Report non-footnote definitions ..." :categories (footnote) :trust high) #s(org-lint-checker :name invalid-keyword-syntax :description "Report probable invalid keywords" :categories (default) :trust low) ...))
  org-lint(nil)
  funcall-interactively(org-lint nil)
  call-interactively(org-lint nil nil)
  command-execute(org-lint)


             reply	other threads:[~2021-09-21  6:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21  6:47 Dominik Schrempf [this message]
2021-09-21  7:16 ` Org lint and Haskell source code blocks Ihor Radchenko
2021-09-21  7:27   ` Dominik Schrempf
2021-09-21  8:55     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsty7750.fsf@gmail.com \
    --to=dominik.schrempf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).