kokororin / vscode-phpfmt

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

PHP is invalid #107

Closed jcrasgado closed 1 year ago

jcrasgado commented 1 year ago

Thanks for the quick response to the above problem.

I found a new problem, I hope I can explain it well..

First you must enable and configure xdebug.mode = debug and xdebug .start_with_request = yes

When this setting is enabled and they do not have a debugging client active, the following error is thrown and the plugin fails

image

image

If the debugging client is active, this error goes away

image

image

I found a solution setting xdebug.log_level = 0

I don't know if this works for everyone because by default xdebug keeps the log_level to 7 aand probably many use this value

image

Thank you for your time, and I hope the information is helpful.

kokororin commented 1 year ago

Hi @jcrasgado

Can you confirm if version 1.1.7 fixes this issue?