Gollum: MediaWiki pages show error due to breaking changes in twitter-text dependency

Created on 27 Dec 2017  路  6Comments  路  Source: gollum/gollum

I copied the text from the old wiki, saved the page, got a rendering error with the following text:
Failed to render page: uninitialized constant Twitter::Autolink
Can anyone help me?

gitlab-grit (2.8.2)
gollum (4.1.2)
gollum-grit_adapter (1.0.1)
gollum-lib (4.2.7)
rvm (1.11.3.9)
twitter-text (2.1.0)
wikicloth (0.8.3)
gem -v : 2.6.14
(I dont know what else might be needed)
P.S. MD pages works fine!

MediaWiki bug external

All 6 comments

I've traced this issue back to the 2.x release of twitter-text, which wikicloth uses internally. So this seems to be an issue for the wikicloth maintainers. However, you could try to manually fix twitter-text to the latest 1.x release and let me know if that resolves your issue.

Everything seems to work with twitter-text v. 1.14.7.

@bartkamphorst so is our strategy to fix twitter-text to the old version in 5.x? Or should we open a PR at wikicloth?

Both, I guess?

Update: there has been a wikicloth PR related to this since February. While it is unclear when the PR will be merged, it at least gives a hint for a monkeypatch: replace (or alias) Twitter::Autolink with Twitter::TwitterText::Autolink.

Update: the wikicloth PR has been merged into master, but we are currently waiting for a new wikicloth gem to be released.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hannahwong picture hannahwong  路  10Comments

deadc0de6 picture deadc0de6  路  11Comments

waltharius picture waltharius  路  7Comments

thomaskuntzz picture thomaskuntzz  路  3Comments

thorlucas picture thorlucas  路  4Comments