PreviousNextTracker indexSee it online !

(159/211) 3898 - Bracket matching not working on very large files with brackets very far apart

The functionality for Bracket Matching does not work when the beginning and ending brackets are very far apart. This has occurred on very large files where a pair of brackets are very far apart. I do not know whether or not this is because the attempt to find the matching bracket just takes so long a time that it will never return as completed or whether or not there is some limit on the number of bytes/lines between matching brackets, but jedit should give some information of what is going on. It is very annoying to edit a very large file in jedit and get back no indication when Bracket Matching is supposed to be occurring. Along with Bracket Matching not happening the various various Bracket Matching functionality, most specifically Got to Matching Bracket, does not work in these same situations.

Submitted eldienerlee - 2014-12-21 06:02:04.227000 Assigned
Priority 5 Labels
Status open Group normal bug
Resolution None

Comments

2014-12-21 07:37:22.768000
ezust

Not enough information to reproduce. Please attach a file as a test case.

2014-12-21 13:03:07.897000
eldienerlee

I cannot attach the very large file ( 270 MB ) which illustrates the problem here. SF resets itself rather than allow that size of attachment.

2014-12-21 16:31:19.390000
ezust

Perhaps you can post it to a dropbox like site and attach a link to it?


On Sun, Dec 21, 2014 at 5:03 AM, Edward Diener <eldienerlee@users.sf.net>
wrote:

> I cannot attach the very large file ( 270 MB ) which illustrates the
> problem here. SF resets itself rather than allow that size of attachment.
>
>
> ---
>
> ** [bugs:#3898] Bracket matching not working on very large files with
> brackets very far apart**
>
> **Status:** open
> **Group:** normal bug
> **Created:** Sun Dec 21, 2014 06:02 AM UTC by Edward Diener
> **Last Updated:** Sun Dec 21, 2014 07:37 AM UTC
> **Owner:** nobody
>
> The functionality for Bracket Matching does not work when the beginning
> and ending brackets are very far apart. This has occurred on very large
> files where a pair of brackets are very far apart. I do not know whether or
> not this is because the attempt to find the matching bracket just takes so
> long a time that it will never return as completed or whether or not there
> is some limit on the number of bytes/lines between matching brackets, but
> jedit should give some information of what is going on. It is very annoying
> to edit a very large file in jedit and get back no indication when Bracket
> Matching is supposed to be occurring. Along with Bracket Matching not
> happening the various various Bracket Matching functionality, most
> specifically Got to Matching Bracket, does not work in these same
> situations.
>
>
> ---
>
> Sent from sourceforge.net because you indicated interest in <
> https://sourceforge.net/p/jedit/bugs/3898/>
>
> To unsubscribe from further messages, please visit <
> https://sourceforge.net/auth/subscriptions/>
>

alternate (2.2Kio)

2014-12-21 22:05:25.486000
eldienerlee

Here is a dropbox link:

https://www.dropbox.com/s/dqfk3xf48ogwnr6/test.wvtrace?dl=0

2015-02-02 22:31:35.484000
oswaldo-olivo

From my understanding, it seems that jEdit only matches brackets that are at most 10000 lines apart.

2015-02-02 22:38:33.476000
eldienerlee

Is this mentioned anywhere in the documentation to jedit ? If not, where did you find this information ?

2015-02-02 22:50:13.397000
oswaldo-olivo

I don't think this is mentioned in the documentation, as I don't see it here:
http://www.jedit.org/users-guide/bracket-matching.html

I found that out by looking at the source code, and then confirming this fact with a few tests.

I'm an independent researcher, not actively involved in the development of jEdit, so hopefully one of the jEdit team can confirm this.

I think it would be helpful to note that bracket matching is bounded in the documentation.