driade / phpfmt8

PHP formatter for Sublime Text 4, with PHP 8 support.
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

Manjaro Linux php 8.3 process of reverting to 8.2 #72

Open mpmont opened 5 months ago

mpmont commented 5 months ago

Hi there.

On the last version of Manjaro Linux the php executable upgraded to 8.3. That added a few problems into the fmt Package that I will report on other issues.

To revert this process I installed php8.2 alongside 8.3 and pointed the executable to it.

However the plugin does not complain saying it does not find the binary but it does not work at all.

Tried to run it with the console to see if there's any error but nothing.

So I ran fmt troubleshoot information and I thing I got something.

When I point to the 8.2 binary this is what I get:

Screenshot_20240321_095330

Something about that constant not being defined.

mpmont commented 5 months ago

Do I need to install something more than than vanilla php82 for it to work?

driade commented 5 months ago

Hi @mpmont . No, you shouldn't need any more than the binary. May you please confirm this?

https://www.php.net/manual/es/tokenizer.installation.php

So, knowing if php is compiled with the builtn tokenizer.

php -i|grep [tT]oke
driade commented 5 months ago

That added a few problems into the fmt Package that I will report on other issues.

Waiting for them, thanks!