Skip to content
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

Patterns are not respected on Import/Export in Rider #191

Open
andriibratanin opened this issue Aug 17, 2024 · 0 comments · May be fixed by #192
Open

Patterns are not respected on Import/Export in Rider #191

andriibratanin opened this issue Aug 17, 2024 · 0 comments · May be fixed by #192

Comments

@andriibratanin
Copy link

Custom hightlight patterns are not saved/loaded during Import/Export of Log Patterns

IMPORT
Steps to reproduce:
Import the following Ideolog file using Rider -> Settings -> Editor -> Log Highlighting:

<State>
  <highlightingPatterns>
    <LogHighlightingPattern enabled="true" pattern="^\s*err\s*$" captureGroup="-1" action="HIGHLIGHT_LINE" fg="-39836" bold="true" italic="false" stripe="true" uuid="5bcf6a90-78f1-43a4-9a8c-375910f23b12" />
    <LogHighlightingPattern enabled="true" pattern="^\s*wrn\s*$" captureGroup="-1" action="HIGHLIGHT_LINE" fg="-6329600" bold="true" italic="false" stripe="false" uuid="3cb63bd6-2f81-4bb6-8944-0a0a674cb427" />
    <LogHighlightingPattern enabled="true" pattern="^\s*inf\s*$" captureGroup="-1" action="HIGHLIGHT_LINE" fg="-10316203" bold="false" italic="false" stripe="false" uuid="0f8ad928-941b-4ebe-8e50-ec601c49b5a7" />
  </highlightingPatterns>
  <hiddenSubstrings />
  <parsingPatterns>
	<LogParsingPattern enabled="true" name="Serilog (default)" pattern="^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3} [+-]?\d{2}:\d{2}) \[([A-Z]+)\] (.*)$" timePattern="yyyy-MM-dd HH:mm:ss.SSS XXX" linePattern="^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}" timeId="0" severityId="1" categoryId="-1" fullmatch="false" uuid="496412b0-aed0-4b48-a539-30522f90d3ce" />
  </parsingPatterns>
  <settingsVersion>9</settingsVersion>
</State>

Actual result:
You'll see the new "Serilog (default)" log template, but will not see three additional log hightlighting patterns included in the file.

EXPORT
Steps to reproduce:
Add a new or change one of three "standard" log highlighting patterns, then export any Log Pattern using "Export" button (Rider -> Settings -> Editor -> Log Highlighting).

Actual result:
You'll see that custom log highlighting patterns or changes to "standard" ones are not present in the export data (i.e. export file will include only three non-changed "standard" patterns).

Expected behaviour:
Log highlighting patterns are correctly imported/exported

@andriibratanin andriibratanin linked a pull request Aug 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant