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.

IndexOutOfRangeException

See original GitHub issue

The following lines generate an IndexOutOfRangeException:

var glob = Glob.Parse("C:\\Bin\\*.pdb");
glob.Match("C:\\Bin\\.vs");

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dazinatorcommented, Jan 2, 2018

Ah yes I see the confusion now apologies. Match was removed as per #28 - IsMatch should be used in the majority of cases. My tests were done using IsMatch hence why I couldnt replicate! Match was indeed buggy as you discovered 😃

0reactions
alphaleoniscommented, Jan 1, 2018

Well, it will be hard to reproduce now since the method appears to have been removed in a77ae3bb50791a4a4a3fd8745e35f37fd4222bda 😉 (Although the comment for the commit says IsMatch was removed, it appears Match is the method that actually was removed, and probably the intention as well)

Read more comments on GitHub >

github_iconTop Results From Across the Web

IndexOutOfRangeException Class (System)
An IndexOutOfRangeException exception is thrown when an invalid index is used to access a member of an array or a collection, or to...
Read more >
c# - What is an IndexOutOfRangeException ...
This exception means that you're trying to access a collection item by index, using an invalid index. An index is invalid when it's...
Read more >
IndexOutOfRangeException in C#
It occurs when an invalid index is used to access a member of a collection. The following example throws the IndexOutOfRange exception: Example:....
Read more >
What is IndexOutOfRangeException in C#? - Code Maze
IndexOutOfRangeException gets thrown when we try to access a member of an array or a collection using an invalid index.
Read more >
C# IndexOutOfRangeException
This C# exception will typically occur when a statement tries to access an element at an index greater than the maximum allowable index....
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