'Find in Files' highlighting incorrect text for OxygenXML 13.0
Posted: Thu Sep 29, 2011 1:47 am
Hi
I used the 'Find in Files' command for OxygenXML 13.0. The text is found, I can select it, the correct file is opened, but the wrong text is highlighted.
My guess is that the file has the document element and its attributes on the one line, however, I have configured OxygenXML to always format the XML contents. As a result the attributes are being wrapped onto new lines and the highlighted text does not account for these new lines. It also does correctly account for the formatting changing the indenting. Thus the wrong text is highlighted.
I would guess to fix this problem, the 'find-in-files' command should check if the file has been loaded first before reading it from disk. If already loaded, then use for 'formatted' version to get the correct location of the targeted text.
The file is 'read-only', as it has been fetched from our code repository and so the file cannot be written first to disk before the search is conducted.
I used the 'Find in Files' command for OxygenXML 13.0. The text is found, I can select it, the correct file is opened, but the wrong text is highlighted.
My guess is that the file has the document element and its attributes on the one line, however, I have configured OxygenXML to always format the XML contents. As a result the attributes are being wrapped onto new lines and the highlighted text does not account for these new lines. It also does correctly account for the formatting changing the indenting. Thus the wrong text is highlighted.
I would guess to fix this problem, the 'find-in-files' command should check if the file has been loaded first before reading it from disk. If already loaded, then use for 'formatted' version to get the correct location of the targeted text.
The file is 'read-only', as it has been fetched from our code repository and so the file cannot be written first to disk before the search is conducted.