Page MenuHomePhabricator

Improve error message when Composer-related dependencies are missing (kill "Error: LightnCandy class not defined" error message)
Open, Needs TriagePublic

Description

Let's say I run:

$ git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git w

And then I navigate to w/index.php in a Web browser. I get the following error message:

Error: LightnCandy class not defined

It's difficult for me to imagine a more unhelpful error message. The issue here (of course) is that I'm missing some Composer-related dependencies. Cloning the vendor repo is one "workaround."

However, we really should do better here. We should gracefully catch this error and output a sane, useful error message. Something like "hey, maybe you want to clone the vendor repo or read this wiki page about Composer" or something.

Event Timeline

MZMcBride raised the priority of this task from to Needs Triage.
MZMcBride updated the task description. (Show Details)
MZMcBride added subscribers: MZMcBride, Krinkle, bd808, ori.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 11 2015, 7:20 PM
MZMcBride added a subscriber: aude.May 11 2015, 7:22 PM

This task is vaguely related to T88951 and T74777, I guess.

It looks like @aude's https://gerrit.wikimedia.org/r/205001 might resolve this issue.

MZMcBride renamed this task from Improve error message when vendor directory is missing (kill "Error: LightnCandy class not defined") to Improve error message when Composer-related dependencies are missing (kill "Error: LightnCandy class not defined" error message).May 11 2015, 7:24 PM
MZMcBride set Security to None.