bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.63k stars 94 forks source link

Saving 'index.php': Running 'PHP Intelephense' Formatter (configure). #2282

Open AleksandrChorny opened 2 years ago

AleksandrChorny commented 2 years ago

Коли запускаю go live. видає таку помилку. Раніше такого не було.:

Saving 'index.php': Running 'PHP Intelephense' Formatter (configure).

Якщо працюю буз go live усе добре, але браузер не оновлюється автоматично. win 11.

kanlukasz commented 2 years ago

Please use only English and the issue template. This helps everyone to catch your problem faster and more clearly We don't know what version of VSCode you are using, what version of the add-on you are using, what your environment looks like, etc.

By the way, I don't understand what you wrote and where the problem is. Please be more specific

AleksandrChorny commented 2 years ago

vs code v1.70.1 PHP Intelligence v1.8.2 Live Server v5.7.5

I tried different versions, the problem is repeated.

While trying to understand the issue, I found out that the problem arises in large projects. I have two large folders with php APIs (google and bitrix24). if I remove any one of them, everything works correctly.

Also, the error does not occur when I do not enable the live server, or when I disable PHP Intelephense.

So what's going on? when I turn on (go live ) and save the php file there is an error: Saving 'index.php': Running 'PHP Intelephense' Formatter (configure). the php file being saved may not have any code at all, it still doesn't save, and an error occurs

The page is not updated, the file is not saved, even git goes into update mode (times appear on the git button and everything freezes...)

AleksandrChorny commented 2 years ago

Is it possible to make PHP Intelligence v1.8.2 ignore these two folders? Since the code in these folders is not my code anyway, I do not change it in any way.

AleksandrChorny commented 2 years ago

Working!!

So this error occurs due to the large number of files that need to be processed by PHP Intelephense. Therefore, folders or files that do not need to be controlled should be added to the exclusions.

intelephense.files.exclude

AleksandrChorny commented 2 years ago

The problem is back.

The problem is back. When I turn on go live and save changes - saving hangs for a minute or two with the message I wrote above.