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.
Sorry I missed that. Please see upload here Upload id: 2023_06_04_4A5mJApBiz26KLWdcX2R8q (file: settingsSync.rar)
Thank you for sharing the archive, but as I see, the archive belongs to the IDE that wasn't freshly installed recently, as you described before. In the Settings Sync history, I see that after the IDE update, your settings were migrated from the old IDE Settings Sync, but since there already were settings in the new Settings Sync cloud, the IDE code style scheme was rewritten:
In the previous messages, you said that the IDE code style settings weren't synchronized to the new IDEs. Could you please share the
settingsSync
folder from the IDE where you observed this behavior?This is from a fresh install on Windows 10. The
settingsSync folder is from the fresh install of PHPstorm. I dont know where else to get these settings. I installed Windows 10 last week on a new system then PhpStorm and the formatting issues were seen the moment I pulled setting from the could. Somehow whenever I fix the formatting settings and git settings they are never uploaded.
This has happened every time that I have installed the latest version on many occasions since I posted this thread. So much so that I know it is going to happen every time on both Windows 10, Windows 11 and Ubuntu 22.04. This not only includes the formatting issues, but Git > Conformation settings also need my attention every time.
The Settings Sync archive you shared is from PhpStorm 2022.3 directory, but you mentioned before in this comment that you use the 2023.1 version of the IDE. For each major version, a new configuration folder should be created.
Also, as you can see in the screenshot above, the migration from the old IDE Settings Sync to the new one (so, the first start of 2022.3 version of IDE) happened on 23 of December, and in the comment before, you stated that you installed a new IDE instance at 17 of April, and after installation, you met the problem with your settings synchronization. To understand what exactly happened after the IDE installation in April, I need to see the Settings Sync folder from that IDE instance.
I'm not sure how you are handling sync, but I have no control over the windows machine past setting as it was installed last week and the settings it pulled were from the cloud as they always are. I have a Windows 11 laptop as well that was a fresh install about 3 weeks ago and it happened there. I have installed Ubuntu maybe 3 times in the last 8 months and exactly the same happens there also.
I have updated my setting here now on the new machine. Surely the settings have synced up to the cloud now? But I know this is not the case because the moment I install on a new machine the setting never sync
Ben Taylor, as I said before, the bug that sounds very similar to the description of your problem was fixed in the 2022.3.3 release, which was published on 8 March 2023. So, when you installed the IDE before this date (3 months ago), the problem you met could have been caused by this bug.
Is it possible to share the Settings Sync folder from this laptop?
I can check which settings are presented in our cloud now. Could you please share the name of your JetBrains Account?
Here is the settingSync folder from Windows 11 Upload id: 2023_06_06_41FCGdYT4QReXXacc6Q9Ts (file: settingsSync.rar)
Thank you for sharing the archive.
In the Settings Sync log, I see that the code style file was synced from the cloud successfully:
However, the version in the cloud contains only 3 settings.
Please, try to do the following:
After that, your latest code style settings should be presented in the cloud, and you can open your other IDEs and wait for settings to be synced. To control the process, you can see if the settings were synced to/from the cloud in the Settings Sync toolwindow.
Please, note that the IDEs should use the same JetBrains account, and there should be no network problems so the settings can be synced without errors.
Also, please, note that if anything prevents Settings Sync from synchronizing your settings, you still can copy them manually; the code style scheme is presented in the
codestyles
folder in the IDE configuration directory.Olga Mulina I understand what you are asking me to do, but this is just the way it is supposed to work and the reason I created this thread. Every time I install Storm on a new PC my settings are not being synced. This is when I proceed to fix the un-synced settings again by doing what you say...
I do this every time this happens and it never syncs the formatting settings, neither does it sync GIT changes.
I am not sure how else I can make this sync work without any way to view cloud settings or confirm my changes are being synced.
Ben Taylor, is it possible to share your JetBrains Account name, as I asked before? If you don't want to share it here, you can submit a request via the contact form and mention this post in your request.
Using your JetBrains Account name, I can take a look at our cloud and check if the code style settings were synced there.
Olga Mulina I cannot see any thing in my profile here. but I believe my username is warmwhisky. Does that help?
Ben Taylor, thank you, I found your settings on the cloud. As I see, for now, the settings for PhpStorm IDEs contain a short code style file:
I also see that there are two sets of settings in the cloud, one made for PhpStorm-only synchronization and another one for the case when the cross-IDE synchronization is enabled. The PhpStorm one contains fewer settings than another one; it could be related to your problem. Could you please check if the PhpStorm instances only option is enabled in all your IDEs?
Here are my setting sync settings
Olga Mulina
The issue with formatting setting started when I upgraded to 2023 version I beleive, but the Git confirmation settings have been going on long before this issue.
Ben Taylor, could you please clarify which exact settings you mean by Git confirmation settings? A screenshot could be very helpful for me.
Also, please, perform the following actions in the IDE where your code style settings are set up as you want; it's needed to determine why they weren't synchronized to the cloud:
Help | Collect Logs and Diagnostic Data
);settingsSync
folder from your IDE configuration directory;Thank you for your patience. I need all this data because there was no clear reason for the behavior you described in the logs you shared before.
Olga Mulina Hi Olga, sorry it has taken a while to get this done.
I logged into my Windows 11 laptop and was prompted to "Add file to GIT" I changed the settings to "Never ask" on deleting, adding and various other GIT related options (I have done this continuly over the last year) then I restarted PhpStorm and gathered the required logs and archived my settingsSync folder. I have uploaded both files to here Upload id: 2023_06_24_w26YFWWAePpfgSfuF2XaEz (files: settingsSync.rar, phpstorm-logs-20230624-1407118794588709685704671.zip)
I hope this helps
Ben Taylor, please, note that the Git settings, including the one you mentioned, are set up per project, not IDE-wide, so these settings are not synchronized via the Settings Sync. Please, try to make changes in Editor or Code Style settings that are not marked with the icon displayed below:
I did know that. I actually have a seperate thread for this particular issue. I have been experiencing Git issues since using PhpStorm. This has never stopped. I have set it in projects and also for new projects as below. but it continues to not sync. Every time I install PhpStorm the following setting are never syced.
Were you able to see why opther setting never sync from the uploads that I sent?
As I see in the IDE logs, there were no changes in the settings that are synced with the Settings Sync since 10.06, when the default Code Style file was changed.
The screenshot displaying the Settings Sync history:
The corresponding IDE log entries:
The most recent Settings Sync event when the settings were checked, but there were no changes:
What does this mean? Does this mean there is an issue with settings sync? From my point of view there is an issue with it as my settings never actually sync. The formatting settings have not synced since 2022.3 and my Git settings, I beleive, have never synced, not since I started using this software.
Could you please specify which exact IDE settings have been changed in the IDE instance, which logs you shared, since 10.06? As I said before, Settings Sync shouldn't synchronize the Git settings as these settings are set up separately for each project.
The following setting have not been synced since I started this thread
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;
Every time I install a new version on a new PC I have to reset these settings.
Ben Taylor, regrettably, the answer isn't very helpful. Could you please perform the actions I asked about before?