Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21321734
D11048.id26529.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11048.id26529.diff
View Options
diff --git a/src/applications/config/check/PhabricatorSetupCheckPygment.php b/src/applications/config/check/PhabricatorSetupCheckPygment.php
--- a/src/applications/config/check/PhabricatorSetupCheckPygment.php
+++ b/src/applications/config/check/PhabricatorSetupCheckPygment.php
@@ -3,7 +3,6 @@
final class PhabricatorSetupCheckPygment extends PhabricatorSetupCheck {
protected function executeChecks() {
-
$pygment = PhabricatorEnv::getEnvConfig('pygments.enabled');
if ($pygment) {
@@ -47,6 +46,24 @@
->addPhabricatorConfig('environment.append-paths');
}
}
+ } else {
+ $summary = pht('Pygments should be installed and enabled '.
+ 'to provide advanced syntax highlighting.');
+
+ $message = pht(
+ 'The Pygments Python library provides advanced syntax '.
+ 'highlighting capabilities for over 300 languages.')."\n".
+ 'Pygments is optional and Phabricator will do syntax '.
+ 'highlighting without it. '."\n".
+ 'However enabling it will improve '.
+ 'Phabricators results for many languages.';
+
+ $this
+ ->newIssue('pygments.noenabled')
+ ->setName(pht('Pygments is not enabled/installed'))
+ ->setSummary($summary)
+ ->setMessage($message)
+ ->addRelatedPhabricatorConfig('pygments.enabled');
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 10, 7:31 PM (18 h, 4 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16408944
Default Alt Text
D11048.id26529.diff (1 KB)
Attached To
Mode
D11048: Setup check to install/enable pygments
Attached
Detach File
Event Timeline
Log In to Comment