Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-06-18 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide"  writes:

> - Requirements: mercurial, make, Emacs (naturally :))
>
> hg clone https://hg.sr.ht/~arnebab/draketo
> cd draketo
> autoreconf -i
> ./configure
> make

I tried to reproduce using this recipe, but I am unable to:

[yantar92:/tmp/draketo] default ☿ 
> autoreconf -i
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:14: installing './install-sh'
configure.ac:14: installing './missing'
Makefile.am:10: warning: wildcard *.org assets/* [b-z]*/*.org */.htaccess: 
non-POSIX variable name
Makefile.am:10: (probably a GNU make extension)
Makefile.am:13: warning: wildcard .org-timestamps/*: non-POSIX variable name
Makefile.am:13: (probably a GNU make extension)
Makefile.am:13: warning: wildcard */*-tmp.png: non-POSIX variable name
Makefile.am:13: (probably a GNU make extension)
Makefile.am:13: warning: CLEANFILES multiply defined in condition TRUE ...
Makefile.am:3: ... 'CLEANFILES' previously defined here
Makefile.am:14: warning: wildcard site/* site/*/* site/*/*/*: non-POSIX 
variable name
Makefile.am:14: (probably a GNU make extension)
Makefile.am:14: warning: wildcard .cache/*: non-POSIX variable name
Makefile.am:14: (probably a GNU make extension)
Makefile.am:14: warning: wildcard .cache/fontconfig/*: non-POSIX variable name
Makefile.am:14: (probably a GNU make extension)
Makefile.am:14: warning: wildcard politik/*.png: non-POSIX variable name
Makefile.am:14: (probably a GNU make extension)
Makefile.am:14: warning: wildcard 
.cache/guile/ccache/*/gnu/store/*-emacs-geiser-*/share/geiser/guile/geiser/*: 
non-POSIX variable name
Makefile.am:14: (probably a GNU make extension)
Makefile.am:23: warning: realpath @abs_top_builddir@: non-POSIX variable name
Makefile.am:23: (probably a GNU make extension)
Makefile.am:26: warning: wildcard assets/*png: non-POSIX variable name
Makefile.am:26: (probably a GNU make extension)
Makefile.am:31: warning: foreach filename,$(minified_assets: non-POSIX variable 
name
Makefile.am:31: (probably a GNU make extension)
Makefile.am:31: warning: foreach filename,$(wildcard site/*.html site/*/*.html: 
non-POSIX variable name
Makefile.am:31: (probably a GNU make extension)
Makefile.am:31: warning: subst site/,,$(filename: non-POSIX variable name
Makefile.am:31: (probably a GNU make extension)
Makefile.am:31: warning: subst .html,,$(subst site/,,$(filename: non-POSIX 
variable name
Makefile.am:31: (probably a GNU make extension)
Makefile.am:46: warning: realpath @abs_top_builddir@: non-POSIX variable name
Makefile.am:46: (probably a GNU make extension)
Makefile.am: installing './INSTALL'
configure.ac:577: error: required file 
'wissen/Mike_Perry-comic-roll-a-die-2014-climate-deutsch-1-2-3.png' not found
configure.ac:1029: error: required file 
'kreatives/best-thing-today--2022-2023--18-klein.png' not found
configure.ac:1029: error: required file 
'kreatives/best-thing-today--2022-2023--18.png' not found
configure.ac:1175: error: required file 'software/package-guix.org' not found
configure.ac:1195: error: required file 
'anderes/2023-11-11-taijiquan-form-teil-1-vertikal.png' not found
configure.ac:1195: error: required file 
'anderes/2023-11-11-taijiquan-form-teil-1-vertikal.svg' not found
autoreconf-2.72: error: automake failed with exit status: 1
[yantar92:/tmp/draketo] default* 6s 1 ☿ 
> ./configure 
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: 'Makefile.in'

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide"  writes:

>> May you be able to make a reproducer that will demonstrate the problem
>> with your config installed from scratch?
>
> What would help you best?
>
> The setup is built to be as self-contained as possible (so the config
> from the repository is used, not my local one).
>
> I can try to build a Dockerfile or see whether I can get it working in a
> VM, or create a new user account and get it to work there.

The simplest would be just telling me which commands I need to run in
terminal and Emacs to reproduce the issue.

Or, alternatively, you can add
(setq org-element--cache-self-verify 'backtrace)
(setq org-element--cache-self-verify-frequency 1.0)
to the config, and then share the long log you will see alongside the
warnings with the above settings.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Dr. Arne Babenhauserheide
Ihor Radchenko  writes:

> "Dr. Arne Babenhauserheide"  writes:
>
>> I added
>> ;;; use dev-version of org-mode
>> (setq load-path (cons "~/eigenes/Programme/org-mode/lisp" load-path))
>> (setq load-path (cons "~/eigenes/Programme/org-mode/contrib/lisp" load-path))
>>
>> just before (require 'org).
>> ...
>> On the second run I got the endless org-element-cache warnings again,
>> though.
>
> May you be able to make a reproducer that will demonstrate the problem
> with your config installed from scratch?

What would help you best?

The setup is built to be as self-contained as possible (so the config
from the repository is used, not my local one).

I can try to build a Dockerfile or see whether I can get it working in a
VM, or create a new user account and get it to work there.

Best wishes,
Arne


signature.asc
Description: PGP signature


Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide"  writes:

> I added
> ;;; use dev-version of org-mode
> (setq load-path (cons "~/eigenes/Programme/org-mode/lisp" load-path))
> (setq load-path (cons "~/eigenes/Programme/org-mode/contrib/lisp" load-path))
>
> just before (require 'org).
> ...
> On the second run I got the endless org-element-cache warnings again,
> though.

May you be able to make a reproducer that will demonstrate the problem
with your config installed from scratch?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-19 Thread Dr. Arne Babenhauserheide
Ihor Radchenko  writes:

> "Dr. Arne Babenhauserheide"  writes:
>
>> I often see a huge number of warnings while publishing my website with
>> org-publish:
>>
>> Warning (org-element-cache): org-element--cache: Got empty parent while
>> parsing.
>> ...
>> To reproduce (though I’m not sure whether this will work outside my
>> machine):
>>
>> - Requirements: mercurial, make, Emacs (naturally :))
>>
>> hg clone https://hg.sr.ht/~arnebab/draketo
>> cd draketo
>> autoreconf -i
>> ./configure
>> make
>>
>> This should open a graphical Emacs (required for good syntax
>> highlighting) which then displays the warnings in the *Warnings* buffer.
>
> What if you use the dev version of Org mode?

I added
;;; use dev-version of org-mode
(setq load-path (cons "~/eigenes/Programme/org-mode/lisp" load-path))
(setq load-path (cons "~/eigenes/Programme/org-mode/contrib/lisp" load-path))

just before (require 'org).

And with that I didn’t see the problem before creating a new article.

When I  tried creating a new article, the org-element-cache problem
didn’t appear at the start.

What I saw in the minibuffer are messages I’d been ignoring before:
after adding a new article, the first run errors out and the *Messages*
buffer ends with:

Mark set
Replaced 0 occurrences
Code block produced no output (took 0.3s).
htmlize-face-to-fstruct-1: Wrong type argument: htmlize-fstruct, 
#s(htmlize-fstruct "#00" "#ff" nil nil nil nil nil nil nil)
Package cl is deprecated

I had to quit manually (though I could have waited for the timeout in
the Makefile). I’m not sure whether this is local breakage from my
setup.


On the second run I got the endless org-element-cache warnings again,
though.


After aborting with C-g, exiting (with regular quit) and running the
third time, that org-element-cache warning appeared for three articles,
but only once each:

- 
https://hg.sr.ht/~arnebab/draketo/browse/politik/terror-gegen-israel.org?rev=tip
- https://hg.sr.ht/~arnebab/draketo/browse/software/install-on-guix.org?rev=tip
- 
https://hg.sr.ht/~arnebab/draketo/browse/software/install-freenet-linux.org?rev=tip


Best wishes,
Arne


signature.asc
Description: PGP signature


Re: [BUG] org-publish: org-element--cache: Got empty parent while parsing [9.6.18 ( @ /home/arne/.emacs.d/elpa/org-9.6.18/)]

2024-05-18 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide"  writes:

> I often see a huge number of warnings while publishing my website with
> org-publish:
>
> Warning (org-element-cache): org-element--cache: Got empty parent while
> parsing.
> ...
> To reproduce (though I’m not sure whether this will work outside my
> machine):
>
> - Requirements: mercurial, make, Emacs (naturally :))
>
> hg clone https://hg.sr.ht/~arnebab/draketo
> cd draketo
> autoreconf -i
> ./configure
> make
>
> This should open a graphical Emacs (required for good syntax
> highlighting) which then displays the warnings in the *Warnings* buffer.

What if you use the dev version of Org mode?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at