I just ran into (what I believe to be) a bug in Dreamweaver 8(.02). I was working on some CSS skinning a Community Server install, and wanted to find all the “color:” attributes in a bunch of .css files. Tried a couple different searches to try and trim my results down (didn’t want ‘background-color:’, for example), and finally settled on a little regex (that could probably be written better, but who cares…): “\s(color:)” [sans quotes, of course].
Well, my search worked perfectly, but when clicking on any of the results in the results pane, I got a message box popping up telling me that:
This search result cannot be displayed because this portion of the document has changed or been removed since the search was performed.
Now, I knew I hadn’t changed the file. Especially since (I believe) DW uses indexes to map the results to the position in the document, and those characters were definitely still there. Getting annoyed, now, of course. Search google, which yielded absolutely nothing (unsurprisingly, actually…searching for dreamweaver “search results” bug I don’t know what I was expecting…). So that left me tinkering.
And, as it happens, there’s a quick fix. There are 4 wee options when doing a find in DW: Match Case, Match Whole Word, Ignore Whitespace, and Use Regular Expression. I had checked off ‘Match Whole Word Only’ in one of my previous attempts at crafting my (simple) query. As I changed to use the regex, the option remained checked but disabled (it gets disabled as soon as you have non-apha characters in your search query - for example, searching for “it’s” will not allow you to match on a whole word only). It stays checked, though, which (I think) causes the issue: if ‘Match Whole Word’ is checked and your query contains non-alpha characters, you can’t click on a search result to jump to it in the document (you did know you could do that, right?).
Solution: clear your query, uncheck ‘Match Whole Word’, re-enter your query and run. Right as rain.
Pain in the ass, I tell you. Pain in the ass.
I’d throw in some images to really illustrate this, but I’m just too lazy to take screen grabs right now…
Share me:
These icons link to social bookmarking sites where readers can share and discover new web pages.