scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
4.02k stars 296 forks source link

No php installation could be found #102

Open naiyouweibaomihua opened 3 months ago

naiyouweibaomihua commented 3 months ago

PHP-Parser is already installed,but:

code2flow function.php Code2Flow: Found 1 files from sources argument. Code2Flow: Implicitly detected language as 'php'. Code2Flow: Processing 1 source file(s). Code2Flow: function.php Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\sail\Program\Interpreter\python\Python312\Scripts\code2flow.exe__main__.py", line 7, in File "D:\sail\Program\Interpreter\python\Python312\Lib\site-packages\code2flow\engine.py", line 860, in main code2flow( File "D:\sail\Program\Interpreter\python\Python312\Lib\site-packages\code2flow\engine.py", line 734, in code2flow file_groups, all_nodes, edges = map_it(sources, language, no_trimming, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\sail\Program\Interpreter\python\Python312\Lib\site-packages\code2flow\engine.py", line 462, in map_it language.assert_dependencies() File "D:\sail\Program\Interpreter\python\Python312\Lib\site-packages\code2flow\php.py", line 233, in assert_dependencies assert is_installed('php'), "No php installation could be found" ^^^^^^^^^^^^^^^^^^^ AssertionError: No php installation could be found