question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.ArgumentOutOfRangeException

See original GitHub issue

I got this exception during syntax checking of json files containing errors.

“Index was out of range. Must be non-negative and less than the size of the collection.”

`

    [Fact]
    public void TestErrorMissingClosingBracket()
    {
        EbnfJsonGenericParser jsonParser = new EbnfJsonGenericParser();
        ParserBuilder<JsonTokenGeneric, JSon> builder = new ParserBuilder<JsonTokenGeneric, JSon>();
        Parser = builder.BuildParser(jsonParser, ParserType.EBNF_LL_RECURSIVE_DESCENT, "root").Result;

        ParseResult<JsonTokenGeneric, JSon> r = Parser.Parse("{");
        Assert.True(r.IsError);
    }

` After a first glance at the code you don’t check the position accessing tokens after end of list .

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
b3b00commented, Jul 16, 2018

create a branch from dev than commit on it and send me and send me a pull-request. Never commit directly on dev branch. for better tracking you should name your branch according to this issue : bugfix/78-argumentoutofrange or something like that

0reactions
teraccommented, Jul 16, 2018

Should I commit to dev or make a separate branch for that issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ArgumentOutOfRangeException Class (System)
An ArgumentOutOfRangeException exception is thrown when a method is invoked and at least one of the arguments passed to the method is not...
Read more >
C# Exception Guide: ArgumentOutOfRangeException
The ArgumentOutOfRangeException exception is thrown when the argument passed to a method is not null and contains a value that is not within...
Read more >
c# System.ArgumentOutOfRangeException
I'm making program that sends email with some data. I know that the System.ArgumentOutOfRangeException exception means that number in the array/ ...
Read more >
Type: System.ArgumentOutOfRangeException
ArgumentOutOfRangeException is thrown when a method is invoked and at least one of the arguments passed to the method is not null and...
Read more >
[Solved] How fix argumentoutofrangeexception
Exception : An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in PresentationFramework.dll Additional ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found