kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
130 stars 30 forks source link

Throws an error in VS Code #135

Closed codepen22 closed 10 months ago

codepen22 commented 10 months ago

03:11:36.197 [INFO] Extension Version: 1.1.34 03:11:43.195 [INFO] settings reloaded 03:11:43.222 [INFO] settings reloaded 03:11:43.261 [INFO] settings reloaded 03:12:19.450 [ERROR] getting php version failed Cannot load Zend OPcache - it was already loaded

03:12:19.452 [ERROR] Format failed 03:12:19.452 [ERROR] phpfmt: "php -v" returns non-zero code 03:13:39.389 [ERROR] getting php version failed Cannot load Zend OPcache - it was already loaded

03:13:39.391 [ERROR] Format failed 03:13:39.392 [ERROR] phpfmt: "php -v" returns non-zero code 03:17:29.383 [ERROR] getting php version failed Cannot load Zend OPcache - it was already loaded

03:17:29.386 [ERROR] Format failed 03:17:29.386 [ERROR] phpfmt: "php -v" returns non-zero code

codepen22 commented 10 months ago

Alsways throws this error, i am not sure what is the problem, had to uninstall

kokororin commented 10 months ago

Can you show the output of php -v

codepen22 commented 10 months ago

Can you show the output of php -v

λ php -v Cannot load Zend OPcache - it was already loaded PHP 8.2.4 (cli) (built: Mar 14 2023 17:54:25) (ZTS Visual C++ 2019 x64) Copyright (c) The PHP Group Zend Engine v4.2.4, Copyright (c) Zend Technologies with Zend OPcache v8.2.4, Copyright (c), by Zend Technologies

kokororin commented 10 months ago

fixed.