-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating to 2023.2 cleared all RegEx patterns #15
Comments
Must be a fluke. If that happened regularly, I would be hammered with bug reports. |
On viewing "Patterns": [], Not even the defaults were left. It looks like all of the settings are also stored in |
Patterns are stored in |
This happens to me every update. I always backup the json file and routinely restore it. Just now, updated to 2023.2, went to options, clicked on VSColorOutput64 category, file got reset:
|
It happens time to time with my instance too. I never report it, just because i don't know how to reproduce it. |
|
The file gets reset the first time and only when I open options and go to the VSColorOutput64 tab/category in the list |
@yurikus Interesting... Do you have a |
I don't, only in the AppData/Roaming |
My hypothesis is that the presence of regex expressions, which often include numerous special characters, may be causing an issue during the JSON parsing process. |
This happened to me yesterday too. My repro steps were:
After this, I saw no classification. Looking at the options again, I noticed all classifications were missing. |
Sounds like the contents did not get flushed for closing the file. Might having something to do with the old contract serializer it uses. I'll try switching to Json.NET and see if that improves things. |
Posted a new release that uses Json.Net. Fingers crossed. Side benefit, the XML output is formatted. The old |
I can confirm that this happened again with 2023.3. Only deleting mentioned json file in AppData/Roaming restored those patterns back for me. I must have happened wit latest VS 17.6.x update for me. Edit: The path is c:\Users\Name\AppData\Roaming\VSColorOutput64\vscoloroutput.json |
@mike-ward Is it possible to store these settings in the main VS setting file? The new Unified Settings experience looks to be stored as JSON. Would be nice to take full advantage of settings sharing/syncing without having misc extension setting JSON files. |
Makes sense to me. I'm away until October. Anyone up for doing this? |
Just wanted to add that I have the same issue. It started with the upgrade to VS 17.11.3 |
I can confirm it happened to me again with VS 17.11.3 update. I went from VS 17.11.2 to 17.11.3 via official updater and after that regexes were gone. I thought that the issue was fixed 🤔 If the root cause is unclear I would prefer to at least have a Reset to defaults button in setting dialog. |
I'm running VS 17.11.4, and i just had this issue as well. Temporarily fixed it by deleting config file as mentioned by @m1lhaus. |
Going to take quite a while to reconstruct all my patterns...
The text was updated successfully, but these errors were encountered: