XPathView: Search results are not in file order

As the subject says, the search results are not in the same order as they appear in the file, even though I'm starting the search with the cursor positioned at the start of the file.

Unfortunately, the file is proprietary information, so I can't post it. But I can tell you that it's almost 12,000 lines long and the search expression is: //select[contains(@path,"WebSphere6")]

Thanks,
Gordon

2 comments

Gordon Tyler wrote:

As the subject says, the search results are not in the same order as they appear in the file, even though I'm starting the search with the cursor positioned at the start of the file.

Unfortunately, the file is proprietary information, so I can't post it. But I can tell you that it's almost 12,000 lines long and the search expression is: //select[contains(@path,"WebSphere6")]


Do you mean the results in the Usage View? Well, I somehow assumed IDEA would sort those
results itself. Guess I was wrong :(

I just implemented a sort on the results and I expect to release the next version in a few
days, but I can send you a current build by email if you want.


Sascha

PS: The file has 12000 lines? I wouldn't even think of opening such an XML file in IDEA.
You got like a dual 4 GHz machine with 3 gigs of RAM or what? ;)

0

Do you mean the results in the Usage View? Well, I
somehow assumed IDEA would sort those
results itself. Guess I was wrong :(


Yes. I think IDEA doesn't sort it automatically to allow custom ordering. I'm surprised that it didn't just work out, unless your search algorithm doesn't find stuff in the order that they appear in the file?

I just implemented a sort on the results and I expect
to release the next version in a few
days, but I can send you a current build by email if
you want.


It's not urgent. I can wait for an official release.

PS: The file has 12000 lines? I wouldn't even think
of opening such an XML file in IDEA.
You got like a dual 4 GHz machine with 3 gigs of RAM
or what? ;)


It's somewhat sluggish on my P4 3GHz HT with 2GB of RAM (I should be getting an upgrade to 3GB soon I hope). I had to turn off inspections using Hector as well as the Autoscroll options in the Structure View. Some operations like Surround With Tag can take a few seconds. General editing is bearable but not as good as I would like. Luckily I don't need to edit the file very often. It really needs to be split up into multiple files. I just haven't had the time between releases to do it.

0

Please sign in to leave a comment.