Hello there,

I've tried setting this module up however it simply will not detect the PHPygments library. All permissions are correct, moved the PHPygments folder out of the src folder in the archive (you should probably update your documentation to reflect that the actual PHPygments folder is inside the src folder in the archive), tried with just the standard folder as is unzipped... All sorts.

Any ideas?
Cheers

Comments

tr33m4n’s picture

Scratch that, seems to be working now

tr33m4n’s picture

I had to remove the pygmentizer_requirements function though, seems to actually work fine, guess the way the module is using libraries is incorrect

el7cosmos’s picture

Title: Refuses to see library » Library not detected when installing
Category: support » bug
Priority: Normal » Critical
StatusFileSize
new484 bytes

The problem is in pygmentizer_requirements() call libraries_detect("PHPygments").

Since module not installed, then this library is not registered yet via pygmentizer_libraries_info() and libraries_detect("PHPygments") will always return FALSE.

I don't know if this good practice, but i change the requirement to check only in runtime phase

tr33m4n’s picture

Thanks for that, will patch and test when next working on that project

el7cosmos’s picture

Status: Active » Needs review
capynet’s picture

Status: Needs review » Closed (fixed)

Patch #3 applied!

Duion’s picture

Issue summary: View changes

I have the patched version, but still the same issue, cannot activate the module, because the library is not detected.

Duion’s picture

Sorry, my fault, it works now.