it-crowd / pom-sorter

Plugin for IntelliJ Idea to sort pom.xml
4 stars 9 forks source link

java.lang.NoSuchMethodError: com.intellij.psi.XmlElementFactory.createTagFromText #14

Open BorzdeG opened 11 years ago

BorzdeG commented 11 years ago

The error occurs when you try to sort the settings.xml. When sorting pom-file, the error does not appear.

IDE: IU-132.27

settings.xml: http://pastebin.com/gYYiQGqT error message: http://pastebin.com/09efg1eM

blabno commented 11 years ago

Does it work with other files?

BorzdeG commented 11 years ago

Yes, pom-files in the project sorted - I wrote about it in the above

dcsobral commented 9 years ago

I'm getting this error on pom files. Sample stack trace here. I actually identified what was causing it trouble: a comment. With a comment (at the end of ), it caused an error and stopped sorting midway (empty lines not removed, for example). Without the comment, it worked.

For the record, the comment was this:

    <!--
    NO OTHER REPOS SHOULD EVER BE CONFIGURED... the above richrelevance ones can proxy to others if needed
    -->
blabno commented 9 years ago

@dcsobral could you provide whole file?

dcsobral commented 9 years ago

The file is here.