Since I consider it a bug, and would like a reply, I thought it would be better to post it as a new topic.
Aivars wrote:I think you will be better off contacting the support here https://www.webuilderapp.com/support-contact.php. We will need to find out info about your configuration to try to figure out what the problem could be.
To me, I suspect than PHP version might be at fault. Go to menu Options -> Preferences -> PHP Settings and make sure that Path to php.exe is set to PHP version 5.6 or newer. You can simply change it to C:\ProgramData\Blumentals\phpxdebug\php563\php.exe - that's the version that's included with WeBuilder and Rapid PHP 2018.
I'm using PHP version 5.4.34, and have the path to the php.exe for it set correctly, but get this error with RapidPHP 2018. Formatting worked fine with RapidPHP 2016. I didn't see anything in the release notes saying that RapidPHP 2018 requires the use of php 5.6 or newer! I'm not in a position to upgrade the version of PHP I'm using!
Indeed, setting menu Options -> Preferences -> PHP Settings -> Path to C:\ProgramData\Blumentals\phpxdebug\php563\php.exe does allow formatting to work. But won't that cause syntax checking and possibly other features to differ from the PHP version I'm using in production?