Page 1 of 1

[BUG] Formatter preference is not stored

Posted: Thu May 18, 2017 9:43 pm
by strgt
In the window / preferences menu, PHP / Code Style / Formatter option, The default active profile is Zend Framework 1.

If I switch it to another value, like PSR-2 [built-in], click apply, click OK, the profile is applied.

If I close Zend Studio and open it again, the active profile is restored to Zend Framework 1.

If I create a new profile, (not built-in) and close/open Zend Studio, that new profile is also lost.

I'm currently using ZS 13.6, but this has happened since Zend Studio switched to Eclipse.

P.D. Why are the preferences under the 'window' menu? zero intuitive

Re: [BUG] Formatter preference is not stored

Posted: Fri May 19, 2017 2:22 pm
by kaloyan_r
I cannot reproduce the issue reported here. Any changes in the formatter profiles are persisted between restarts.

Note that PSR-2 is the default formatter profile for several releases of Zend Studio.

Could you try reproducing the issue in a fresh new workspace?

Re: [BUG] Formatter preference is not stored

Posted: Fri May 19, 2017 3:30 pm
by strgt
kaloyan_r wrote:Could you try reproducing the issue in a fresh new workspace?
It looks it works in a clean workspace. How do I clean my workspace?

Re: [BUG] Formatter preference is not stored

Posted: Mon May 22, 2017 8:32 am
by kaloyan_r
It's hard to tell what went wrong with the metadata in your existing workspace. It might be the case that your other issue with CodeSniffer is also related to the workspace's metadata messed up.

It would be best if you import your projects in the new fresh workspace.

Re: [BUG] Formatter preference is not stored

Posted: Mon May 22, 2017 11:49 am
by strgt
Thank you. Let me try. I'm closing this issue as fixed.