Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96239462
PhabricatorSetupCheckPygment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 24, 01:40
Size
960 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 01:40 (2 d)
Engine
blob
Format
Raw Data
Handle
23141718
Attached To
rPH Phabricator
PhabricatorSetupCheckPygment.php
View Options
<?php
final
class
PhabricatorSetupCheckPygment
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$pygment
=
PhabricatorEnv
::
getEnvConfig
(
'pygments.enabled'
);
if
(
$pygment
)
{
list
(
$err
)
=
exec_manual
(
'pgymentize -h'
);
if
(
$err
)
{
$summary
=
pht
(
'You enabled pygments but the pygmentize script is not '
.
'actually available, your $PATH is probably broken.'
);
$message
=
pht
(
'The environmental variable $PATH does not contain '
.
'pygmentize. You have enabled pygments, which requires '
.
'pygmentize to be available in your $PATH variable.'
);
$this
->
newIssue
(
'pygments.enabled'
)
->
setName
(
pht
(
'pygmentize Not Found'
))
->
setSummary
(
$summary
)
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'pygments.enabled'
)
->
addPhabricatorConfig
(
'envinronment.append-paths'
);
}
}
}
}
Event Timeline
Log In to Comment