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

Calendar events with brackets crash app #129

Open
rprouse opened this issue Mar 14, 2023 · 0 comments
Open

Calendar events with brackets crash app #129

rprouse opened this issue Mar 14, 2023 · 0 comments
Labels
bug Something isn't working calendar

Comments

@rprouse
Copy link
Owner

rprouse commented Mar 14, 2023

Steps to reproduce

  1. Create an event in your calendar with a title [EXTERNAL] meeting for today
  2. Run guppy cal agenda

Crashes with the following because it interprets the [EXTERNAL] as a color directive.

Unhandled exception: System.InvalidOperationException: Could not find color or style 'EXTERNAL'.
   at Spectre.Console.StyleParser.Parse(String text) in /_/src/Spectre.Console/StyleParser.cs:line 10
   at Spectre.Console.MarkupParser.Parse(String text, Style style) in /_/src/Spectre.Console/Internal/Text/Markup/MarkupParser.cs:line 22
   at Spectre.Console.AnsiConsoleExtensions.Markup(IAnsiConsole console, String value) in /_/src/Spectre.Console/Extensions/AnsiConsoleExtensions.Markup.cs:line 77
   at Spectre.Console.AnsiConsoleExtensions.MarkupLine(IAnsiConsole console, String value) in /_/src/Spectre.Console/Extensions/AnsiConsoleExtensions.Markup.cs:line 117
   at Guppi.Console.Skills.CalendarSkill.Agenda(DateTime now, String title, Boolean markdown) in /home/runner/work/guppi/guppi/Guppi.Console/Skills/CalendarSkill.cs:line 0
   at Guppi.Console.Skills.CalendarSkill.<GetCommands>b__2_1(Boolean markdown) in /home/runner/work/guppi/guppi/Guppi.Console/Skills/CalendarSkill.cs:line 37
@rprouse rprouse added bug Something isn't working calendar labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working calendar
Projects
None yet
Development

No branches or pull requests

1 participant