{"action":"created","issue":{"url":"https://api.github.com/repos/harawata/mybatipse/issues/31","labels_url":"https://api.github.com/repos/harawata/mybatipse/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/harawata/mybatipse/issues/31/comments","events_url":"https://api.github.com/repos/harawata/mybatipse/issues/31/events","html_url":"https://github.com/harawata/mybatipse/issues/31","id":58566306,"number":31,"title":"XmlValidator adds markers but not add it to ValidationResult","user":{"login":"vazul","id":477559,"avatar_url":"https://avatars.githubusercontent.com/u/477559?v=3","gravatar_id":"","url":"https://api.github.com/users/vazul","html_url":"https://github.com/vazul","followers_url":"https://api.github.com/users/vazul/followers","following_url":"https://api.github.com/users/vazul/following{/other_user}","gists_url":"https://api.github.com/users/vazul/gists{/gist_id}","starred_url":"https://api.github.com/users/vazul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vazul/subscriptions","organizations_url":"https://api.github.com/users/vazul/orgs","repos_url":"https://api.github.com/users/vazul/repos","events_url":"https://api.github.com/users/vazul/events{/privacy}","received_events_url":"https://api.github.com/users/vazul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-23T10:13:08Z","updated_at":"2015-03-02T07:57:33Z","closed_at":null,"body":"Hi Iwao!\r\n\r\nJust realized, that when I validate my mappers, it won't report any error, however, markers will be set. It is commented out, but don't know the reason:\r\n\r\nhttps://github.com/harawata/mybatipse/blob/master/mybatipse/src/net/harawata/mybatipse/mybatis/XmlValidator.java#L433\r\n\r\nIt is necessary to do so? If I uncomment it, it will add the same marker (as I can see), and the error will be counted in the XML ValidationResult also.\r\n\r\nBest regards,\r\n\r\n-- Vazul"},"comment":{"url":"https://api.github.com/repos/harawata/mybatipse/issues/comments/76671063","html_url":"https://github.com/harawata/mybatipse/issues/31#issuecomment-76671063","issue_url":"https://api.github.com/repos/harawata/mybatipse/issues/31","id":76671063,"user":{"login":"harawata","id":149268,"avatar_url":"https://avatars.githubusercontent.com/u/149268?v=3","gravatar_id":"","url":"https://api.github.com/users/harawata","html_url":"https://github.com/harawata","followers_url":"https://api.github.com/users/harawata/followers","following_url":"https://api.github.com/users/harawata/following{/other_user}","gists_url":"https://api.github.com/users/harawata/gists{/gist_id}","starred_url":"https://api.github.com/users/harawata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harawata/subscriptions","organizations_url":"https://api.github.com/users/harawata/orgs","repos_url":"https://api.github.com/users/harawata/repos","events_url":"https://api.github.com/users/harawata/events{/privacy}","received_events_url":"https://api.github.com/users/harawata/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T07:57:33Z","updated_at":"2015-03-02T07:57:33Z","body":"> What I have noticed, that when you do manual validation on the mapper xml file, the validation will result in no error, however, MyBatis problem markers will be set.\r\n\r\nI still cannot reproduce (or do not understand) your problem.\r\nBy 'manual validation', you mean 'right clicking the XML mapper file and choose __Validate__ from the contextual menu', is that correct? \r\nOn my environment, the error is reported in my Problem View as seen in the picture in my previous comment.\r\n\r\nI appreciate your suggestions, but I need to reproduce the problem before modifying the code.\r\nPlease provide the exact steps to reproduce the problem, preferably on a clean workspace.\r\n\r\nOh, and have you enabled the __MyBatipse Nature__ as explained in the [README](https://github.com/harawata/mybatipse#mybatis-nature) ?\r\n\r\n> As I can understand, MybatipseIncrementalBuilder is used to validate mapper xml files, when corresponding java files have been changed. But looking at the code, it will validate all mappers in every case, no matter what is changed. But there is a MybatipseResourceChangeListener, where you track java file changes. Here, the corresponding mapper xml can be found in MapperNamespaceCache, and maybe the mapper can be revalidated, in case when Validation Builder is also set up.\r\n\r\nLet me try to explain the difficulty.\r\nFor example, when a domain class is changed, all the XML mappers referencing this domain object (or its subclasses) must be re-validated and I couldn't find a reasonable way to search those _corresponding_ mappers.\r\nThis is why MyBatipse validates all the XML mappers on each change.\r\n"}}