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?

0
53 comments

Sorry I missed that. Please see upload here Upload id: 2023_06_04_4A5mJApBiz26KLWdcX2R8q (file: settingsSync.rar)

0

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? 

0

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.

0

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.

0

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

0

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. 

 

I have a Windows 11 laptop as well that was a fresh install about 3 weeks ago and it happened there.

Is it possible to share the Settings Sync folder from this laptop? 

 

I have updated my setting here now on the new machine. Surely the settings have synced up to the cloud now?

I can check which settings are presented in our cloud now. Could you please share the name of your JetBrains Account? 

0

Here is the settingSync folder from Windows 11 Upload id: 2023_06_06_41FCGdYT4QReXXacc6Q9Ts (file: settingsSync.rar)

0

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:

  • open the IDE where the Code Style settings are configured correctly;
  • change anything in the Code Style and save the changes (the Settings Sync should react to these changes and push your settings to the cloud);
  • change Code Style back to the state it was before, if necessary;
  • close the IDE. 

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.

0

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...

  • change anything in the Code Style and save the changes (the Settings Sync should react to these changes and push your settings to the cloud);

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.

0

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.

0

Olga Mulina I cannot see any thing in my profile here. but I believe my username is warmwhisky. Does that help?

0

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:

  <HTMLCodeStyleSettings>
<option name="HTML_ATTRIBUTE_WRAP" value="0" />
</HTMLCodeStyleSettings>
<PHPCodeStyleSettings>
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
<option name="ALIGN_ASSIGNMENTS" value="true" />
</PHPCodeStyleSettings>
<editorconfig>
<option name="ENABLED" value="false" />
</editorconfig>
<codeStyleSettings language="PHP">
<option name="CLASS_BRACE_STYLE" value="1" />
<option name="METHOD_BRACE_STYLE" value="1" />
<option name="METHOD_CALL_CHAIN_WRAP" value="5" />
</codeStyleSettings>
</code_scheme>


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? 

0

Here are my setting sync settings

0

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. 

0

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:

  • make any changes in the Code style settings, as I asked before; 
  • restart the IDE; 
  • collect the IDE logs (Help | Collect Logs and Diagnostic Data);
  • archive the settingsSync folder from your IDE configuration directory;
  • share the collected archives via the JetBrains Uploads and post the ID you receive here.

 

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. 

0

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

 

0

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:

0

 

 

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?

 

0

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:

2023-05-15 15:56:39,180 [  54859]   INFO - #c.i.s.GitSettingsLog - Initializing new Git repository for Settings Sync at C:\Users\benta\AppData\Roaming\JetBrains\PhpStorm2023.1\settingsSync
2023-05-15 15:56:42,468 [  58147]   INFO - #c.i.s.GitSettingsLog - Copying existing settings from C:\Users\benta\AppData\Roaming\JetBrains\PhpStorm2023.1 to C:\Users\benta\AppData\Roaming\JetBrains\PhpStorm2023.1\settingsSync
2023-05-15 15:56:43,216 [  58895]   INFO - #c.i.s.p.SettingsSyncPluginManager - Updated component state by the state of IDE.

2023-05-15 15:56:43,233 [  58912]   INFO - #c.i.s.GitSettingsLog - Applying settings changes to branch ide: options/vcs.xml, options/colors.scheme.xml, options/laf.xml, options/settingsSync.xml, options/editor-font.xml
2023-05-15 15:56:43,566 [  59245]   INFO - #c.i.s.GitSettingsLog - Advancing master@8fb3fe3c. Need merge of ide@95773a37 and cloud@8fb3fe3c
2023-05-15 15:56:43,642 [  59321]   INFO - #c.i.s.GitSettingsLog - Merge of master&ide@95773a37 with cloud@8fb3fe3c: Merge of revisions 95773a37d4af2d37678b3fbb676ccda00eb83b84, 8fb3fe3cd056b1caa56179f37533a9208b200395 with base 8fb3fe3cd056b1caa56179f37533a9208b200395 using strategy recursive resulted in: Already-up-to-date. 
2023-05-15 15:56:43,657 [  59336]   INFO - #c.i.s.GitSettingsLog - Applying settings changes to branch master: options/debugger.xml, options/ui.lnf.xml, options/editor-font.xml, options/editor.xml, options/shared-indexes.xml, ...
2023-05-15 15:57:45,487 [ 121166]   INFO - #c.i.s.GitSettingsLog - Updated position of ide from 95773a37 to 7796b79a: FORCED
2023-05-15 15:57:45,503 [ 121182]   INFO - #c.i.s.SettingsSyncBridge - Applied settings to the IDE.
2023-05-15 15:57:45,503 [ 121182]   INFO - #c.i.s.GitSettingsLog - Updated position of cloud from 8fb3fe3c to 7796b79a: FORCED
...
2023-06-10 13:23:43,288 [  12308]   INFO - #c.i.s.GitSettingsLog - Applying settings changes to branch cloud: options/debugger.xml, codestyles/Default.xml, options/ui.lnf.xml, options/editor-font.xml, options/editor.xml, ...
2023-06-10 13:23:43,488 [  12508]   INFO - #c.i.s.GitSettingsLog - Advancing master@7796b79a. Need merge of ide@7796b79a and cloud@1ebb98d2
2023-06-10 13:23:43,552 [  12572]   INFO - #c.i.s.GitSettingsLog - Merge of master&ide@1ebb98d2 with cloud@1ebb98d2: Merge of revisions 7796b79abd455cde8f59e666db07af6177ef15e9, 1ebb98d221def69658ad1b39cb5f15041cab9938 with base 1ebb98d221def69658ad1b39cb5f15041cab9938 using strategy recursive resulted in: Fast-forward. 
2023-06-10 13:23:45,397 [  14417]   INFO - #c.i.s.GitSettingsLog - Updated position of ide from 7796b79a to 1ebb98d2: FORCED

 

The most recent Settings Sync event when the settings were checked, but there were no changes:

 

2023-06-24 14:06:00,232 [   2547]   INFO - #c.i.s.GitSettingsLog - Copying existing settings from C:\Users\benta\AppData\Roaming\JetBrains\PhpStorm2023.1 to C:\Users\benta\AppData\Roaming\JetBrains\PhpStorm2023.1\settingsSync
2023-06-24 14:06:01,715 [   4030]   INFO - #c.i.s.p.SettingsSyncPluginManager - Updated component state by the state of IDE.
No changes: {com.github.copilot=PluginData(enabled=true, category=PLUGINS, dependencies=[com.intellij.modules.platform, com.intellij.modules.lang]), com.laravel_idea.plugin=PluginData(enabled=true, category=PLUGINS, dependencies=[com.intellij.modules.platform, com.jetbrains.php]), ru.adelf.idea.dotenv=PluginData(enabled=true, category=PLUGINS, dependencies=[com.intellij.modules.platform]), some.awesome=PluginData(enabled=true, category=PLUGINS, dependencies=[com.intellij.modules.platform])}
2023-06-24 14:06:01,729 [   4044]   INFO - #c.i.s.GitSettingsLog - Applying settings changes to branch ide: options/editor.xml, options/ui.lnf.xml, options/diff.xml, options/ide.general.xml, options/vcs.xml, ...
2023-06-24 14:06:01,893 [   4208]   INFO - #c.i.s.GitSettingsLog - No actual changes in the settings
0

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.

0

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. 

0

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.

0

Ben Taylor, regrettably, the answer isn't very helpful. Could you please perform the actions I asked about before? 

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:

  • make any changes in the Code style settings, as I asked before; 
  • restart the IDE; 
  • collect the IDE logs (Help | Collect Logs and Diagnostic Data);
  • archive the settingsSync folder from your IDE configuration directory;
  • share the collected archives via the JetBrains Uploads and post the ID you receive here.

 

0

Please sign in to leave a comment.