Page MenuHomePhabricator

pywikibot touch.py donesn't know -start parameter
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

python pwb.py touch -family:wikisource -start:A 
(-lang cs)

What happens?:

ERROR: Unable to execute script because no generator was defined.
Use -help for further information.

What should have happened instead?:

Page [[A. R.]] saved
Page [[ABGB]] saved
Page [[A co?]] saved
Page [[A co?/A co básník]] saved

When I use python pwb.py touch -family:wikisource -prefixindex:A everything works as excepted.
But prefixindex is not suitable for pages on the beginning and the end of pagelist
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Event Timeline

Xqt triaged this task as High priority.Jun 25 2026, 5:45 AM
Xqt added a project: Pywikibot-pagegenerators.
Xqt subscribed.

introduced in Pywikibot 11.3 with rPWBCfa0c6f6c

Xqt changed the task status from Open to In Progress.Jun 25 2026, 7:46 AM
Xqt claimed this task.
Zaidusyy subscribed.
This comment was removed by Zaidusyy.

I was able to reproduce this issue and investigated the regression locally. Since the task is already being worked on, I'll unassign myself. Please let me know if any additional testing would be helpful.

Change #1305628 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] Ensure GeneratorFactory.gens is not empty if a generator is specified

https://gerrit.wikimedia.org/r/1305628

@Zaidusyy: review of my change would be helpful
@JAnD: Because this is a important regression introduced with 11.3 I will publish a 11.4.1 stable release shortely after review.

Change #1305628 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Ensure GeneratorFactory.gens is not empty if a generator is specified

https://gerrit.wikimedia.org/r/1305628