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

Exceptions related to Checks #1075

Open
roopa0222 opened this issue Aug 20, 2024 · 1 comment
Open

Exceptions related to Checks #1075

roopa0222 opened this issue Aug 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@roopa0222
Copy link

Describe the bug
On the zzz6 project, when testing checks from the backend. Below exceptions are thrown

To Reproduce

  1. QuotationCheckBase
    [2024-08-20 10:33:42.575] [debug] Getting test check results for {"projectId":"E00BA5FA500B897477C9CAA4B9BC6A6633DC532A","start":{"book":"JUD","chapterNum":1,"verseNum":1,"versificationStr":"English"}} on E00BA5FA500B897477C9CAA4B9BC6A6633DC532A [at C:\Repos\paranext-core\extensions\dist\hello-world\src\main.js:275:83]
    [2024-08-20 10:33:42.967] [info]
    [dotnet data provider]
    Exception while handling message: Paratext.Checks.RequiredCheckSettingsMissingException: Quotes settings are invalid for project zzz6.

You can edit the settings on Project > Project settings > Quotation rules.
at Paratext.Checks.Checks.QuotationCheckBase.GetReferencesInternal(IEnumerable1 tokens, String desiredKey) at Paratext.Checks.ScriptureInventoryBase.GetReferences(IEnumerable1 tokens, String desiredKey)
at Paratext.Checks.Checks.QuotationCheckBase.Run(Int32 bookNum, ChecksDataSource source, IRecordCheckError recordError)
at Paranext.DataProvider.Checks.CheckRunner.RunCheck(String checkId, ScriptureCheckBase check, CheckInputRange range) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 291
at Paranext.DataProvider.Checks.CheckRunner.RunChecksForProject(String projectId) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 265
at Paranext.DataProvider.Checks.CheckRunner.SetActiveRanges(CheckInputRange[] ranges) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 135
at Paranext.DataProvider.Checks.CheckRunner.HandleRequest(String functionName, JsonArray args) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 96
at Paranext.DataProvider.NetworkObjects.DataProvider.FunctionHandler(JsonElement request) in C:\Repos\paranext-core\c-sharp\NetworkObjects\DataProvider.cs:line 91
at Paranext.DataProvider.MessageHandlers.MessageHandlerRequestByRequestType.HandleMessage(Message message)+MoveNext() in C:\Repos\paranext-core\c-sharp\MessageHandlers\MessageHandlerRequestByRequestType.cs:line 47
at Paranext.DataProvider.MessageTransports.PapiClient.HandleIncomingMessage(Message message) in C:\Repos\paranext-core\c-sharp\MessageTransports\PapiClient.cs:line 545

  1. CapitalizationCheck

[2024-08-20 10:40:41.974] [info] [extension host] 10:40:41.971 > Getting test check results for {"projectId":"E00BA5FA500B897477C9CAA4B9BC6A6633DC532A","start":{"book":"2JN","chapterNum":1,"verseNum":1,"versificationStr":"English"}} on E00BA5FA500B897477C9CAA4B9BC6A6633DC532A [at C:\Repos\paranext-core\extensions\dist\hello-world\src\main.js:275:83]
[2024-08-20 10:40:41.979] [info]
[dotnet data provider]
Event received: MessageType: event from 1, EventType = platformScripture.extensionHostCheckRunner-data:onDidUpdate
Event received: MessageType: event from 1, EventType = platformScripture.extensionHostCheckRunner-data:onDidUpdate
[/dotnet data provider]
[2024-08-20 10:40:42.099] [info]
[dotnet data provider]
Exception while handling message: System.FormatException: The input string '4I' was not in a correct format.
at System.Number.ThrowFormatException[TChar](ReadOnlySpan1 value) at System.Int32.Parse(String s) at Paranext.DataProvider.Checks.Chec [/dotnet data provider] [2024-08-20 10:40:42.103] [info] [dotnet data provider] kResultsRecorder.RecordError(ITextToken token, Int32 offset, Int32 length, Enum1 checkType, String message, Enum`1 messageId, VerseListItemType type) in C:\Repos\paranext-core\c-sharp\Checks\CheckResultsRecorder.cs:line 32
at Paratext.Checks.Checks.UncapitalizedStylesCheck.Run(Int32 bookNum, ChecksDataSource source, IRecordCheckError recordError)
at Paratext.Checks.Checks.CapitalizationCheck.Run(Int32 bookNum, ChecksDataSource source, IRecordCheckError recordError)
at Paranext.DataProvider.Checks.CheckRunner.RunCheck(String checkId, ScriptureCheckBase check, CheckInputRange range) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 291
at Paranext.DataProvider.Checks.CheckRunner.RunChecksForProject(String projectId) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 265
at Paranext.DataProvider.Checks.CheckRunner.SetActiveRanges(CheckInputRange[] ranges) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 135
at Paranext.DataProvider.Checks.CheckRunner.HandleRequest(String functionName, JsonArray args) in C:\Repos\paranext-core\c-sharp\Checks\CheckRunner.cs:line 96
at Paranext.DataProvider.NetworkObjects.DataProvider.FunctionHandler(JsonElement request) in C:\Repos\paranext-core\c-sharp\NetworkObjects\DataProvider.cs:line 91
at Paranext.DataProvider.MessageHandlers.MessageHandlerRequestByRequestType.HandleMessage(Message message)+MoveNext() in C:\Repos\paranext-core\c-sharp\MessageHandlers\MessageHandlerRequestByRequestType.cs:line 47
at Paranext.DataProvider.MessageTransports.PapiClient.HandleIncomingMessage(Message message) in C:\Repos\paranext-core\c-sharp\MessageTransports\PapiClient.cs:line 545
[/dotnet data provider]

Expected behavior
A clear and concise description of what you expected to happen.

@roopa0222 roopa0222 added the bug Something isn't working label Aug 20, 2024
lyonsil added a commit that referenced this issue Aug 26, 2024
@lyonsil
Copy link
Member

lyonsil commented Aug 26, 2024

The PR fixed the second part of this issue. The first part of the issue won't be fixed until we have a settings/inventory dialog to configure the quotation check.

lyonsil added a commit that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📥 On Deck
Development

No branches or pull requests

2 participants