nanch / phpfmt_stable

This is a stable snapshot (version 6125cf9) of the phpfmt plugin for Sublime Text
143 stars 34 forks source link

get stuck when the php file over 2000 lines #58

Closed askme-gpt closed 5 years ago

askme-gpt commented 5 years ago

OS: windows 10 sublime version:3207 php version :7.3.6 phpfmt version:latest

when I ctrl+s to save the file,it get stuck.how to fix this ?thx image

askme-gpt commented 5 years ago

I solved this by myself 。 php 7.3.6 has bug, when I change php version to 7.1.31 ,it works fine.

JuanDMeGon commented 5 years ago

Hello, I faced the same in PHP 7.3.7 for files even with less than 250 lines. I resolved that with PHP 7.2.21. Just in case, you do not need to change the whole PHP version of your system, you can install an alternative PHP/PHP-CLI version and then configure the "php_bin" for phpfmt in Sublime. I hope it helps.