|
|
|
[
Permlink
| « Hide
]
Maxim Mossienko - 19 Nov 07 22:34
Please, report the problem to Xerces developers. IDEA binds Xerces messages to correct place
Btw, does RelaxNG external validator has the same problem?
Geez, this is not a Xerces problem at all. IDEA does navigate to the correct place, it just displays the wrong numbes.
I'm not running the validator but using the message view to display messages when converting schemas between RNG, XSD, etc. with Trang. My bad.
Exact message from Xerces validator is not used for Message View No problem, maybe my report was not specific enough - I thought the issue should be obvious when looking at the code.
If you're going to add 1 in in the create*Prefix methods, make sure you update their usages from com.intellij.openapi.vcs.impl.AbstractVcsHelperImpl as well Just to make this sure: Only the displayed numbers are incorrect, not the location IDEA navigates to when double-clicking the message. Please don't make it navigate to the wrong location now
OK, I see. But now the file-icon changed from the XML filetype icon to a Java icon because now there's no VirtualFile to get the icon from.
Why didn't you fix it as suggested in com.intellij.ide.errorTreeView.ErrorViewStructure#addMessage? That code is in fact broken because it uses the same numbers for both display and navigation which will always cause a one-off error. This would have solved the issue without accidentally changing the icon and would have also fixed any other uses of com.intellij.ide.errorTreeView.NewErrorTreeViewPanel#addMessage - including mine. Thanks a lot Maxim, works fine now. However the ValidateXml action still shows a Java icon in Selena. Diana seems to be OK though
Isn't it amazing how much trouble a simple +/- 1 problem can cause? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||