Page MenuHomePhabricator

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

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)

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.
Seb35 claimed this task.
Seb35 subscribed.

This was solved at some point, there is currently a screen as shown in T108097, and given the date of this other task it was probably solved shortly after in 2015.

Seb35 removed Seb35 as the assignee of this task.Mar 3 2021, 9:28 PM

It was solved by the patch mentionned above, merged a few days after this task.