Snap just auto updated to 2022.3 and changed my settings
Answered
When I open it up this morning I got a notification that snap has updated to the latest version.
When I went to format some html it had changed my settings to format attributes on a newline. It has also changed the way classes are formatted. Now when my colleague who uses the exact same formatting I setup formats his code I get crazy merge conflicts with git.
If I setup the code formatting on the IDE across all projects, why would you guys change them to what you think I should have them to?
And what else has changed?
Please sign in to leave a comment.
How to stop formatting like this
And change to this
How to stop formatting like this
And format like this
How to stop formatting like this
And format like this
Technically, nothing should change in terms of formatting after the IDE update. Do you use Settings Sync by the chance?
As for the specific examples, these are controlled by:
1. PHP > Wrapping and Braces > Array initializer > Align key-value pairs;
2. PHP > Wrapping and Braces > Assignment statement > Align consecutive assignments;
3. PHP > Wrapping and Braces > Chained method calls > Align when multiline, Wrap always;
Yes I am using Setting Sync and everything is set to be synced. This may have happened when I tested out the new ui. All of my colours are intact. it seems to be the formatting that has been changed so far.
This incident happed on my work pc which synced to the cloud and then to my home pc.
Thanks for the formatting directions. It's not so straightforward navigating/googling the formatting settings.
I have had sync set up for a long time so why when I fix the issues above at home and them come to work I have to fix them again?
What extra steps do I have to do now? These updates bring more problems than I had in the first place.
I didn't even want to update!
So it appears that 2022.3 has synced the messed up formatting settings last Friday, but cannot pull down changes I made at the weekend on my home PC. I also don't see the cloud icon at the bottom right on 2022.3
I really need to get on with work instead tweaking settings
It appears sync is no longer working as changes I make on home and work do not sync and I can no longer see the blue cloud icon since updating to 2022.3.
Has anything changed regarding this and how do I make sure it is syncing?
It seems that
no longer works either. Is there any way that this was also switched off with the update?
The formatter marker is disabled by default. You may enable it with the "Preferences/Settings | Editor | Code Style > Formatter > Turn formatter on/off markers":
As for the Settings Sync, there is no more cloud icon in the status bar as this feature has been reworked and it is not just a plugin but an included feature. Please check "Settings / Preferences | Settings Sync" settings window, do you have anything configured there?
Vasiliy Yur so I am correct in saying you have reset all my formatting settings.
Of course, IDE should not reset formatting settings on its own but in some bug cases, it may happen.
/.config/JetBrains/PhpStorm2022.3/options (or ~/.config/JetBrains/PhpStorm2022.2/options for previous build)/.config/JetBrains/PhpStorm2022.2/jba_config /.config/JetBrains/PhpStorm2022.3/settingsSync/options
For instance, there was an issue on one of the 2022.3 EAP builds where Settings Sync feature has just been introduced but not included in PhpStorm whereas an older plugin did not work anymore there. This situation caused IDE to use default settings location (old settings were intact but not used).
There is a difference in settings storage place with and without Settings Sync, for Linux it looks like:
- Default, no settings sync: ~
- Old IDE Settings Sync plugin, before the 2022.3 update: ~
- New Settings Sync feature since 2022.3: ~
Basically, if you use IDE Settings Sync in previous version, the 2022.3 installation should migrate your settings to the new plugin automatically. But as I may only suspect, for some reason it did not happen in your case.
Please check all the locations from the list above, do you have anything there?
Vasiliy Yur OK I found the old folder. I copied it over, but don't see any difference when I am formatting. I am still seeing default behaviors.
What is the logic behind the following formating?
And how do I know if it has synced? I am having to redo these settings from one PC to another.
I really need a solid way of syncing up my setting and not losing precious dev time making sure you guys don't cause mayhem in merge conflicts
I have checked your code sample on my installation with the default code style and in my case, only "</x-button-link>" on a third line moved to the next line. Apart from this, the formatting seems to be default, am I missing something?
Would it be possible to share your old config folder, so I could take a closer look on your Code Style settings?
You may use JetBrains upload services to share these in private:
https://uploads.jetbrains.com/
As for the solid way of settings synchronization, if Settings Sync does not work well for you, you may export/import settings manually (Settings Sync should be disabled though):
https://www.jetbrains.com/help/phpstorm/sharing-your-ide-settings.html#import-export-settings
How do I stop this happening. Firstly the class on a second line and second the closing arrow on a new line too.
```html
```
Have you tried setting "No wrap" in "Settings/Preferences | Editor | Code Style | HTML > Other > Wrap attributes"?
I habe just installed PHPstorm on a new Linux install and the same has happened. After I signed in tried to switch sync on to get my settings and plugins, but this time it pushed settings. so now all of my setting are gone, all of my formatting and colours are gone and no plugins either.
Please can you help me restore my previous settings as the default formatting is going to cause so much of a headache and I need all of my plugins and colours.
Ok so I found an old setting backup and imported that and got my colours and formatting back, but still no plugins.
I need to know what I must trun off to completly disable version control accept for coloured files which tells me what has been edited, which is new and which has been added. These are the only useful setting to me as I manage my own version control. I dont see what you have to insist on managing version control aswell if it not enough already to manage version control with out the added wrapper of the way you want us to do it.
from what I can see It looks as though sync simply does not work with new installs so now I have to just go bvack to backing up and remembering plaugins as this is the second time this has happend.
Hello Ben Taylor; regarding the Settings Sync problem you described: we had this bug before, but it was fixed in the 2022.3.3 release in the scope of this bug report. I'd recommend you use the latest available release 2023.1 because we're actively fixing Settings Sync bugs.
Do I understand correctly that you want to disable the color marking of files depending on their VCS status? If yes, you can uncheck the File Status Color option in the
Settings | Version Control | File Status Colors
window:If you want to achieve something else, could you please clarify what exactly you mean?
Olga Mulina I am already on 2023.1. I installed it again on another Linux machine yesterday and found that I had to switch off ASK with version control when I add a file. I have been switching this setting off for a few years now.
As I said, I don't want any version control settings "accept" for the File Status Colours. Is there a easy way to completely switch off version control and have it synced successfully or can you please just tell me that this setting is not synced, has never been synced and will never be synced.
Ben Taylor, to disable version control functionality, you can disable bundled VCS plugins such as Git and others in the
Settings | Plugins
window:If the Bundled plugins option is checked in the Settings Sync settings, its state will be synchronized to other IDEs starting from the 2022.3 release (where the new Settings Sync solution was introduced; please see this article):
I am here again today setting up formatting becuase synce does not work. Every time I install on another PC I have to spend half an hour setting these formatting rules.
I am trying to meet a dealine and this it messing my my job.
Please fix sync or tell me how on earth I can make sync work!
Ben Taylor, please share a screenshot of the Settings | Editor | Code Style pane.
Ben Taylor, could you please share the IDE log (
Help | Collect Logs and Diagnostic Data
) and thesettingsSync
folder from your IDE configuration directory? By the IDE, I mean the latest IDE you installed and where you needed to configure settings manually. It's needed to see if there are any errors related to the Settings Sync that prevented it from working normally.There is no way to attach this to this conversation. It contains sensitive. Usually I can do this and select who see it
Eugene Morozov Did that tell you anything. I'd like to know so that I can be familiar with what it should or should not be to make sync work correctly.
Ben Taylor, sorry, forgot to mention that you can upload it to our JetBrains Uploads service and write here the ID you receive.
Olga Mulina Thanks here is the upload
Upload id: 2023_06_02_iQw9XTGLFE3DT4vNpVUTuD (file: phpstorm-logs-20230602-10345615616139803950463206.zip)
Ben Taylor, thank you for sharing the log. In the log, I see several errors that typically occur when there are network problems, but it looks like the IDE settings were pulled from the server correctly on the first Settings Sync start.
Could you please share the
settingsSync
folder from your IDE configuration directory, as I asked before? This directory contains a Git log displaying the synchronization events, so I can see if the code style settings were pulled from the cloud correctly.You also can see it by yourself in the Settings Sync History toolwindow (type
Settings Sync History
in the Search Everywhere).