[BUG] Formatter preference is not stored

General discussion on Zend Studio
Post Reply
strgt
Posts: 35
Joined: Sat Feb 21, 2009 1:50 pm

[BUG] Formatter preference is not stored

Post by strgt » Thu May 18, 2017 9:43 pm

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

User avatar
kaloyan_r
Zend Product Manager
Posts: 582
Joined: Thu May 23, 2013 12:40 pm

Re: [BUG] Formatter preference is not stored

Post by kaloyan_r » Fri May 19, 2017 2:22 pm

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?
Kaloyan Raev
Zend Studio Team

strgt
Posts: 35
Joined: Sat Feb 21, 2009 1:50 pm

Re: [BUG] Formatter preference is not stored

Post by strgt » Fri May 19, 2017 3:30 pm

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?

User avatar
kaloyan_r
Zend Product Manager
Posts: 582
Joined: Thu May 23, 2013 12:40 pm

Re: [BUG] Formatter preference is not stored

Post by kaloyan_r » Mon May 22, 2017 8:32 am

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.
Kaloyan Raev
Zend Studio Team

strgt
Posts: 35
Joined: Sat Feb 21, 2009 1:50 pm

Re: [BUG] Formatter preference is not stored

Post by strgt » Mon May 22, 2017 11:49 am

Thank you. Let me try. I'm closing this issue as fixed.

Post Reply