Closed wessven closed 3 years ago
What version of Jekyll are you using? How can we reproduce this?
This issue has been automatically marked as stale because it has not been commented on for at least two months.
The resources of the Jekyll team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master
branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.
This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.
@DirtyF, I have just recently encountered this issue as well. I will attempt to answer your questions from your previous post.
What version of Jekyll are you using?
Currently, I am running Jekyll (4.2.0), and Ruby (2.7.0). Additionally, here is a list of all Jekyll gems I'm currently using:
jekyll (4.2.0)
jekyll-asciidoc (3.0.0)
jekyll-feed (0.15.1)
jekyll-paginate (1.1.0)
jekyll-sass-converter (2.1.0)
jekyll-sitemap (1.4.0)
jekyll-watch (2.2.1)
jemoji (0.12.0)
How can we reproduce this?
I ran into this issue whilst adding the jekyll-asciidoc plugin to the jekyll-TeXt-theme. The TeXt theme already includes the jemoji plugin.
I'm running Ubuntu 20.04 (focal).
The simplest way I could reproduce this issue (assuming you have Jekyll and aforementioned gems already installed) is as follows:
git clone https://github.com/kitian616/jekyll-TeXt-theme.git
_config.yml
scroll to the plugins:
section and add - jekyll-asciidoc
. It should look like this:
# _config.yml
^ ^
| other settings |
############################## plugins:
3. Next add the `jekyll-asciidoc` plugin to the `Gemfile`. Should look like this:
source "https://rubygems.org"
group :jekyll_plugins do gem 'jekyll-asciidoc' end
gemspec
4. Add an `.asciidoc` file to the `_posts` folder. I created a simple test file called `2020-01-20-test-post.asciidoc`. The file `2020-01-20-test-post.asciidoc` simply contains a single line:
// 2021-01-20-test-post.asciidoc
Hello World!
5. Lastly, from the root of the repo, build the site with Jekyll:
bundle exec jekyll build
## Conclusion
Phew. 😅
Lastly, since your last comment, there has been some more discussion in this [issue](https://github.com/asciidoctor/jekyll-asciidoc/issues/230) which could be insightful.
I'm not really familiar with Ruby (and new to Jekyll itself!), but hopefully this writeup can assist others with reproducing/solving this issue. If you have any further questions, feel free to ask; I'll try my best to help out.
My apologies for not replying earlier.
So this does appear to be a bug with jekyll-asciidoc. The Jekyll maintainers had a discussion with the jekyll-asciidoc maintainers and convinced them that this needs to be fixed there.
@tfriz343 Would you mind mentioning on the jekyll-asciidoc ticket that you are experiencing this issue as well? https://github.com/asciidoctor/jekyll-asciidoc/issues/230
@wessven Sure. Will do. 👍
I'm encountering the error in the title when I try to use
jekyll-asciidoc
andjemoji
together. I first raised this issue with thejekyll-asciidoc
developers, but their response was that the error results from thewrite?
method being missing, but that method is not part of the Jekyll API, therefore they should not need to support/implement it.The error occurs when I enable
jemoji
plugin on any theme. (The following error mentions thejekyll-mentions
plugin, but is essentially the same forjemoji
)The line of code which causes the exception is
This error occurs both with implicit
page-excerpt
definitions and where it is inferred frompage-excerpt_separator
.