ElSeiver created this task. ElSeiver added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Pywikibot is unable to read my environmental variable 'EDITOR' which is set to 'code -w' for VSCode. I see on editor.py that only a limited number of text editor names are supported by the TextEditor class, including kate, vim, emacs, jedit, and notepad++. First of all, I would recommend adding Sublime Text and VSCode to this list of supported editors. But if only such a limited number of editors are supported anyway, it's important to fall back to e.g. tkinter if the environmental variable for 'EDITOR' cannot be interpreted. Right now there is no fallback if there is any value for "EDITOR", resulting in a FileNotFoundError if TextEditor can't interpret that environmental variable. TASK DETAIL https://phabricator.wikimedia.org/T323078 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ElSeiver Cc: Aklapper, pywikibot-bugs-list, ElSeiver, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
